After installing module_manager_rev15, I install this mode right after that cross_sell__just_another_cross_sell_mod_rev185.
Printable View
After installing module_manager_rev15, I install this mode right after that cross_sell__just_another_cross_sell_mod_rev185.
I just installed module_manager because I want to use the cross sell mod and am getting a similar error. I tried to use this solution, but I don't even have a file called init_yclass.php. I could not find the shared_classes separately that the readme said to install, but one of the updates said it was now included in the mod (the entire site http://svn.rubikintegration.com seems to be gone). I had assumed the latest download from the zen-cart add-ons section would have the most recent version, but maybe I need to go to that Google link... My version says Alpha 3.3. Apparently, I am still missing files. I'll try the Google link, but any other suggestions would be appreciated. Also, if the add-ons section is not up-to-date, is there anything that can be done about it? Is the support site really gone, or just down temporarily?
I got an error something like this,
Parse error: syntax error, unexpected T_STRING in includes/languages/english/zenmod/product_info.php on line 1
What should I do about it?
Open that file in a text editor such as UltraEdit, NoteTab or NotePad and look to see what is on line 1 ...
The language files should start with the opening php bracket <?php ...
OK so here is the product_info.php file,
As you see I have added the 'cross sell' code at the end. But I don't see any error in line 1. Before I added that cod everythings fine. But when I add that line, then the problems appear. Can someone look into this?PHP Code:
<?php
/**
* @package languageDefines
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: product_info.php 6371 2007-05-25 19:55:59Z ajeh $
*/
define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found.');
define('TEXT_CURRENT_REVIEWS', 'Current Reviews:');
define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');
define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');
define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');
define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased...');
define('TEXT_PRODUCT_OPTIONS', 'Please Choose: ');
define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: ');
define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
define('TEXT_PRODUCT_MODEL', 'Model: ');
// previous next product
define('PREV_NEXT_PRODUCT', 'Product ');
define('PREV_NEXT_FROM', ' from ');
define('IMAGE_BUTTON_PREVIOUS','Previous Item');
define('IMAGE_BUTTON_NEXT','Next Item');
define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Product List');
// missing products
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: ');
define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]');
define('TEXT_ONETIME_CHARGE_SYMBOL', ' *');
define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply');
define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available');
define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ');
define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');
define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');
define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (');
define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ');
define('TEXT_XSELL_PRODUCTS', 'Related Products');
?>
I also have this error,
Notice: Undefined variable: xsell_data in /includes/templates/mytemplate/templates/tpl_modules_xsell_products.php on line 19
Which is something like this,
PHP Code:
// calculate whether any cross-sell products are configured for the current product, and display if relevant
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_XSELL_PRODUCTS));
if (zen_not_null($xsell_data)) {
$info_box_contents = array();
$list_box_contents = $xsell_data;
$title = '';
?>
Change the IF to:
That should handle when the $xsell_data is not defined ... however, the question now is, why isn't it defined ... :unsure:PHP Code:
if (isset($xsell_data) && zen_not_null($xsell_data)) {
$info_box_contents = array();
$list_box_contents = $xsell_data;
$title = '';
?>
Does it have anything to do with tabbed products pro mod?
I still can't figure out why if I added the product_info.php file into this directory /includes/languages/english/mytemplate and the product page goes blank.
I have read all the step-by-step instructions on how to install the mod.