When peeking at code and you find a constant, this is used in a few ways that the Developer's Tool Kit can be of help to you ...
Constants are in ALL CAPS ...
They are either define statements for text displays or they are in the configuration tables ...
The mystery is where are the set and how are they used? :unsure:
The Developer's Tool Kit let's you search the code as well as the configuration table or the products_type_layout table for configuration_keys ...
The top input box will search the two configuration tables and, when found, give you an option to hit edit to go to the setting ... as in let the Developer's Tool Kit find the silly thing for you ... :smile:
Or, enter the constant in the bottom input box and search the Catalog or Admin or both and it will show all of the php files that use it ...
The only constants that can be really tricky are the "magical" constants that are built based on product type ... usually they will have a function surrounding them: zen_get_show_product_switch
This builds a constant for the product type so that the right constant is utilized as the products change based on product type ...
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!