NO BUG: Showing products on sale works in builder but not on website

Browser: Edge
OS: macOS
Video: Jam

I am using a product query loop to display products. I only want to show products on sale, which works well in the builder, but on the actual page and on the frontend, the page shows all products, including those not on sale. It is still a staging website, so the products are just test products, but I don’t really understand why it would act like that.

Thank you for any help or suggestions <3

Hi Libi,
Welcome to the forum!

Unfortunately, I can’t replicate the issue.

Please enable the “Disable query merge” toggle and see if it works. Your query may be merged with another one. Alternatively, try the “Is main query (Archive, Search)” toggle.

Best regards,
timmse

Hi Timmse :slight_smile:

Thank you for the suggestions, I have tried all and any combinations of them I could think of but with no luck.

I even noticed that the “Exclude out of stock” also does not work and is visible either way.

Do you maybe have any other ideas on what to try?

Thank you

Please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

Hi Libi,
Thanks for the login details!

The issue was that you turned the query into a global element. Once I unlinked the global element, it seems to work correctly. Can you confirm?

You can only use “single” elements as a global element (such as a logo, image, …), see: Global Elements – Bricks Academy

To avoid any problems from previous versions, I have updated the theme to 1.10.3 and your plugins to the latest version.

Yes, it works now :slight_smile:

Thank you so much <3