New Zenner
- Join Date:
- Feb 2006
- Posts:
- 54
- Plugin Contributions:
- 0
Post #1 by cal
Hi
Does anyone know how to get the featured and new listing center boxes onto the cart page below the cart when there are products in the cart?
Cal
That Thou Art
Started by cal on 9 Apr 2007, 1:59 PM · Views: 1,037
New Zenner
Hi
Does anyone know how to get the featured and new listing center boxes onto the cart page below the cart when there are products in the cart?
Cal
That Thou Art
Totally Zenned
Create your own tpl_shopping_cart_default.php template and insert the following lines```php
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>in here (after line 170 for Zen Cart 1.3.7)```php
<?php
break;
}
?>
<-------- insert the lines here
<?php
} else {
?>
```This will add them to carts that have products in, and you can continue to use the normal Admin functions to include them for carts that don't.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
New Zenner
Thanks kuroi, that worked a treat :).
If you want to add the featured and what's new centre boxes to below the shopping cart with products in it (Version 1.37) follow kurois instructions above.
That Thou Art
Tell staff why this post should be reviewed.