News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Round only display double price

Started by jeroenmulder, March 20, 2014, 13:37:48 PM

Previous topic - Next topic

jeroenmulder

Hello,

I am using VM 2.0.26d and Joomla 2.5.17.

The function "round only display" is very important for us because of accurate VAT calculation.
But this function also causes a double price dislpay. (the baseprice is always displayed (as strikethrough))

I think it has something to do with rounding. A possible solution that will work for me is "show only crossed priced if discount is bigger than 0,01". I don't know how to put this function in my price templates.
Hope someone can help.
Thanks in advance.

Best regards,

Jeroen



K&K media production

if ($this->product->prices['discountAmount'] > 0.01) {

}

jeroenmulder

Many thanks kkmediaproduction.  :)

This solution works, but a with a small modification.

The discountamount is a negative number e.g. -50.

Code must be:

if ($this->product->prices['discountAmount'] > - 0.01) {

}

Jeroen