Post by revadam » Tue Jan 17, 2012 3:33 am

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

Newbie

Posts

Joined
Tue Jul 12, 2011 5:00 am

Post by inactiveaccount9912 » Tue Jan 17, 2012 4:59 am

you could use an html module for that: http://www.opencart.com/index.php?route ... on_id=2454

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by revadam » Tue Jan 17, 2012 6:15 am

Just so I am clear...

Set up a new module, insert my affiliate code, set layout to checkout, position it, enable it and hit save?

Newbie

Posts

Joined
Tue Jul 12, 2011 5:00 am

Post by inactiveaccount9912 » Tue Jan 17, 2012 6:42 am

Yes , if you want it on the checkout page. You should probably create a layout for the checkout success page and add it there.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by revadam » Tue Jan 17, 2012 6:45 am

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.
Ok, I need it on the checkout success page according to the affiliate program.

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 ;D

Newbie

Posts

Joined
Tue Jul 12, 2011 5:00 am

Post by revadam » Thu Jan 19, 2012 4:39 am

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:

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>';
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.

Newbie

Posts

Joined
Tue Jul 12, 2011 5:00 am

Post by bruceamo123 » Wed Aug 15, 2012 3:43 am

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?

New member

Posts

Joined
Thu May 10, 2012 4:34 am

Post by utchin » Wed Aug 15, 2012 3:59 am

that file above was in the language/english folder

New member

Posts

Joined
Tue Jun 26, 2012 5:01 pm

Post by bruceamo123 » Fri Aug 24, 2012 1:02 am

I opened it and pasted but no results, what did i do wrong?

New member

Posts

Joined
Thu May 10, 2012 4:34 am

Post by stavroch » Wed Jul 02, 2014 11:21 pm

Any news?

Newbie

Posts

Joined
Thu Apr 04, 2013 1:45 am
Who is online

Users browsing this forum: No registered users and 30 guests