Forums / Templates, Stylesheets, Page Layout / change "your shopping cart is empty" page

change "your shopping cart is empty" page

Locked

Started by davidhwalker on 22 Jul 2006, 3:07 AM · Views: 3,078

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Jul 2006, 3:07 AM
#1
davidhwalker avatar

davidhwalker

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
25
Plugin Contributions:
0

change "your shopping cart is empty" page

When I click on my view cart link and there is nothing in the cart it goes to a page that says

"Your shopping cart is empty."

"New products for July"

then it lists all my products

I do not want any of these products displayed at all. Ideally I just want it to say "your shopping cart is empty" and have nothing else on the page except for the header.

Any ideas?

Thanks!

best,
David


Poetic, Artistic T-Shirts :: 302designs, Austin TX

22 Jul 2006, 11:20 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change "your shopping cart is empty" page

To remove this from just this page you will need to find the code that generates this page. Try using the developers tools in your admin > tools area and searching the catalog files for ...Your shopping cart is empty

You will find that this is in this file:includes/languages/english/shopping_cart.php

You can then determine what calls the new products page and try commenting it out.

Zen-Venom Get Bitten

22 Jul 2006, 1:33 PM
#3
davidhwalker avatar

davidhwalker

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
25
Plugin Contributions:
0

Re: change "your shopping cart is empty" page

I've actually commented out a whole smattering of code with regard to new products, but to no avail.

22 Jul 2006, 1:43 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: change "your shopping cart is empty" page

All that is needed is to edit the template for the shopping cart when empty ...

Copy this to your overrides directory:
/includes/templates/templates_default/tpl_shopping_cart_default.php

Comment out the area at the bottom:

<?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_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>

<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>

You can do this with:

<?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_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>

<?php // require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>

Later if you ever need it back you can just remove the comments ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Jul 2006, 1:56 PM
#5
davidhwalker avatar

davidhwalker

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
25
Plugin Contributions:
0

Re: change "your shopping cart is empty" page

Ajeh, it worked perfectly! Thanks for such a detailed and prompt response ! I get more and more excited about zen cart every day mainly because of all the amazing support from the community....awesome!