PDA

View Full Version : Cart Contents - Gone for a walk


DVDBritain
16-Jul-2003, 06:09 AM
While adding new features to my shop (search box on the pages) i seemed to have accidently removed the "Shopping Contents" box that also appeared.

What code do i need to put it back, and what code can i use to put it on the front page of my shop as well.

Thanks

Jason

Ben
16-Jul-2003, 03:19 PM
Hi Jason

Do you mean the mini cart display with quantity of items and value? If so, the code is:
<script language="JavaScript">
document.write("NETQUOTEVAR:CARTCOOKIEITEMS&amp;nbsp;" + getCartItem(3)+"&nbsp;<BR>");
document.write("NETQUOTEVAR:CARTCOOKIEVALUE&amp;nbsp;" + getCartItem(1));
</script>

Also, make sure you have included a reference to actinicextras.js in the template header.

Ben

DVDBritain
16-Jul-2003, 07:47 PM
Hiya Ben

Yep i meant the mini cart (sounds like something out of austin powers ;)

Ok i will give it a go.

Thanks

Jason

DVDBritain
17-Jul-2003, 06:26 AM
Ok i posted that code into my site, and checkd the javascript link for actinicextras which was already present on my main page and just brings up

NETQUOTEVAR....

on the site.

Any ideas?

Jason

DVDBritain
18-Jul-2003, 06:54 AM
Anyone have anything else to add to this? I would like to finally get my site up and running the weekend (I hope :D

Any help would be appreciated.

thanks

jason

garyhay
18-Jul-2003, 08:49 AM
upload your act_primary.html file so we can take a look.

Change the .html extension to .txt so the forum will take it

cdicken
18-Jul-2003, 04:01 PM
On the front page of your shop you should use:

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

Make sure you have got the line which says:
<SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>

in your <HEAD> section of both your Act_Primary.html and Act_BrochurePrimary.html templates, underneath the line that reads

<SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>