Skip to content

Instantly share code, notes, and snippets.

@lat9
Created December 16, 2019 16:09
Show Gist options
  • Select an option

  • Save lat9/df65d48bb17a05c1ec7c877a2a49f9bc to your computer and use it in GitHub Desktop.

Select an option

Save lat9/df65d48bb17a05c1ec7c877a2a49f9bc to your computer and use it in GitHub Desktop.
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
  • '2' ... Can browse, but no prices until logged in.
  • '3' ... Showcase only

CUSTOMERS_APPROVAL_AUTHORIZATION:

  • '0' ... Not required
  • '1' ... Must be authorized
  • '2' ... Can browse, but no prices until authorized
  • '3' ... Can browse and see prices, but cannot purchase until authorized

In addition, here are the possible values for the customers::customers_authorization database field:

  • '0' ... Approved
  • '1' ... Pending, must be authorized to browse.
  • '2' ... Pending, can browse without prices
  • '3' ... Pending, can browse with prices but cannot purchase until authorized.
  • '4' ... Account is banned, cannot login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment