Adding Page to Zen Cart 1.3.8
- September 5th, 2008
- Posted in Zen Cart
- Write comment
create your html includes file – it is a blank file named define_shopping_cart.php
upload that to your includes/language/english/html_includes and to includes/language/english/html_includes/your folder.
Edit includes/modules/pages/shopping_cart/header.php.php. Add this line
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . ‘/html_includes/’, FILENAME_DEFINE_SHOPPING_CART, ‘false’);
before
// This should be last line of the script:
$zco_notifier->notify(‘NOTIFY_HEADER_END_SHOPPING_CART’);
———————
Edit includes/filenames.php – add
define(‘FILENAME_DEFINE_SHOPPING_CART’, ‘define_shopping_cart’);
be nice to yourself and put it in alphabetically- line 68
OR
includes/extra_datafiles/define_shopping_cart_filenames.php
with at least this in it
<?php
define(‘FILENAME_DEFINE_SHOPPING_CART’, ‘define_shopping_cart’);
?>
————————
Edit includes/templates/your folder/templates/tpl_shopping_cart_default.php.
line 33
Replace <?php echo TEXT_INFORMATION ?> with <?php echo define_page ?>
No comments yet.