Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

βœ… 🐞 Bug: Products Widget Cannot Filter By Price - WooCommerce - [ED-8525] #18874

Closed
5 tasks done
perks98 opened this issue Jun 7, 2022 · 6 comments
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

Comments

@perks98
Copy link

perks98 commented Jun 7, 2022

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest stable version of Elementor.

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):
Screenshot 2022-06-07 164017

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

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

  • This bug happens with only Elementor plugin active (and Elementor Pro).
  • This bug happens with a Blank WordPress theme active (Hello theme).
  • I can reproduce this bug consistently using the steps above.

System Info

Tried on two eCommerce websites

@perks98 perks98 added the bug Indicates a bug with one or multiple components. label Jun 7, 2022
@perks98
Copy link
Author

perks98 commented Jun 7, 2022

Screenshot 2022-06-07 170658

Using Query monitor plugin I have noticed something. As seen in the screenshot query 73 is the correct query that should get the right products but when it comes to looking up the product data in query 75 it uses query 74 which doesn't do it by price, so I think there may be an overlap so two queries are called but only one used, which is the wrong one.

@perks98
Copy link
Author

perks98 commented Jun 13, 2022

@shilo-ey @avivu ?

@perks98
Copy link
Author

perks98 commented Jun 14, 2022

For anyone else getting this. I have contacted Elementor Pro support and they did not help. Apparently, they are aware of the bug but do not have a fix currently and do not know how long it has been a known bug for internally. They suggested doing a rollback to see if that helps, but it didn't. I rolled back core, pro and woocommerce down multiple major versions and from what I can tell the order by filter never worked....

@rami-elementor rami-elementor added product/pro Indicates if the referenced component is part of the Elementor Pro plugin. integration/woocommerce References any component related to Elementor Pro’s WooCommerce Builder. labels Jun 26, 2022
@319heads
Copy link

319heads commented Sep 2, 2022

This bug is not just limited to Order By Price, if you select Order By Popularity there is the exact same issue - it incorrectly orders the products by Date. This has been an unaddressed issue for well over a year now.

This issue should be merged with #15255 which shows the issue existed back in Elementor 3.2.4 and still remains in the current version.

Just like with Order By Price, a workaround for the bug as related to Order by Popularity is to use Woocommerce shortcodes: i.e. [products best_selling="true" ]

@nicholaszein nicholaszein added the component/query References Elementor Pro's query components. label Jan 13, 2023
@nicholaszein
Copy link
Member

Hello everyone!

Thank you for submitting your issue, and thank you for being so patient! πŸ™

I can reproduce this issue and will be forwarding this to the team.

Best regards

@nicholaszein nicholaszein added the mod* [Temp.] For internal use only. label Apr 18, 2023
@nicholaszein nicholaszein changed the title 🐞 Bug: Products Widget Cannot Filter By Price - WooCommerce 🐞 Bug: Products Widget Cannot Filter By Price - WooCommerce - [ED-8525] Jun 9, 2023
@nicholaszein nicholaszein added status/merged Indicates when a Pull Request has been merged to a Release. product/beta-3.14 labels Jun 9, 2023
@nicholaszein nicholaszein added this to the 3.14.0 milestone Jun 9, 2023
@nicholaszein nicholaszein added the widget/wc/products References the WooCommerce Products widget (Pro), often used to showcase a list of products. label Jun 10, 2023
@arielk
Copy link
Member

arielk commented Jul 2, 2023

Hello,

We have great news! πŸ™Œ

πŸ“’ We're happy to announce that the issue you raised was resolved in Elementor Pro v3.14.0! πŸ₯³

Feel free to check it out and update your plugin to the new version!

Thanks

@arielk arielk closed this as completed Jul 2, 2023
@nicholaszein nicholaszein changed the title 🐞 Bug: Products Widget Cannot Filter By Price - WooCommerce - [ED-8525] βœ… 🐞 Bug: Products Widget Cannot Filter By Price - WooCommerce - [ED-8525] Oct 18, 2023
@elementor elementor locked and limited conversation to collaborators Oct 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.
Projects
None yet
Development

No branches or pull requests

5 participants