wrong prices

  • hoks
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
8 years 10 months ago #46389 by hoks
wrong prices was created by hoks
Hi,

I migrated a site from VM2 to VM3 and in the new VM3 version the prices are not the good once in the VM scroller. I see that not the sales price is given, but the base price without tax.

I solved in the helper.php. Please change it in your extension. Please Note: i'am not a php coder, just look in the old version and new version and compares some parts.....


if ($show_price) {
$db->setQuery("SELECT REPLACE(REPLACE(C.currency_positive_style,'{symbol}',C.currency_symbol ),'{number}',cast(P.product_price as decimal(19,2))) As pricetext
FROM
#__virtuemart_product_prices as P
LEFT JOIN
#__virtuemart_currencies as C on C.virtuemart_currency_id = P.product_currency
WHERE P.virtuemart_product_id = '" . $product_id . "' LIMIT 1 ");


$price_object = $db->loadObject();

//NEW PART BELOW

$price = '<div class="productPrice">'.$pr->prices.'</div>';

$currency = CurrencyDisplay::getInstance();
$price = $currency->createPriceDiv ( 'salesPrice', '', $pr->prices );
}

Regards Michel

Please Log in to join the conversation.

Time to create page: 0.173 seconds
Powered by Kunena Forum