Display Cart on Pages

General ShopSite user discussion

Display Cart on Pages

Postby malljess » Sat Aug 11, 2012 1:13 pm

I am attempting to display the subtotal costs of the products on my moreinfo and search pages. I placed the code in the appropriate places; however, regardless of the contents of the cart it states "0 items" next to a shopping card. I have tried a number of changes in the code but the contents of the cart remains 0. When you click on the 0 items link, it goes to the cart. So the problem is reading the contents of the cart and displaying the subtotal cost on the page.

Please advise.

this is what is on the website
(picture of cart) 0 Items

regardless of what is in the cart
malljess
 
Posts: 50
Joined: Sat Oct 22, 2011 7:38 am

Re: Display Cart on Pages

Postby robm » Sat Aug 11, 2012 2:56 pm

Is the domain where your moreinfo pages are the same as the shopping cart? If not, it will not work, as it uses cookies, and the cookie must be on the same domain as the cart.

If it is the same URL, then verify you enabled the mini-cart under:
Commerce Setup -> Order System -> Layout Info -> "Mini Shopping Cart:"

If it's still not working, let us know a URL where we can see the page/mini-cart.

Rob
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 111 guests

cron