Author Topic: incorrect sorting by price with and without discount  (Read 190 times)

ilyafly

  • Beginner
  • *
  • Posts: 6
  • A beginner
incorrect sorting by price with and without discount
« 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?

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1620
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: incorrect sorting by price with and without discount
« Reply #1 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 :)
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