New Zenner
- Join Date:
- Mar 2011
- Posts:
- 93
- Plugin Contributions:
- 0
defines not loading correctly all the time
Zen Cart: v1.3.9h
I'm adding a new product type, and have got the preview_info.php working no problem when I create a new product or edit a product via the admin Catalog->Categories/Products page.
The problem is for existing products that I have already created and I click on the "Preview" icon in the list view under the Catalog->Categories/Products page.
My preview_info.php loads, but all the defines I use for my printout are not being translated to show the correct output.
Example, in /admin/includes/languages/english/product_<my_type>.php I have:
define('TEXT_DIMENSIONS_PREVIEW', 'Dimensions: %s');
This appears correctly when I get to preview_info.php when creating a new product or editing an existing one.
Dimensions: 200 x 100 x 50 mm
But when I click on the "Preview" icon, it displays incorrectly:
TEXT_DIMENSIONS_PREVIEW
I have tracked down this "Preview" link to /admin/includes/modules/category_product_listing.php, but can't figure out what's wrong.
It is definitely resolving to point to the correct preview_info.php that I have in /admins/includes/modules/product_<my_type>/preview_info.php, but some how, the defines php file is not getting included. :frusty:

