Im setting up an affiliate tracking code on my cart. According to the company I am using, I need to insert the provided code into the "thank you" or confirmation page of the site.
I am using a custom template, not the default. Which file within opencart do I need to open and insert my code?
This is an example of the code I need to insert:
<img src="https://affiliatelink.com/sale.cfm?amou ... atelink.co
m&transtype=lead&merchantID=11" width="1" height="1">
Thanks
I am using a custom template, not the default. Which file within opencart do I need to open and insert my code?
This is an example of the code I need to insert:
<img src="https://affiliatelink.com/sale.cfm?amou ... atelink.co
m&transtype=lead&merchantID=11" width="1" height="1">
Thanks
Yes , if you want it on the checkout page. You should probably create a layout for the checkout success page and add it there.
Ok, I need it on the checkout success page according to the affiliate program.florinsith wrote:Yes , if you want it on the checkout page. You should probably create a layout for the checkout success page and add it there.
If you could please, can you give me a step by step of creating a layout on the checkout success page and how to add it there?
Really really appreciate it

Just to update in case anyone else needs to find a similar solution.
I opened the success.php file and edited this line to include the line of code I had to insert in my first post above:
The affiliate program ran a test and it was successful. This answers my initial question of which file I needed to open to insert the code. No module was necessary.
I opened the success.php file and edited this line to include the line of code I had to insert in my first post above:
Code: Select all
$_['text_message'] = '<p>Congratulations! Your new account has been successfully created!</p> <p>You can now take advantage of member privileges to enhance your online shopping experience with us.</p> <p>If you have ANY questions about the operation of this online shop, please email the store owner.</p> <p>A confirmation has been sent to the provided email address. If you have not received it within the hour, please <a href="%s">contact us</a>.</p>';
I new to this stuff. But I need to paste a code from an affiliate to my site and need your help. Where did you open your success.php file from?
Who is online
Users browsing this forum: No registered users and 30 guests