I want to add a 3rd party Afiliate program for my website, they give me the code bellow
and I must replace
[list]
[*][b]ADD_SALE_VALUE (this must be total order value without VAT and without transportation taxes )[/b]
[*][b]ADD_TRANSACTION_ID ( order id )[/b]
[*][b]ADD_DESCRIPTION (product name)[/b]
[/list]
Anyone who can tell me how can i do it?
Be very careful. You want this code to be active ONLY if the referral comes from the affiliate. Otherwise you're going to pay them for every order.
You would use a post hook for “checkout:orders_confirmation”. If you don't know what this means, you can search for “orders_confirmation” in the forum, but like I said above, you better ensure you have a way to identify what orders are related to this affiliate only.
Personally I wouldn't use iframes. They are very expensive since they basically try to keep multiple sites live in the same browser session. But usually people who use iframes want browser info and more detailed info than someone would normally be willing to reveal. To me, it's a privacy issue.
There are some tax fields. What I'd suggest is that you add the following template comment to your tempalte and then do a view source to see what's there. Then you can grab the value you want.
This was great, but i still don't have a value of subtotal-taxes. I have just a value for subtotal and a value for taxes, is there a way to add a new value {$order_info.xxxxxx} = {$order_info.subtotal} - {$order_info.tax_subtotal} ?