VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: ilyafly on December 19, 2022, 11:53:22 AM

Title: incorrect sorting by price with and without discount
Post by: ilyafly on December 19, 2022, 11:53:22 AM
Hello!
In the shop Virtuemart 3.8.9 set up multicurrency.  Prices of products are given in USD, part - in RUB.
All prices in the shop - appear in RUB (prices in USD converted on-line rate).
Problem, products are sorted without conversion by price in category of products.

Store prices are in dollars.
Converted to rubles.
The site publishes prices in rubles.
If the product has a discount, the final price is displayed. price is in rubles.
If the product is without a discount, then the base price is displayed, it is in the admin panel in dollars, on the site in rubles.

And sorting occurs between the base price and the final price with overwriting. that is, between the dollar and the ruble.
130 rubles is more than 100 dollars.
100 dollars is 6800 rubles

how to fix it?
Title: Re: incorrect sorting by price with and without discount
Post by: pinochico on December 19, 2022, 11:55:45 AM
For sorting price products with/without discount right, we created hack into model products.

look at the: www.kolo-park.cz

How I don't know :)