Originally Posted by
cnymike
I just had another PHP Warning appear. This one is different and seems to occur during checkout. I'm not able to figure out where the "old" code is located. I'm trying to learn.
--> PHP Warning: Use of undefined constant SHOW_SHOPPING_CART_DELETE - assumed 'SHOW_SHOPPING_CART_DELETE' (this will throw an Error in a future version of PHP) in /usr/www/users/topiary/store/includes/modules/pages/shopping_cart/header_php.php on line 76.
Could you please point me in the right direction?
That should be in the database as of at least version 1.3.0, maybe sooner. In the admin, you can run the following query from tools->install SQL Patches:
Code:
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Show Shopping Cart - Delete Checkboxes or Delete Button', 'SHOW_SHOPPING_CART_DELETE', '3', 'Show on Shopping Cart Delete Button and/or Checkboxes<br /><br />1= Delete Button Only<br />2= Checkbox Only<br />3= Both Delete Button and Checkbox', '9', '20', 'zen_cfg_select_option(array(\'1\', \'2\', \'3\'), ', now());
If there are any errors associated with that, my guess is that in copying and pasting from github, my device has added a non-displaying character to the pasted content. Would suggest at that point to copy and paste from a plain text document or to manually type out that line...
Bookmarks