Jump to content

Edit History

Roger SA

Roger SA

On 9/29/2020 at 6:19 PM, taniacr said:

I managed to create a tiny module where I show both prices (with and without tax) using:

$priceWithTax = Tools::displayPrice($product->getPrice(true, null, 6, null, false, false), $this->context->currency);
$priceWithoutTax = Tools::displayPrice($product->getPrice(false, null, 6, null, false, false), $this->context->currency);

Just need to find out how to display the discounted prices with and without tax

I know where I want to show $priceWithTax, but I don't know where to declare it first. If I do it in the same TPL the page breaks.
Can you help me?

image.png.ab4ab6134c6a419eff8b018182c2c733.png

Roger SA

Roger SA

On 9/29/2020 at 6:19 PM, taniacr said:

I managed to create a tiny module where I show both prices (with and without tax) using:

$priceWithTax = Tools::displayPrice($product->getPrice(true, null, 6, null, false, false), $this->context->currency);
$priceWithoutTax = Tools::displayPrice($product->getPrice(false, null, 6, null, false, false), $this->context->currency);

Just need to find out how to display the discounted prices with and without tax

I know where I want to show $ price With Tax, but I don't know where to declare it first. If I do it in the same TPL the page breaks.
Can you help me?

image.png.ab4ab6134c6a419eff8b018182c2c733.png

×
×
  • Create New...