Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Add a script to thank you page after order Rate Topic   - - - - -

 

Posted 07 June 2012 - 08:33 PM #1

I want to be member with clickbanner.gr which is company that have cooparetion with 4000 sites and when a customer come from clickbanner or coopareted site,i pay a commision when the order complete.
I must put this code to "thank you page" when the order completed but i must chage the text "LINE_ITEM_STRING" with total order price and "TRANSACTION_ID" with order id.

<script src="http://network.click.../TRANSACTION_ID
/OPTIONAL_INFORMATION&sale_status=P"></script>
<noscript><img src="http://network.click...r/i_track_sale/10421/LINE_ITEM_STRING/TRANSACTION_ID
/OPTIONAL_INFORMATION&sale_status=P"></noscript>

Can someone help me? :confused:

 
  • brandonvd
  • is Super Awesome
  • Members
  • Join Date: 19-Dec 06
  • 2633 posts

Posted 08 June 2012 - 04:39 AM #2

I can help you part way.

Create a file called skins/your-skin/customer/addons/my_changes/hooks/checkout/order_confirmation.override.tpl

In that file, put:

{literal}<script src="http://network.clickbanner.gr/i_sale_third/10421/LINE_ITEM_STRING/TRANSACTION_ID"></script><noscript><img src="http://network.clickbanner.gr/i_track_sale/10421/LINE_ITEM_STRING/TRANSACTION_ID/OPTIONAL_INFORMATION&sale_status=P"></noscript>{/literal}

Since you didn't use the code tags, your code got screwed up, that you should get the idea.

Then just clear your cache and you'll be good with that part.

Unfortunately I'm just not sure how to get the information you need though, sorry.

I hope that helps anyways.

Thanks,

Brandon

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11333 posts

Posted 08 June 2012 - 05:21 AM #3

Would suggest NOT using override so other addons can have access to the hook. A post or pre is quite sufficient. When an override is encountered, any existing pre/post directives are thrown away. So override should only be used when you really want to override behavior, not add to it. Just two cents....

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.