News:

Support the VirtueMart project and become a member

Main Menu

incorrect sorting by price with and without discount

Started by ilyafly, December 19, 2022, 11:53:22 AM

Previous topic - Next topic

ilyafly

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?

pinochico

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 :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products