janeklass Posted April 7, 2022 Share Posted April 7, 2022 Hi, How to show the total price with taxes (not without taxes) in the shopping cart? Link to comment Share on other sites More sharing options...
knacky Posted April 7, 2022 Share Posted April 7, 2022 You need to edit the ./themes/your theme/ modules/ps_shopingcart/modal.tpl file. There is a condition when the price without and with VAT is displayed. {if !$configuration.display_prices_tax_incl && $configuration.taxes_enabled} ..... Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 6 hours ago, knacky said: You need to edit the ./themes/your theme/ modules/ps_shopingcart/modal.tpl file. There is a condition when the price without and with VAT is displayed. {if !$configuration.display_prices_tax_incl && $configuration.taxes_enabled} ..... I don't just want to change the text but I want it to be the right price too. I want it to show the total cost (product + shipping + taxes) Link to comment Share on other sites More sharing options...
knacky Posted April 7, 2022 Share Posted April 7, 2022 And did you already have that tpl file open? There are prices without and with VAT. Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 (edited) 55 minutes ago, knacky said: And did you already have that tpl file open? There are prices without and with VAT. I don't have that line in this file... Edited April 7, 2022 by janeklass (see edit history) Link to comment Share on other sites More sharing options...
knacky Posted April 7, 2022 Share Posted April 7, 2022 It is also necessary to write a version of Prestashop. I gave an example for Prestashop 1.7.8.x Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 5 minutes ago, knacky said: It is also necessary to write a version of Prestashop. I gave an example for Prestashop 1.7.8.x I have a prestashop 1.7.8.5 Link to comment Share on other sites More sharing options...
knacky Posted April 7, 2022 Share Posted April 7, 2022 And can you upload the required file here? Each template can have it differently. Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 1 minute ago, knacky said: And can you upload the required file here? Each template can have it differently. My file : modal.tpl Link to comment Share on other sites More sharing options...
knacky Posted April 7, 2022 Share Posted April 7, 2022 after <p><strong>{l s='Total:' d='Shop.Theme.Checkout'}</strong><span class="float-xs-right">{$cart.totals.total.value} {$cart.labels.tax_short}</span></p> before <!-- startoriginal --> <p><strong>{l s='Total:' d='Shop.Theme.Checkout'}</strong><span class="float-xs-right">{$cart.totals.total.value} {$cart.labels.tax_short}</span></p> <!-- end original --> <!-- with tax --> <p><strong>{$cart.totals.total_including_tax.label}</strong> <span class="float-xs-right">{$cart.totals.total_including_tax.value}</span></p> <!-- end with tax --> Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 22 minutes ago, knacky said: after <p><strong>{l s='Total:' d='Shop.Theme.Checkout'}</strong><span class="float-xs-right">{$cart.totals.total.value} {$cart.labels.tax_short}</span></p> before <!-- startoriginal --> <p><strong>{l s='Total:' d='Shop.Theme.Checkout'}</strong><span class="float-xs-right">{$cart.totals.total.value} {$cart.labels.tax_short}</span></p> <!-- end original --> <!-- with tax --> <p><strong>{$cart.totals.total_including_tax.label}</strong> <span class="float-xs-right">{$cart.totals.total_including_tax.value}</span></p> <!-- end with tax --> Cool! It works. Thanks! Can I do the same thing at checkout? Link to comment Share on other sites More sharing options...
knacky Posted April 7, 2022 Share Posted April 7, 2022 (edited) You need to edit two files in the checkout. ./themes/your theme/templates/checkout/_partials/cart-detailed-totals.tpl ./themes/your theme/templates/checkout/_partials/cart-summary-totals.tpl If you have a cart, you will need to find where the price is displayed 😉 Edited April 7, 2022 by knacky (see edit history) Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 9 minutes ago, knacky said: You need to edit two files in the checkout. ./themes/your theme/templates/checkout/_partials/cart-detailed-totals.tpl ./themes/your theme/templates/checkout/_partials/cart-summary-totals.tpl If you have a cart, you will need to find where the price is displayed 😉 I found them, but I don't know which line to change (I'm not a programmer, I don't understand the code: D) Can you help me? I'll upload the files here. cart-summary-totals.tpl cart-detailed-totals.tpl Link to comment Share on other sites More sharing options...
knacky Posted April 7, 2022 Share Posted April 7, 2022 If you want to do some work, there is a JOB section. https://www.prestashop.com/forums/forum/235-job-offers/ There is a big difference to advise someone and a big difference to work for someone. Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 21 minutes ago, knacky said: If you want to do some work, there is a JOB section. https://www.prestashop.com/forums/forum/235-job-offers/ There is a big difference to advise someone and a big difference to work for someone. Understandable. Thanks anyway. Link to comment Share on other sites More sharing options...
janeklass Posted April 7, 2022 Author Share Posted April 7, 2022 I found a solution. This can be done in the store admin. Shop Parameters -> Customer Settings ->Groups Select each Group and modify to Taxes included 1 Link to comment Share on other sites More sharing options...
pShark Posted October 25, 2024 Share Posted October 25, 2024 Hi, I have a related question, i need show in 'summary-totals.tpl' the total of the products without taxes and the total of the shipping without taxes, how can i do it? its possible? Thanks and best 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