VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: bdimov on January 30, 2014, 14:21:31 PM

Title: Problem with price view
Post by: bdimov on January 30, 2014, 14:21:31 PM
Hi,

I have many online shops and today I found problem.
In my first shop I have virtuemart 2.0.24 and when I overwrite final price I have the main price crossed and under the main price(crossed) I have the price with discount.
Here are two screenshots to see. First is when I look it in category, second when I look it in product.
In category: (http://i59.tinypic.com/i2sshd.jpg)
In product: (http://i59.tinypic.com/2cpdhrp.jpg)

My problem is that when I go to second shop which is with 2.0.26 version I made the same thing with overwrite price and there are no crossed price and main price.
In category(you see the overwrite price, the crossed main price is missing): (http://i59.tinypic.com/23r1hk8.jpg)
In product(you see both price but the main is not crossed): (http://i61.tinypic.com/2hygobb.jpg)

Do you have any idea why is that problem and how to solve it?
Title: Re: Problem with price view
Post by: bdimov on February 01, 2014, 11:14:56 AM
So anyone know this issue?
Title: Re: Problem with price view
Post by: jenkinhill on February 01, 2014, 13:42:02 PM
Are you using template overrides? The default VM template in version 2.0.26d displays crossed prices for me. The code in the template is:

if (round($product->prices['basePriceWithTax'],$this->currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) {
                        echo '<div class="price-crossed" >' . $this->currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . "</div>";
                     }
Title: Re: Problem with price view
Post by: bdimov on February 02, 2014, 22:12:30 PM
In the both sites the template override is disabled...

I update now the second site(site with the problem) from 2.0.26 to 2.0.26d and after that test it again but it is the same... I don't have that crossed price...
I have the price that is with discount: PricesalesPrice
But I don't have the crossed price...

Do you have other idea?