HSeba7 Posted February 27, 2023 Share Posted February 27, 2023 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 More sharing options...
Prestachamps Posted February 27, 2023 Share Posted February 27, 2023 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. Link to comment Share on other sites More sharing options...
endriu107 Posted February 27, 2023 Share Posted February 27, 2023 In your tpl file add {debug} it will display modal window with all available variables for those file. Link to comment Share on other sites More sharing options...
HSeba7 Posted February 27, 2023 Author Share Posted February 27, 2023 (edited) 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. Edited February 27, 2023 by HSeba7 (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted February 27, 2023 Share Posted February 27, 2023 36 minutes ago, HSeba7 said: Hello, yes it helps a lot. However i tried {$total_products_wt} but seems like its not working. 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. Link to comment Share on other sites More sharing options...
HSeba7 Posted February 28, 2023 Author Share Posted February 28, 2023 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 More sharing options...
HSeba7 Posted February 28, 2023 Author Share Posted February 28, 2023 19 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. Managed to set it with: {$order.subtotals.products.amount} thanks for Your help 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