Announcement

Collapse
No announcement yet.

Displaying items and price on non-Actinic pages?

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

    Displaying items and price on non-Actinic pages?

    We have a set of static HTML pages on which we'd like to display the number of items in the basket as well as total price of items in the basket.

    Is this possible? e.g. Server side includes or Javascript?

    Will the existing code work:

    Code:
    <script language="JavaScript">
    document.write("" + getCartItem(1)+"&nbsp;");
    document.write("Items&nbsp;" + getCartItem(3));
    </script>
    Thanks in advance!

    #2
    That code uses routines in actiniccore.js and actinicextras.js that are in your acatalog directory, so you'd need 2 lines in the HEAD of these pages that load these files. E.g.
    Code:
    <SCRIPT LANGUAGE="JavaScript" SRC="acatalog/actiniccore.js" TYPE="text/javascript"></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript" SRC="acatalog/actinicextras.js" TYPE="text/javascript"></SCRIPT>
    and amend the path to acatalog if necessary.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Many thanks for your reply - I'll try it out.

      Comment


        #4
        Norman - is the COOKIECHECK command needed?


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          Don't think so. However the cookie will only work if the page requesting it is on the same domain as the Actinic pages.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment

          Working...
          X