Jump to content

Show total price with tax (not without tax) in cart


janeklass

Recommended Posts

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

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

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>&nbsp;<span class="float-xs-right">{$cart.totals.total_including_tax.value}</span></p>
<!-- end with tax -->

 

Link to comment
Share on other sites

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>&nbsp;<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?

1.png

2.png

Link to comment
Share on other sites

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 by knacky (see edit history)
Link to comment
Share on other sites

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

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