VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: roman5527 on November 30, 2014, 14:48:49 PM

Title: VM3 price problem
Post by: roman5527 on November 30, 2014, 14:48:49 PM
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]
Title: Re: VM3 price problem
Post by: jenkinhill on November 30, 2014, 15:51:00 PM
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
Title: Re: VM3 price problem
Post by: roman5527 on November 30, 2014, 19:28:01 PM
Hi I use original sublayout prices.php from VM 3 therefore, no problem why should display wrong prices.

Title: Re: VM3 price problem
Post by: Spiros Petrakis on December 03, 2014, 19:15:34 PM
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 .
Title: Re: VM3 price problem
Post by: roman5527 on December 03, 2014, 22:12:57 PM
Hi, thanks you . Its work. Why dont work original code ?
Title: Re: VM3 price problem
Post by: Spiros Petrakis on December 04, 2014, 10:37:40 AM
It will be fixed in future release.