Need help with Mini Cart

General ShopSite user discussion

Need help with Mini Cart

Postby tdsrob » Fri Jan 29, 2010 5:38 pm

I am trying to add a minicart to my custom template's right sidebar. I was hoping someone can give me some tips or point me in the right direction.

I want a mini-cart to display on my home page's right sidebar which is not a ShopSite generated page. I built this page in Dreamweaver and I'm using order anywhere for the few products listed on the page.

I also want a mini cart to show on my ShopSite generated stores pages using a custom template. I have been reading through the knowledge base and cannot seem to figure out how to accomplish these two tasks. Any help would be greatly appreciated.
tdsrob
 
Posts: 21
Joined: Fri Jan 08, 2010 10:34 am
Location: Florida

Postby tdsrob » Fri Jan 29, 2010 11:35 pm

Ok so I have figured out how to add the minicart to my store pages. I would like to clear a couple things up however....

From what I have been reading is it true that I cannot have a minicart on a shopping cart or customer reg. page?

Also is there a way to add the minicart to my non-shopsite genrated home page without all the javascript?

I tried adding the javascript in an external file
Code: Select all
<script language="javascript" src="http://www.mydomain.com/js/minicart.js"></script>
however it did not work....
tdsrob
 
Posts: 21
Joined: Fri Jan 08, 2010 10:34 am
Location: Florida

Postby Jim » Sat Jan 30, 2010 8:53 am

The minicart reads a cookie set by the first shopping cart screen. Cookies can only be read by the domain that creates them.

Since the Customer Registration and the second and third shopping cart screens are secure they have a different domain name and can therefore not read the cookie. (http//domainname and https//domainname are 2 different domains.)

Yes you can add the javascript to a non-ShopSite created page. Just make sure that you use a version of the javascript that does not include ShopSite template tags that begin with [-- and end with --]. See this page in the help
http://www.shopsite.com/help/10.1/en-US ... ples1.html
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby tdsrob » Sat Jan 30, 2010 12:07 pm

Ok great fixed...thanks for your help
tdsrob
 
Posts: 21
Joined: Fri Jan 08, 2010 10:34 am
Location: Florida


Return to User Forum

Who is online

Users browsing this forum: No registered users and 140 guests