Post by dans80 » Thu Jan 12, 2012 11:40 am

Hello,

I am new at OpenCart and plan to integrate some affiliate marketing into my site, which is currently out of the box with no modifications. ShareASale gave me the following string to insert into the order confirmation page in order to verify the tracking code. This should be the final "thank you for your order" page.

1. What is the path and the file that gets called by this page?

2. Where in the file should this string be inserted?

3. How are the values derived for TRACKINGNUMBER & TYPEOFTRANSACTION?

<img src="https://shareasale.com/sale.cfm?amount= ... antID=XXXX"
width="1" height="1">

Any help on this is appreciated.


Dan

Newbie

Posts

Joined
Thu Jan 12, 2012 11:17 am

Post by justinv » Fri Jan 13, 2012 6:46 am

You'll want to put that in catalog/view/theme/<themename>/template/checkout/success.tpl.

Probably at the bottom of the page is best. You'll need to do a little work to get the tracking information such as order value etc in there.

Documentation: OpenCart User Guide
Mods: Total Import PRO | CSV Import PRO | Ecom Tracking | Any Feed | Autosuggest | OpenCart CDN
Image


Active Member

Posts

Joined
Tue Oct 12, 2010 1:24 pm

Post by dans80 » Sat Jan 14, 2012 12:15 am

Thanks J.

Have you integrated any affiliate marketing frameworks w opencart?



Dan

Newbie

Posts

Joined
Thu Jan 12, 2012 11:17 am

Post by dans80 » Sun Jan 15, 2012 1:23 am

Just checked the path and there is no success.tpl under "/<themename>/template/checkout" path but there is a success.tpl under "/<themename>/template/common".

Is that the same file that gets called at checkout?


Thanks,
Dan

Newbie

Posts

Joined
Thu Jan 12, 2012 11:17 am

Post by straightlight » Sun Jan 15, 2012 10:55 pm

dans80 wrote:Just checked the path and there is no success.tpl under "/<themename>/template/checkout" path but there is a success.tpl under "/<themename>/template/common".

Is that the same file that gets called at checkout?


Thanks,
Dan
The last location you mentioned: under "/<themename>/template/common" is the right location.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by dans80 » Sun Jan 15, 2012 11:06 pm

Thanks for clarification.

Newbie

Posts

Joined
Thu Jan 12, 2012 11:17 am

Post by justinv » Tue Jan 17, 2012 12:03 pm

Sorry, my mistake. Good work finding it despite the bad instructions.

I've integrated a couple of affiliate systems. One of them is google analytics, the other was something more custom. They are both similar to what you are doing.

Documentation: OpenCart User Guide
Mods: Total Import PRO | CSV Import PRO | Ecom Tracking | Any Feed | Autosuggest | OpenCart CDN
Image


Active Member

Posts

Joined
Tue Oct 12, 2010 1:24 pm
Who is online

Users browsing this forum: No registered users and 5 guests