Crocoblock / suggestions

The suggestions for CrocoBlock project
195 stars 78 forks source link

Query Builder - WC Product Query - Load more shows products from different category #7593

Open zahnd opened 4 months ago

zahnd commented 4 months ago

Describe the bug I'm using the Query Builder to get all the products of a current category to be used on archive pages. I'm using the Tax Query to query only the products of the current "queried term". Pagination is active and set to a limit of 9.

Pagination is enabled by using the jetSmartFilter pagination widget and configured to show a load more button.

When navigating to the archive page, the products shown are correctly filtered and only from that category. But, as soon as I click on load more to get the next 9 elements, products from all categories are shown.

It seems as the Tax Query parameter got lost when clicking load more.

Enabling or disabling pagination has no effect. It's always the same result.

To Reproduce Steps to reproduce the behavior:

  1. Go to Query builder
  2. Create a new query of type "WC Product Query"
  3. Select only published posts
  4. Enable pagination and set limit 9
  5. Add a tax query of type product_cat for field "Term ID" and Terms "Queried Term".
  6. Create an archive template in Elementor Theme Builder
  7. Create a listing grid or use JetWooBuilder Products grid
  8. Add JetSmartFilter pagination widget
  9. Go to archive and press "load more"

Expected behavior When clicking load more, only products of the "Queried term" should be displayed. Not from all categories.

Screenshots

Screenshot 2024-06-29 at 11 43 30 Screenshot 2024-06-29 at 11 54 42 Screenshot 2024-06-29 at 11 56 08

Additional context JetEngine 3.5.0 JetWooBuilder 2.1.12 Elementor 3.22.3 Elementor Pro 3.22.1 WordPress 6.5.5 WooCommerce 8.8.5

Crocoblock commented 4 months ago

Hi @zahnd

We've tried to reproduce your issue and everything works fine on our side. Are you using Query ID? If no - please, try with it. image

Also have you contacted our support team regarding this case - https://crocoblock.com/help-center/ If not, please create a ticket including access details for your site where the issue occurred to make sure we can help you.