View Full Version : Items and Value on non Actinic pages
jmedinger
31-Jul-2003, 10:35 AM
Does anyone know if it's possible to include the cart summary values on non-actinic generated pages? (i.e. the Items=1 and Value=£ summary)
Is there a piece of code which can pull this Cookie information from the users cache?
Cheers
Jos
Martin Smith
31-Jul-2003, 10:43 AM
I would have though that the JavaScript that performs this function on the Actinic pages should work on non-Actinic pages.
You will have to make sure you include the .js file that includes the functions that are called by this script (actiniccore.js from memory).
Obviously this will only work pages on the same domain that set the cookie value.
Hope this helps.
cdicken
01-Aug-2003, 09:01 AM
You should be able to put lines like this:
<SCRIPT LANGUAGE="JavaScript" SRC="http://your.URL/acatalog/actiniccore.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="http://your.URL/acatalog/actinicextras.js" TYPE="text/javascript"></SCRIPT>
into the headers of any page on the Internet and then put this code:
<script language="JavaScript">
document.write("NETQUOTEVAR:CARTCOOKIEITEMS " + getCartItem(3)+" <BR>");
document.write("NETQUOTEVAR:CARTCOOKIEVALUE " + getCartItem(1));
</script>
into the main body of the page where you want it to appear.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.