PDA

View Full Version : Items in Basket > (Action Showcart) on Brochure Page


peter
16-Jan-2004, 09:20 AM
Hi

i've the 'action showcart' to display the items in the shoppers basket at the top of every page - it works on catalogue pages but not on my brochure page.

visit site (http://stitch1.hazelhost.co.uk)

I tried the advanced guide tip (p49) which suggests using http://your.URL/cgi-bin/ca000001.pl?ACTION=SHOWCART&ACTINIC_REFERRER=http://your.URL/acatalog/ but this resulted in a javascript error.

Have i done something stoopid? or has anyone had a similar problem and solved it?

pete

Menar
16-Jan-2004, 09:42 AM
Hi there,

Looking at the source of your page it seem that the code you inserted for the 'cart item and value' is not the generated code.

Please try replacing the code from;

<script language="JavaScript">
document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"<br>");
document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
</script>

TO

<script language="JavaScript">
document.write("Items:&nbsp;" + getCartItem(3)+"<br>");
document.write("Value:&nbsp;" + getCartItem(1));
</script>

Hope this helps

peter
16-Jan-2004, 09:53 AM
thanks menar

thats fixed it.

i think i got the old code from a previous site i developed some time ago. that'll teach me to be sloppy.