mariano10 Posted July 4, 2013 Share Posted July 4, 2013 hi everyone, i need to manipulate the variables 'id_order' and the variable which contains the price of the order (not shure which one is) and put them into a new script similar to adwords. I include the script into 'order-confirmation.tpl', how can i get the variables into de script inside de tpl document?! htanks!! Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted July 4, 2013 Share Posted July 4, 2013 hi everyone, i need to manipulate the variables 'id_order' and the variable which contains the price of the order (not shure which one is) and put them into a new script similar to adwords. I include the script into 'order-confirmation.tpl', how can i get the variables into de script inside de tpl document?! htanks!! can you please clearify more?? Send a screen shot what exactly you want... Link to comment Share on other sites More sharing options...
mariano10 Posted July 4, 2013 Author Share Posted July 4, 2013 Hi divyeshp, thanks for the reply! this is the code i put into de .tpl: <!-- Offer Conversion: Wide: Ropa interior de diseño --> <iframe src="http://t.vorc.us/SLUi?adv_sub=SUB_ID&amount=AMOUNT" scrolling="no" frameborder="0" width="1" height="1"></iframe> < !-- // End Offer Conversion —> I need to replace 'SUB_ID' by the variable containing the order number and to reeplace 'AMOUNT' by the variable containing the price of the order.. sory if im not clear enough! hope you can help me!! Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 check this thread please: http://www.prestashop.com/forums/topic/250595-solved-affiliate-tracking-code/page__hl__affiliate and also this: http://www.prestashop.com/forums/topic/254637-solved-tracking-pixel-implementation/page__p__1267925__hl__affiliate__fromsearch__1 Link to comment Share on other sites More sharing options...
mariano10 Posted July 4, 2013 Author Share Posted July 4, 2013 thanks VEKIA ill try with the threads you provided!! it seems its exactly what i need, thanks a lot! Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 if you've got any questions or concerns related to threads that i posted, feel free to continue discussion, I'm here to help you :-) regards Link to comment Share on other sites More sharing options...
mariano10 Posted July 4, 2013 Author Share Posted July 4, 2013 so this is the code i introduces into order-confirmation.tpl: {literal} <!-- Offer Conversion: Wide: Ropa interior de diseño --> <iframe src="http://t.vorc.us/SLUi?adv_sub={Tools::getvalue('id_order')}&amount={$total_products}" scrolling="no" frameborder="0" width="1" height="1"></iframe> <!-- // End Offer Conversion —> {/literal} is this ok? is the {literal} tag to be used?? should i delete it?? thank you very much!! Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 you don't have to use {literal} {/literal} tags moreover, you have to remove literal when you use variables like {$total_products} etc Link to comment Share on other sites More sharing options...
mariano10 Posted July 4, 2013 Author Share Posted July 4, 2013 sory, my mistake, wrong discussion! Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 sory, my mistake, wrong discussion! no worries i will move our posts to your thread Link to comment Share on other sites More sharing options...
mariano10 Posted July 4, 2013 Author Share Posted July 4, 2013 VEKIA, thank you very much for the help!! in the order confirmation controller php doc i changed the 'total_to_pay'=>$order->getOrdersTotalPaid(), for: 'total_products'=>$order->total_products, replacing one for the other, literaly. ill let you know if it worked!! thank you very much!! Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 you're welcome now i can mark this thread as [solved] have a nice day regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now