Totally Zenned
- Join Date:
- May 2006
- Location:
- Gardiner, Maine
- Posts:
- 2,383
- Plugin Contributions:
- 7
Moving Shopping Cart text to define pages
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?
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo