β π Bug: Products Widget Cannot Filter By Price - WooCommerce - [ED-8525] #18874
Closed
5 tasks done
Labels
bug
Indicates a bug with one or multiple components.
component/query
References Elementor Pro's query components.
integration/woocommerce
References any component related to Elementor Proβs WooCommerce Builder.
mod*
[Temp.] For internal use only.
product/pro
Indicates if the referenced component is part of the Elementor Pro plugin.
status/merged
Indicates when a Pull Request has been merged to a Release.
widget/wc/products
References the WooCommerce Products widget (Pro), often used to showcase a list of products.
Milestone
Prerequisites
Description
Had a report from a customer that when they change the products widget to order by price, it doesn't do it right. It starts to put it in a rough order then it throws in ones that are not even close to the price order. Tried every solution which include removing cache, using Woocommerce tools to clear template cache and regenerate lookup tables, changing the order filter in the theme customiser settings and removing hosting caching.
From removing all plugins except Woocommerce, Elementor and Elementor Pro and changed to a few themes. I then used Woocommerce products shortcode and that works. Using another Elementor third-party plugin doesn't work as I think they must use Elementor's queries.
Example ~ this should be in price order of highest to lowest (Products widget | doesn't work):

Using Woocommerce shortcode ~ should be in price order of highest to lowest ([products columns="3" limit="20" orderby="price" order="DESC"] | works):

I even tried this on another eCommerce website and found the same problem. The archive pages seem fine, it is just when you use the products widget with Elementor.
Steps to reproduce
From a fresh WordPress install, add Woocommerce, Elementor and Elementor Pro.
Add 20 different products with different names and completely different prices.
Create a new page, edit with Elementor and change the page layout to Elementor Canvas to remove the default theme bloat. Add the products widget to the page and change the Order By to Price and Order to DESC so it should be highest to lowest.
Isolating the problem
System Info
Tried on two eCommerce websites
The text was updated successfully, but these errors were encountered: