delia:
I decided I was tired of having to stop and get the shopping cart English file and wipe out the instructions that appear at the top of the shopping cart. I set up everything to move it to the define pages instead so that my clients can customize this themselves. Perhaps the zen gurus don't see this as logical since most define pages links appear in the information and more information sideboxes.
So, I added this line to the shopping cart header:
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_SHOPPING_CART, 'false');
/**
this line to the filenames.php
define('FILENAME_DEFINE_SHOPPING_CART', 'define_shopping_cart');
and these lines to the shopping cart template:
<?php
/**
* require the html_defined text for shopping cart
*/
require($define_page);
?>
</div>
which looks to be all that needs to be done.
I can edit the file in the define pages editor but I get this error in the cart:
Fatal error: require() [function.require]: Failed opening required '' (include_path='.:')...
So it's not finding the file. What did I miss?
i don't suppose you could be a little more clear in exactly which files you had to edit? i've followed most of the instructions but hae come up with non-functional code when putting the code into the shopping cart header
like so
define('NAVBAR_TITLE', 'The Shopping Cart');
define('HEADING_TITLE', 'Your Shopping Cart Contents');
define('HEADING_TITLE_EMPTY', 'Your Shopping Cart');
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_SHOPPING_CART, 'false');
/**
define('TABLE_HEADING_REMOVE', 'Remove');
define('TABLE_HEADING_QUANTITY', 'Qty.');
define('TABLE_HEADING_MODEL', 'Model');
define('TABLE_HEADING_PRICE','Unit');
define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty.');
define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');
define('SUB_TITLE_TOTAL', 'Total:');
define('OUT_OF_STOCK_CANT_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' are out of stock or there are not enough in stock to fill your order.<br />Please change the quantity of products marked with (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '). Thank you');
define('OUT_OF_STOCK_CAN_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' are out of stock.<br />Items not in stock will be placed on backorder.');
define('TEXT_TOTAL_ITEMS', 'Total Items: ');
define('TEXT_TOTAL_WEIGHT', ' Weight: ');
define('TEXT_TOTAL_AMOUNT', ' Amount: ');
define('TEXT_VISITORS_CART', '<a href="javascript:session_win();">[help (?)]</a>');
define('TEXT_OPTION_DIVIDER', ' - ');
?>