Add a script to thank you page after order

[font=arial, helvetica, sans-serif][size=3]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.[/size][/font]

[font=arial, helvetica, sans-serif][size=3]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.[/size][/font]



[font=arial, helvetica, sans-serif][size=3]<script src=“http://network.click…/TRANSACTION_ID[/size][/font]

[font=arial, helvetica, sans-serif][size=3]/OPTIONAL_INFORMATION&sale_status=P”>[/size][/font]

[font=arial, helvetica, sans-serif][size=3]<img src=“http://network.click…r/i_track_sale/10421/LINE_ITEM_STRING/TRANSACTION_ID[/size][/font]

[font=arial, helvetica, sans-serif][size=3]/OPTIONAL_INFORMATION&sale_status=P”>[/size][/font]



[font=arial, helvetica, sans-serif][size=3]Can someone help me? :confused:[/size][/font]

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}{/literal}



[font=arial,helvetica,sans-serif][size=3]Since you didn't use the code tags, your code got screwed up, that you should get the idea.[/size][/font]



[font=arial,helvetica,sans-serif][size=3]Then just clear your cache and you'll be good with that part.[/size][/font]



[font=arial,helvetica,sans-serif][size=3]Unfortunately I'm just not sure how to get the information you need though, sorry.[/size][/font]



[font=arial,helvetica,sans-serif][size=3]I hope that helps anyways.[/size][/font]



[font=arial,helvetica,sans-serif][size=3]Thanks,[/size][/font]



[font=arial,helvetica,sans-serif][size=3]Brandon[/size][/font]

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…