Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Featured and New Listings on Shopping Cart page

Featured and New Listings on Shopping Cart page

Locked

Started by cal on 9 Apr 2007, 1:59 PM · Views: 1,037

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
9 Apr 2007, 1:59 PM
#1
cal avatar

cal

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

9 Apr 2007, 2:51 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

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)

11 Apr 2007, 10:30 AM
#3
cal avatar

cal

New Zenner

Join Date:
Feb 2006
Posts:
54
Plugin Contributions:
0

Post #3 by cal

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