Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display the total # of Items in Cart - Custom

Display the total # of Items in Cart - Custom

Locked

Views: 3,032

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 Dec 2006, 8:00 PM
#1
fluxem avatar

fluxem

New Zenner

Join Date:
Jul 2006
Location:
California
Posts:
44
Plugin Contributions:
0

Display the total # of Items in Cart - Custom

I've searched around and tried to do this myself with no luck..

The temp url for the site is http://209.85.7.143/~funky/store/index.php

At the top right side corner, in the header, I have a image that says "Shopping Bag" w/ a little bag next to it, well next to that I want it to display the total # of items that are currently in that customer's bag inside some brackets (see example below).

Can someone point me in the right direction??
Thanks!

6 Dec 2006, 9:31 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Display the total # of Items in Cart - Custom

Add:

define('TEXT_MINI_CART_ITEMS','shopping bag');

to a file with any other extra definitions

Add: to you tpl_header in the appropriate place

<?php echo TEXT_MINI_CART_ITEMS . $_SESSION['cart']->count_contents() ;?>
6 Dec 2006, 10:18 PM
#3
fluxem avatar

fluxem

New Zenner

Join Date:
Jul 2006
Location:
California
Posts:
44
Plugin Contributions:
0

Re: Display the total # of Items in Cart - Custom

Kim you rock! thank you very much, works great!

6 Dec 2006, 11:57 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Display the total # of Items in Cart - Custom

You're welcome. Don't forget to use the coffee cup at the top of the page too. :D

6 Dec 2006, 11:59 PM
#5
fluxem avatar

fluxem

New Zenner

Join Date:
Jul 2006
Location:
California
Posts:
44
Plugin Contributions:
0

Re: Display the total # of Items in Cart - Custom

:yes:
will do

18 Nov 2010, 1:54 PM
#6
sharontan avatar

sharontan

New Zenner

Join Date:
Nov 2010
Posts:
57
Plugin Contributions:
0

Re: Display the total # of Items in Cart - Custom

Hello, how do you get the image of the bag next to the shopping cart?