Displaying the cart on other pages?

General ShopSite user discussion

Displaying the cart on other pages?

Postby AndrewCD » Thu Oct 22, 2009 6:35 am

I was wondering if there is a way to display your shopping cart on non-ShopSite pages - possibly listing all items or just listing the total price.
AndrewCD
 
Posts: 3
Joined: Thu Oct 22, 2009 6:29 am
Location: NC

Postby BFChris » Thu Oct 22, 2009 7:05 am

This is what the mini-cart is for.

You can view the mini cart code and copy and paste it on any page in the same domain as your Shopsite store (it has to have the same domain to be allowed to read the cart cookie). Just watch file paths..probably change them all to absolute paths to be safe.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby AndrewCD » Thu Oct 22, 2009 7:13 am

I think i may be having a problem here then if it needs to be the same domain. Our site is on .com and ShopSite is on .net
AndrewCD
 
Posts: 3
Joined: Thu Oct 22, 2009 6:29 am
Location: NC

Postby AndrewCD » Thu Oct 22, 2009 8:11 am

http://www.customdynamics.com/test/test-page-cart.htm

not getting anything to show up from there.
AndrewCD
 
Posts: 3
Joined: Thu Oct 22, 2009 6:29 am
Location: NC

Postby loren_d_c » Thu Oct 22, 2009 11:25 am

The mini-cart works based on abbreviated cart info set in a cookie by the shopping cart. Your shopping cart is at the domain www.customdynamics.net, so this is the domain that sets the cookie. The cookie can only be read from the same domain that sets it, so the mini-cart will not work on any other domain.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: No registered users and 119 guests