Announcement

Collapse
No announcement yet.

Affiliate Tracking

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

    Affiliate Tracking

    Hi,

    I have been having a look at integrating an Affiliate Tracking package into our site, which has meant adding some code to order04.html. Problem that I have found, is that the Affiliate software requires me to call it as an image (so that it always gets called automatically) but with an incrementing counter so that it knows which product it is currently looking at

    ie.
    <img src="http://affiliatepath/sale.cgi?desc_x=<Product Name>&quant_x=<Quantity of PRoduct>&Price_x=<Price>">

    where x is the incrementing counter.

    I have found that I need to do this in JavaScript, so that I can have an incrementing counter variable (it starts from zero each time), but that then gives me problems regarding where I place the code as Actinic only seems to know about its NETQUOTEVAR tags on certain parts of the page (ie. if I send it in the Price column in the Order04.html table, then it doesn't know what NETUOTEVAR:PRODUCTNAME or QUANTITY are, and vice versa).


    Anyway, if anyone has any suggestions or tips then it would be greatly appreciated, as I seem to be going down the same avenues with it.

    Cheers,

    Stuart
    Tacklebargains.co.uk

    Located: Cheshire, UK

    #2
    Hi Stuart

    There is a section in the version 6 Advanced User Guide that covers setting up an affiliate program link (see the section called 'Supporting an Affiliate Program with Actinic Ecommerce').

    Does this help?

    Ben Popplestone
    Actinic Software
    http://www.actinic.co.uk
    Ben Popplestone
    Ecommerce website software

    Comment


      #3
      Affilaite schemes

      Can I ask which Affiliate program or company you are going to use?

      Comment


        #4
        Hi,

        Thanks for the replies.

        The affiliate program we are hoping to use is Assoctrac 2.5 - seems to be fair enough from what I have seen so far.

        Ben - I had seen the Advanced User Guide section on Affiliates, and it gave a couple of hints but only thing is that we only want to give out commision on the SubTotal (ie. not on the Tax or Shipping), but seem unable to find a NUMERICORDERTOTALCGI equivalent for the SubTotal. I really need to use a Numeric version otherwise the Affiliate software just doesn't like it (I have also been annoying them about it as well )

        I seem to have managed to blag my round the other problems which were being caused by having to use JavaScript in order to have an counter which incremented on every product, and then the other problem of only being able to call some NETQUOTEVARs in certain sections of the Receipt page ( ie. I cannot call the PRODUCTPRICE one in the PRODUCTNAME section of order04.html and vice versa).

        Anyway, I reckon that if we can get a Numeric version of the SubTotal then we will be sorted (hopefully!!!)

        Cheers again,

        Stuart
        Tacklebargains.co.uk

        Located: Cheshire, UK

        Comment


          #5
          I'm afriad sub-total is not available as an unformatted numerical NETQUOTEVAR. I suppose you could divide the order total by 1.175 to get ex-vat, but this does not get around the shipping (unless you use a flat rate and can just remove this figure from the order).

          Sorry about that. I have added it to the wish list.

          Comment


            #6
            After a bit of guessing and swearing, I managed to write a piece of JavaScript which formats any of the Actinic prices into a simple Numeric value - seems to work so hopefully that'll be this Affiliate integration sorted out.

            Thanks for your suggestions and help.

            Cheers,

            Stuart
            Tacklebargains.co.uk

            Located: Cheshire, UK

            Comment


              #7
              Would you be willing to post your script function on here? - I'm sure some other developers would benefit.

              Comment


                #8
                Yep - no problem. Will post it on here probably tomorrow evening, with a few comments to help.
                Tacklebargains.co.uk

                Located: Cheshire, UK

                Comment


                  #9
                  Hi Stuart

                  Any chance of that posting

                  I'm struggling to convert NETQUOTEVAR:ACTINICORDERTOTAL into pounds and pence from pence.

                  Cheers

                  Lee.
                  http://www.ihavetohave.it

                  Comment


                    #10
                    I have the scripts here for NETQUOTEVARS for:

                    Total
                    Subtotal
                    Tax1
                    Tax2
                    Shipping1
                    Shipping2

                    It's pants to say that ACTINIC don't have those values. I offered to sell them the scripts as so many people were asking for it and they weren't interested.

                    The offers still open guys....... Contact me and you can have the scripts.....

                    Comment


                      #11
                      Hi

                      I am trying to set up an affiliate link and would appreciate you emailing me the code if that would be ok.

                      jmoss@memixdirect.com
                      Thanks in advance.

                      Jonathan Moss
                      www.memixdirect.com

                      Comment


                        #12
                        Assoc Trac Integration

                        Hi, just bought Assoc Trac 4 for my Actinic store at www.magicworld.co.uk

                        Can someone please help me with the integration... As mentioned above I need some javascript?

                        The code Assoc Trac asks me to put in is:

                        <img src="http://www.assoctrac.com/12345/track/sale/?

                        desc_1=printer;price_1=99.95;qty_1=1

                        desc_2=cartridge;price_2=19.95;qty_2=3;

                        order=code to generate order ID;commit=1">

                        I guess I simply exchange the "code to generate order ID" with the netquotevar variable for order code etc, but what about the rest.

                        If anyone can help i'd be most grateful

                        Thank you
                        Anthony
                        www.magicworld.co.uk
                        ================
                        Amaze Your Friends...
                        www.magicworld.co.uk

                        Comment


                          #13
                          Check out http://community.actinic.com/showthread.php?t=3825 for some useful code and examples.

                          Comment


                            #14
                            Sorry, meant to post this ages ago and totally forgot. I placed this code immediately after NETQUOTEVAR:SUBTOTAL inside the <SPAN> for it.

                            <script>
                            testPrice = "NETQUOTEVAR:SUBTOTAL";

                            var i;
                            var SecondAmp = 0;
                            var FullPrice = "";
                            for (i = 0; i < testPrice.length; i++)
                            {
                            // Search through string and append unfiltered values to returnString.
                            var c = testPrice.charAt(i);
                            if (c == "&")
                            {
                            if(i != 0)
                            {
                            SecondAmp = i;
                            }
                            }
                            }

                            var FirstPrice = testPrice.substring(6,SecondAmp);
                            var SecondPrice = testPrice.substring(SecondAmp + 5, SecondAmp + 7);
                            // create the fullprice
                            FullPrice = FirstPrice + "." + SecondPrice;

                            // we always send a constant product description, but this could easily be dynamic
                            var ProductDesc = "Affiliate Sale ";
                            ProductDesc = ProductDesc + "£" + FullPrice;
                            // then dynamically create an image which quietly sends off our info
                            document.write("<img src='http://assoctrac.com/2.0/{our userid}/sale.cgi?desc_1=" + ProductDesc + "&price_1=" + FullPrice + "&qty_1=1'>");
                            </script>


                            Hope this helps.

                            Cheers,.

                            Stuart
                            Tacklebargains.co.uk

                            Located: Cheshire, UK

                            Comment


                              #15
                              Looking everywhere for the NETQUOTEVAR:SUBTOTAL in Act_Order04.html Doesn't seem to be in !

                              Can anyone help me find it, or let me know if the above code should be put elsewhere?

                              Thanks
                              Anthony
                              www.magicworld.co.uk
                              ================
                              Amaze Your Friends...
                              www.magicworld.co.uk

                              Comment

                              Working...
                              X