Installing CrossSell posted in Downloads area on fresh 1.3.0.2 shop (PHP 4.4.2 and MySQL 4.1.19-standard)
Besides the three required repairs:
-
RENAME /admin/xsell.php
TO
/admin/xsell_products.php
-
RENAME /admin/includes/languages/english/xsell.php
TO
/admin/includes/languages/english/xsell_products.php
-
EDIT /admin/includes/extra_datafiles/xsell_definitions.php
change this: define('FILENAME_XSELL_PRODUCTS', 'xsell.php');
TO
define('FILENAME_XSELL_PRODUCTS', 'xsell_products.php');
I'm also observing error when running the last sql statement in products_xsell.sql
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Cross-Sell - Display prices?', 'XSELL_DISPLAY_PRICE', 'false', 'Cross-Sell -- Do you want to display the product prices too?
Default: false', 18, 72, 'zen_cfg_select_option(array('true','false'), ', now());
Error report is:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true','false'), ', now())' at line 1
in:
[INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Cross-Sell - Display prices?', 'XSELL_DISPLAY_PRICE', 'false', 'Cross-Sell -- Do you want to display the product prices too?
Default: false', 18, 72, 'zen_cfg_select_option(array('true','false'), ', now());]
I'm staring cross-eyed and cannot locate the issue.
OK I tried this below and it works....
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Cross-Sell - Display prices?', 'XSELL_DISPLAY_PRICE', 'false', 'Cross-Sell -- Do you want to display the product prices too?
Default: false', 18, 72, 'zen_cfg_select_option(array("true","false")', now());
Unsure of the author whom uploaded the latest version CrossSell. Could someone be kind enough to apply the above fixes to the CrossSell package in the Zen Cart download area? Again these fixes were only tested on v.1.3.0.2. Thanks.
Woody