Order by price High to Low not working correctly
-
I have 10 vehicles added into Car Demon. When I click on order by price high to low some of the vehicles are out of order. As in a 31,800 priced vehicle is first, a 31,900 vehicle is second, a 31,995 vehicle third and then it starts going down from there: 29,995, 23,995, 21,495, etc.
If I change the price enough, lets say the 31,995 I change to 32,000 it will go in the correct order, but the 31,800 and 31,900 are still out of order. Plus, I don’t really want to have to adjust the prices to make it work, I would rather it work with the prices I give it.
If I order by low to high it displays everything correctly.
If I go into PHPMyAdmin and look up the _price_value I can order them correctly by meta_value.
Also, if I remove the commas from the value then it will order them correctly, but I like the look of the price with a comma.
Here is the car listing page – https://ultimateridesonline.com/uro/cars-for-sale/?order_by=_price_value&order_by_dir=desc
Anyone have any ideas?
Thank you.
- The topic ‘Order by price High to Low not working correctly’ is closed to new replies.