Hi, I have problem with prices in VM 3.
I have config prices in VM /see picture prices/.
I dont have discount for product. /see img product/
But i have crossed price in web . 2x the some price. /see img web/
Why ??
script price.php is normal /see img script/
url web is : www.parfumraj.sk
Thanks
[attachment cleanup by admin]
Looks like you need to edit your template overrides for the new version as it has a revised template structure.
http://docs.virtuemart.net/tutorials/installation-migration-upgrade/198-upgrade-virtuemart-2-to-virtuemart-3.html
Hi I use original sublayout prices.php from VM 3 therefore, no problem why should display wrong prices.
Please try the following:
Replace
if (round($product->prices['basePriceWithTax'],$currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) {
echo '<span class="price-crossed" >' . $currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . "</span>";
}
With
if ($product->prices['discountAmount'] != -0){
echo '<span class="price-crossed" >' . $currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . "</span>";
}
the check for the price is wrong .
Hi, thanks you . Its work. Why dont work original code ?
It will be fixed in future release.