Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / can I include shopping cart contents on all checkout pages?

can I include shopping cart contents on all checkout pages?

Started by linjuming on 18 Jun 2012, 3:15 AM · Views: 644

Results 1 to 4 of 4
18 Jun 2012, 3:15 AM
#1
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

can I include shopping cart contents on all checkout pages?

can i include other page's header.php in defferent page?

such as I want to display order list in checkout_shipping page, so I include shopping_cart's header.php
include(DIR_WS_MODULES.'pages/shopping_cart/header_php.php');

is this good ?

18 Jun 2012, 10:46 AM
#2
davowave avatar

davowave

New Zenner

Join Date:
Mar 2009
Posts:
90
Plugin Contributions:
0

Re: can I include shopping cart contents on all checkout pages?

You want to be able to have the contents of you shopping cart available on other pages, which sounds like this module - http://www.zen-cart.com/downloads.php?do=file&id=990

I've never used it (disclaimer <-- go and have a look at the plugins, there maybe better) but if you download it and look at the code you'll see how you can get the contents of your cart and it'll give you an idea of where to put it. For exactly what you want, it may just be a case of placing a little code in the template files of the pages you mention but that plugin will show you how to get the data.

18 Jun 2012, 11:27 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,752
Plugin Contributions:
56

Re: can I include shopping cart contents on all checkout pages?

... or you could use the built-in shopping cart sidebox, if you're ok with it being in a sidebox rather than the header.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 Jun 2012, 12:06 PM
#4
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

Re: can I include shopping cart contents on all checkout pages?

Thank you very much, I see now