Announcement

Collapse
No announcement yet.

Adding JavaScript to shopping basket page

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

    Adding JavaScript to shopping basket page

    Hi all.

    I've been asked to ad some Javascript on the shopping basket page (the one before the order is sent to WorldPay). This code is to enable dealtime to track sales through their system.

    Can this be added? and if so which template should be edited? Will Actinic overwrite the code?

    Thanks in advance - Andy

    The code is:
    script language="JavaScript">
    var merchant_id = "????"
    var order_id = "PUT_YOUR_DATA_HERE"
    var order_amt = "PUT_YOUR_DATA_HERE"
    var category_id = "PUT_YOUR_DATA_HERE"
    var category_name = "PUT_YOUR_DATA_HERE"
    var product_id = "PUT_YOUR_DATA_HERE"
    var product_name = "PUT_YOUR_DATA_HERE"
    </script>

    #2
    Getting There!

    Ok, i've found that the page i need to edit is the Act_ReceiptPrimary.html
    I've place the code into the head section of the page.

    I've also added the following for the ammount
    var order_amt = "NETQUOTEVAR:ACTINICORDERTOTAL"
    What are the variables fro the following?


    var order_id = "PUT_YOUR_DATA_HERE"

    var category_id = "PUT_YOUR_DATA_HERE"
    var category_name = "PUT_YOUR_DATA_HERE"
    var product_id = "PUT_YOUR_DATA_HERE"
    var product_name = "PUT_YOUR_DATA_HERE"

    Hope someone can help !

    Thanks
    Andy

    Comment


      #3
      Hi Andy

      A Fellow community member asked this question, please see the following thread for an answer.

      Kind Regards
      Nadeem Rasool
      SellerDeck Development

      Comment

      Working...
      X