Forums / General Questions / Echo Cart Summary?

Echo Cart Summary?

Locked

Views: 1,083

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Nov 2009, 4:44 PM
#1
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Echo Cart Summary?

Does anyone know the code I need to echo a cart summary?

i.e

Items(0) £0.00

?

Cheers

Phil

Phil Rogers
A problem shared is a problem solved.

16 Nov 2009, 10:50 PM
#2
peytonrm avatar

peytonrm

New Zenner

Join Date:
Jun 2008
Location:
Morrisville, NC
Posts:
47
Plugin Contributions:
0

Re: Echo Cart Summary?

You can do something like:

<?php var_dump($_SESSION['cart']); ?>

Of course, you need to do that from a file that is far enough down the chain that the variable will be populated.

"Whether you think you can or think you can't, you're right" - Henry Ford

16 Nov 2009, 11:01 PM
#3
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Echo Cart Summary?

peytonrm:

You can do something like:

<?php var_dump($_SESSION['cart']); ?>

Of course, you need to do that from a file that is far enough down the chain that the variable will be populated.

I think I need something that calls the variables as part of it? not to sure

Phil Rogers
A problem shared is a problem solved.

17 Nov 2009, 3:42 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Echo Cart Summary?

There is a cart summary addon in the addons area ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Nov 2009, 10:45 PM
#5
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Echo Cart Summary?

DrByte:

There is a cart summary addon in the addons area ...

Dr Byte,

THANKYOU! awesome as ever!

Phil

Phil Rogers
A problem shared is a problem solved.