Jump to content

[Solved] Show with and without tax!


stuffedhippo

Recommended Posts

Just installed 1.6 for the fist time and thought that in the upgrade there maybe an option to show prices with AND without tax.

 

No such luck!!!!!!!

 

It is a major think on many website where if supplying to trade you MUST show both.

 

Anyone had the sample problem and overcome it.

 

It is easy on the product list template:

 

{convertPrice price=$product.price_tax_exc} excl
{convertPrice price=$product.price} inc

 

But need help on the product template...

 

 

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

Solver...

 

In product.tpl file change line 267 to

<span id="our_price_display" itemprop="price">
      {convertPrice price=$productPrice}incl
</span>
<span id="our_price_display_excl" itemprop="price">
     {convertPrice price=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)}excl
 </span>

Then in the product.js file add under line 667:

$('#our_price_display_excl').text(formatCurrency(basePriceWithoutTax * currencyRate, currencyFormat, currencySign, currencyBlank)+'excl');

and under 674

$('#old_price_display_excl').text(formatCurrency(basePriceWithoutTax * currencyRate, currencyFormat, currencySign, currencyBlank)+'excl');
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...