Jump to content

[solved] How to use variables from prestashop to new script


Recommended Posts

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...