Skip to content

Instantly share code, notes, and snippets.

@lat9
lat9 / encapsulated.md
Last active May 23, 2025 13:24
zc210 Changes Supporting `encapsulated` plugins

If your site runs on Zen Cart 2.0.0 or 2.0.1, there are some core-file changes required for the encapsulated versions of various plugins to operate correctly on your storefront.

You can most likely simply replace (or add) a file to your site to enable an updated plugin's use. Be sure to have a backup copy of the original file, just in case the updated file causes issues on your site!

Depending on your updated plugin's directions, following is an overall list of the various Zen Cart base files that were changed in the zc201 to zc210 transition to enable additional features in encapsulated plugins.

General Changes

/ajax.php

This file, updated in releases following Zen Cart 2.0.0 via PR 6462 enables an encapsulated plugin to provide additional AJAX handlers.

@lat9
lat9 / zc_coupon_codes.md
Created January 5, 2020 13:48
Zen Cart: Coupon Code Descriptions

Zen Cart Coupon Codes

Code Description Notes
E Percent off plus Free Shipping zc1.5.0 and later
F Amount off  
G Gift Voucher  
O Amount off plus Free Shipping zc1.5.0 and later
P Percent off  
S Free Shipping (only)  
@lat9
lat9 / zc_store_status_cust_auth.md
Created December 16, 2019 16:09
Zen Cart: Store Status, Customer Approval Constants

I'm continually searching code and the database to find the values associated with the STORE_STATUS, CUSTOMERS_APPROVAL and CUSTOMERS_APPROVAL_AUTHORIZATION database constants. Here are my findings.

STORE_STATUS:

  • '0' ... A normal store
  • '1' ... Must login to see prices
  • '2' ... Showcase only

CUSTOMERS_APPROVAL:

  • '0' ... Not required
  • '1' ... Must login to browse