News:

Looking for documentation? Take a look on our wiki

Main Menu

VM3 price problem

Started by roman5527, November 30, 2014, 14:48:49 PM

Previous topic - Next topic

roman5527

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]

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

roman5527

Hi I use original sublayout prices.php from VM 3 therefore, no problem why should display wrong prices.


Spiros Petrakis

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 .
Joomla templates and extensions development
https://www.yourgeek.gr

roman5527

Hi, thanks you . Its work. Why dont work original code ?

Spiros Petrakis

It will be fixed in future release.
Joomla templates and extensions development
https://www.yourgeek.gr