Announcement

Collapse
No announcement yet.

Affiliate integration

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

    Affiliate integration

    Hi.
    I have integrated Post Affiliate Pro (PAP) with my site. It is all working fine and is registering the clicks and the commission owed on sale leads. However I wish to pay commission on the total without VAT and shipping. This is a sum I could do manually each time but I don't really want to do that.
    I am using Secure Hosting (SH) as my PSP and at the moment it takes its values (transaction amount and order number) from the values in the actinic SH template page. I don't seem to be able to find a spot in the page to add a sub total value since they seem to created automatically somewhere more complicated that I can find - NETQUOTEVAR:OCC_VALUES.
    Is it possible to send the sub total (ie before tax and shipping) to SH from where I can send the correct amount to PAP which can then complete the correct calculation. The last bit I can do!
    Thanks to anyone who can help.
    James.

    #2
    Ummm. Does the silence mean nobody knows or that I have committed a community faux pas?! Thank you. I would be very gratefull if somebody could shed some light on the issue. Thanks. James.

    Comment


      #3
      No community faux pas James - my guess is no one knows.

      Comment


        #4
        I don't know PAP, but did wonder why you were passing the order values from Secure Hosting in the first place rather than from your own website.

        The other thing I would say is that affiliates aren't exactly daft. There's no point offering them a 6% commission rate (for example) and then stiffing them on the VAT and shipping element of the order. Doing this will just annoy them and that's no way to treat the people who are selling your products. it's better to make the commision rate 5% and not mess them about.

        Mike
        -----------------------------------------

        First Tackle - Fly Fishing and Game Angling

        -----------------------------------------

        Comment


          #5
          Thanks Mike. I thought - and I may well be wrong - that if the purchase wasn't passed from the SH then there would be no way of knowing if the transaction had been completed. Or would I do it from the receipt page? Doesn't that page that sends the info have to be clicked on to have the commission calculated. Some may not want to see their receipt...
          Good point about the affiliates - I will pass that onto my boss!

          Comment


            #6
            is this what you're looking for?

            http://community.actinic.com/showthread.php?t=45059.
            Last edited by KB2; 22-Mar-2010, 03:35 PM. Reason: Updating kb links

            Comment


              #7
              I found that file the other day and was very excited until I couldn't find the file orderscript.pl. I did however find os00001.pl (which I thought might be the same thing) and had a look for the script I was asked to look for and found something sort of similar. That is when I stopped in case I messed everything up. Maybe i should have perservered...

              Comment


                #8
                Orderscript.pl is in your Program Files>Actinic v9>Site1 folder.

                Comment


                  #9
                  It should be orderscript.pl which is in your site1 folder. The os000001.pl is generated from orderscript.pl so this is where changes have to be made.

                  I don't know how SH hand customers back to your website. It may say, 'click here to see your receipt' or something like that, but if you're concerned then you should be able to change it to something like 'click here to complete your order'.

                  Mike

                  PS. In V9 it should be in My Documents> Actinic V9 > Sites > Site 1 rather than under Program Files.
                  -----------------------------------------

                  First Tackle - Fly Fishing and Game Angling

                  -----------------------------------------

                  Comment


                    #10
                    Found It! Thanks. Then it is uploaded into the CGI-BIN? Just don't want to do a whole site refresh if I don't have to. That is correct with SH - they say click here to see receipt. As you say a bit of a change in wording would soon fix that! I'll give it a go and see what happens. Thank you...

                    Comment


                      #11
                      Found It! Thanks. Then it is uploaded into the CGI-BIN? Just don't want to do a whole site refresh if I don't have to.
                      if you change orderscript.pl and upload, only the change will be uploaded not the whole site.

                      why are you fearful of refreshing?

                      Comment


                        #12
                        Not fearful - just plain impatient! But you have a point, I will just change that file and up it will go all on its own.
                        Just a question about the workings of the file itself: i have looked for the orderscript.pl within the live site directories. It isn't there. Is that because the changes upload on os000001.pl? If it is there where is it?!! How does it work - I think is my question.

                        Comment


                          #13
                          James if you still can't find the file then I suggest you use the Search feature in Windows and search for 'Files and Folders' with the name "OrderScript.*" - minus the quotations. FTR this will search for all files containing OrderScript. in their name, regardless of the file extension.

                          Comment


                            #14
                            So in the first instance I say thank you to you all.
                            Secondly here is the solution should anyone use PAP with actinic which seems to work pretty well once this hurdle was overcome. The PAP implementation provided by quality unit is slightly wrong but between all the posts and the KB you can get it. However I think the correct solution 'all in once place' would be helpful to someone...
                            So....

                            1. Go to this http://community.actinic.com/showthread.php?t=45059.
                            and follow instructions.
                            2. Update order04.html with the sales and tracker code provided by PAP.
                            It should be this: (not the one provided by them)
                            ?>
                            <script id="pap_x2s6df8d" src="http://www.yoursite.com/affiliates/scripts/salejs.php" type="text/javascript"></script>
                            <script type="text/javascript">
                            var sale = PostAffTracker.createSale();
                            sale.setTotalCost('NETQUOTEVAR:NUMERICORDERTOTAL');
                            sale.setOrderID('NETQUOTEVAR:THEORDERNUMBER');

                            PostAffTracker.register();
                            </script>
                            <?
                            3. Upload files.
                            4. Test etc.

                            I hope that helps.
                            Thank you again,
                            James.
                            Last edited by KB2; 22-Mar-2010, 03:34 PM. Reason: Updating kb links

                            Comment

                            Working...
                            X