Skip to content
FREE & OPEN SOURCE Million Dollar Script is a free WordPress plugin for sponsor walls, campaign grids, fundraiser boards, and premium add-on workflows.

General

Integrating with affiliate system

Started September 1, 2010 by veira

I am using postaffiliatepro software and would like to integrate it to the pixel program. I have been given the code and it seems easy for me for i only need to paste it in the thank you page which i found with ease. There is however something i would like clearance about. The code has the following instructions.[quote]here the parameters in setTotalCost(), setOrderID() and setProductID() should be replaced with correct values.Total Cost (mandatory for % commissions) - price of the productOrder ID (optional) - can be your unique generated order ID to cross-check the sale.Product ID (optional) - the ID of the product bought.All fields are optional, but without Total Cost system will be not able to compute percentage commissions. Also, Product ID is required if you want to recognize campaign by product.If you need to set total sale cost and order id, but you don't have access to their values in your "Thank you" page, the situation is more complicated. There is no general solution for this. If you know that you can register sale in some other place, where those values (total cost and order id) are available, you can put the tracking code there. Otherwise, consult us for advice and finding possible solution.[/quote]This quote is from their instructions and i just want to be sure about what i should put for total sale according to your program. I am offering my commissions in %. Waiting for your quick reply. Thank you. :)

4 replies

[quote]what i should put for total sale according to your program[/quote]I am not exactly sure what you are saying... do you want the total cost of your pixels? Or do you want some php code that shows only the total order cost somehow? Or something to pass that value to this affiliate script?

[quote]Or something to pass that value to this affiliate script? [/quote]I believe this what it requires. but i am not sure. Please check this link http://support.qualityunit.com/knowledgebase/post-affiliate-pro/configuration/integration/general-sales-leads-tracking.html to see an example of what i am trying to do.[quote]here the parameters in setTotalCost(), setOrderID() and setProductID() should be replaced with correct values.Total Cost (mandatory for % commissions) - price of the productOrder ID (optional) - can be your unique generated order ID to cross-check the sale.Product ID (optional) - the ID of the product bought.All fields are optional, but without Total Cost system will be not able to compute percentage commissions. Also, Product ID is required if you want to recognize campaign by product.If you need to set total sale cost and order id, but you don't have access to their values in your "Thank you" page, the situation is more complicated. There is no general solution for this. If you know that you can register sale in some other place, where those values (total cost and order id) are available, you can put the tracking code there. Otherwise, consult us for advice and finding possible solution.[/quote]These are additional instructions i was given since i have purchased the software. probably you will have an idea what they mean.

I see. So you are editing /users/thanks.php and want to add this onto it?If that is the case you can probably get the variables from in the $_REQUEST variable.Try adding into a section in that file: [code][/code]This will show you the variables and you can see if what you want is in there. Then you can use something like [code][/code] to output them.

Hi Ryan, i get your point but i have not been able to use the code to show me the variables. What i want to know is the totalcost variable name. --------------------------------------sale.setTotalCost('0');sale.setOrderID('ORD_05pixelad');sale.setProductID('pixelad');sale.setCampaignID('11111111');sale.setStatus('A');----------------------------------------------What is most sensitive on this code is sale.setTotalCost('0'); which the program should supply the value. I was not able to print the variables using the command above, and if i did, i didn't see anything that looked like total cost. I checked the database and can see that the variable is 'price'. now how do i supply that value under price to the pap code on totalcost line. After making a sale on thank you page source code, i can see very well the program instructing the customer to pay the value using a certain payment mode. If i can use the same way to populate the value i think it will be ok. What is your advice? I will appreciate. Thanks.