Hi,
I am trying to integrate our web site with Netgains affiliate network. I posted a few times before when I was trying to store variables with products in order to set up multiple comission rates. Unfortunately I couldn't find a solution and I have given up.
I have now decided to use a fixed comission rate for all products. But I still can't get all the information I need. I need to send details such as the price, reference number, and quantity of each item that is purchased. The advanced user guide has a section about getting details of products by inserting a copy of the Cart Product Details layout into the receipt. But it doesn't really explain how to get all the details. For instance, the layout contains the quantity of each item but apparently not the price. Unless I have done it wrong of course.
Another problem I have is that the affiliate code requires an MD5 hash of all the referral data to be sent with it. This cannot be done in Javascript because the hash is mainly for security, and the input string must contain our password which would be visible in the source. Therefore I suppose it would have to be done in Perl. But I can't use Perl in the receipt page layout.
Any ideas would be appreciated. Apologies for creating three threads so far about affiliates, but I don't think the title of the old thread described the problem I have now. I wish I could forget the whole idea but my boss doesn't seem to realise that this isn't as easy as simply copying and pasting a few lines of Javascript.
I am trying to integrate our web site with Netgains affiliate network. I posted a few times before when I was trying to store variables with products in order to set up multiple comission rates. Unfortunately I couldn't find a solution and I have given up.
I have now decided to use a fixed comission rate for all products. But I still can't get all the information I need. I need to send details such as the price, reference number, and quantity of each item that is purchased. The advanced user guide has a section about getting details of products by inserting a copy of the Cart Product Details layout into the receipt. But it doesn't really explain how to get all the details. For instance, the layout contains the quantity of each item but apparently not the price. Unless I have done it wrong of course.
Another problem I have is that the affiliate code requires an MD5 hash of all the referral data to be sent with it. This cannot be done in Javascript because the hash is mainly for security, and the input string must contain our password which would be visible in the source. Therefore I suppose it would have to be done in Perl. But I can't use Perl in the receipt page layout.
Any ideas would be appreciated. Apologies for creating three threads so far about affiliates, but I don't think the title of the old thread described the problem I have now. I wish I could forget the whole idea but my boss doesn't seem to realise that this isn't as easy as simply copying and pasting a few lines of Javascript.
Comment