Fletsch Posted January 7, 2020 Share Posted January 7, 2020 Maybe someone can help me? I set up my shop without tax in the catalog, because the owner wants it that way. In the checkout I manually added the total inclusive tax, mostly with the variable {$cart.totals.total_including_tax.value}. Now I would like to show the total with tax in the order history of the customer account as well. Unfortunately this is not possible with {$order.totals.total_including_tax.value}. The variable does not seem to exist. Or is it different written? Does anyone know if there is a total with tax for the completed orders to read into the template? I have found a solution in the forum for older versions how to add the total with tax by add up. But then the rounding and the decimal places are not correct. Thanks a lot for your help! 😃 Link to comment Share on other sites More sharing options...
Fletsch Posted January 7, 2020 Author Share Posted January 7, 2020 (edited) In cace anyone has the same need: After a lot of trying and going threw files in /adapter I found a working variables for the templates files. (Prestashop 1.7.5) in order_detail_no_return.tpl and order_detail_return.tpl change the variables to: <tr class="text-xs-right line-{$order.totals.total.type}"> <td colspan="3">{$cart.totals.total_including_tax.label}</td> <td>{$order.totals.total_paid.value}</td> </tr> in history.tpl change the variables to: <th scope="row">{$order.details.reference}</th> <td>{$order.details.order_date}</td> <td class="text-xs-right">{$order.totals.total_paid.value}</td> <td class="hidden-md-down">{$order.details.payment}</td> Now it's the total including taxes. Edited January 7, 2020 by Fletsch (see edit history) Link to comment Share on other sites More sharing options...
thymus Posted June 8, 2020 Share Posted June 8, 2020 Correct variables required are... {$order.totals.total_including_tax.label} {$order.totals.total_including_tax.value} 2 1 Link to comment Share on other sites More sharing options...
tank Posted January 1, 2022 Share Posted January 1, 2022 Thanks thymus. {$order.totals.total_including_tax.value} that works Link to comment Share on other sites More sharing options...
TheCHE Posted June 25, 2023 Share Posted June 25, 2023 Yes. thanks thymus. That works but, how can I figure out other variables? I have been searching the shipping total price and I can't find it. Link to comment Share on other sites More sharing options...
ps8modules Posted June 26, 2023 Share Posted June 26, 2023 (edited) Hello, you can find out the available variables by inserting them into the tpl template {$order|@var_dump} or {$order|print_r} Edited June 26, 2023 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
ana777 Posted January 30, 2024 Share Posted January 30, 2024 We have a website with PS 8 and the warehouse theme and, after making the changes suggested by "thymus" in files, the taxes appear in the order details in the customer history, but with the value at zero. Only when the order status changes by admin, the tax amount is correctly shown. Does anyone know the reason for this? Did it happen to you too? Link to comment Share on other sites More sharing options...
mk2-pronat Posted August 1, 2024 Share Posted August 1, 2024 Hello, It seems i have similar problems with PrestaShop 1.7.6.9. regarding the display of the VAT (Tax) but no adding it to the total price of the purchase. Now, before i dive into this and start messing things up, i usually want to gather more information because coding is not my strong suit. I found the files that contain what i need, as Fletsch said (order-detail-no-return.tpl, order-detail-return.tpl and history.tpl under theme/your-theme/templates/customer and _partials), but then i read about what ana777 said about the value displaying as zero and made me post this to find out if anyone fixed it or had the same problem. Can anyone confirm that it is ok to make the changes, so my website doesn't go supernova and creates a black hole? 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