Announcement

Collapse
No announcement yet.

Cart contents

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

    Cart contents

    Hi all,

    Just wondering if there is a way to get this standard feature of Actinic (cart contents and price):

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

    ... to work on any page outside of Actinic?

    Any help greatly received.
    Cheers

    #2
    Theoretically, yes, although I've never tried it. The two NETQUOTEVAR:CARTCOOKIExxx are just text strings and the getCartItem() is a function in the JavaScript file, actinicextras.js, which you would have to reference in the non-actinic page (possibly actiniccore.js as well because it has the getCookie function).

    Alan

    Comment


      #3
      So long as it's on the same site, you should have access to the cookies that the function uses, so I can't see any real reason why not. Doing it across domains probably wouldn't work, though.

      Comment


        #4
        Ah! That explains it. I'll give it a go and see what happens...

        Cheers!

        Comment

        Working...
        X