Jump to content

Smarty Variables


HSeba7

Recommended Posts

Hello.

Im trying to connect affilate network script to my shop, but im missing few variables which will be forwarded thrue script to affilate company. 

So far i managed to add Order ID reference with {$order.details.reference} which works.

However i cant find variables which will show: ordered products ID, ordered products quantity, ordered product price, total order value (without shippment).

Any ideas ?

Link to comment
Share on other sites

1 hour ago, Prestachamps said:

Hello,
You can see which information you can get from the order object if you create a test order, and dump the $order inside the order-confirmation.tpl like the following: 
{$order|dump}
{$order.products|dump}

...
https://prnt.sc/E7VcybaUcIz2

I hope that I could help.
Have a nice day, Leo.

Hello, yes it helps a lot. However i tried {$total_products_wt} but seems like its not working.

3f7af6dc04035fb50a9bc77dc052b41a.png

369457cec79ed961ea78979bdb90c9fd.png

f0d611573a3572ff133bb7e3791a0d5c.png

Edited by HSeba7 (see edit history)
Link to comment
Share on other sites

18 hours ago, Prestachamps said:

 

Hi,
For the total amount you can use the following variable: 
{$order.totals.total_including_tax.amount}
As can be seen in the image below:
https://prnt.sc/tPSLLTzf8WSy
I hope that I could help.
Kind regards, Leo.

Thanks again, however that variable is showing value including shipping. What i need is variable which will show only products value.

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...