Announcement

Collapse
No announcement yet.

View contents of cart from outside actinic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    View contents of cart from outside actinic

    Hi,
    I want to be able to display the cart like below, but on a page which is on the same domain, but isn't in the /acatalog/ folder.

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

    Is this possible? IF so how do i do it?

    Cheers
    Angie

    #2
    The easiest way would be to look at the source code of a page with the working cart and copy across the items in the <head> and paste into your new template .. changing any paths to point to the right place.

    You are looking at

    <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>
    <Actinic:COOKIECHECK/>

    these are in my non Actinic homepage <head> and the cart works fine

    HTH


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment

    Working...
    X