This topic has 4 replies, 3 voices, and was last updated 3 months, 2 weeks ago ago by Andrew Mitchell
Hello,
I have a problem displaying the products on my website.
To give context: I sell many types of tiles on my website and all types of tiles are available in 20 colors in matt finish and 20 colors in gloss finish.
So I can have tiles size 10×10 in red color in matt finish and tiles also size 10×10 in red color, but in glossy finish.
My problem, is that I want to use the product grid elementor widget (Xstore):
But in the query type it does not allow me to choose “AND” or “OR”.
The default query type is “O”. So if I select “WHITE” and “MATT”, it is going to show me ALL the products that have the tag “WHITE” and the tag “MATT”. But I need it to work with the query “AND”, to show ONLY the products that have the label “WHITE” AND the label “MATT”.
Is it possible to somehow change this “OR” query type to an “AND” query type?
I have seen that the WooCommerce elementor pro filter works with the “AND” query type:
The problem, is that the products are shown without price, I don’t understand why.
This widget allows almost no customization, it is better the Xstore one, but if the price was displayed I could use this widget to solve my problem.
(Another problem is that the product grid xstore widget only allows filtering by category, tag or brand. It does not allow filtering by attributes, which is one of the most important elements in an online store. I can solve this by creating all my attributes as tags, but it would be nice if you could update this query in the future to support filtering by attributes as well.).
I am sorry if my query is not well understood, English is not my main language, if something is not understood tell me and I will try to explain it better.
Thank you very much.
Regards.
Dear @Jonathan,
I hope this message finds you well.
We have recently made some modifications to the files as per your request and would appreciate it if you could review them at your earliest convenience (https://gyazo.com/5055773b5dd51fd5ea050648045ffb51). The details of the changes are as follows:
1. In the file et-core-plugin/app/controllers/elementor/general/product-grid.php
, we have added several filters to enable the posibility for modifications to the tax_query of the product taxonomy.
2. In the file xstore-child/functions.php
, we have incorporated a filter that enforces an AND relation for the tax query.
At this moment, we are not prepared to implement these modifications as a separate option, as your request is unique and appears to have been addressed by the solutions we have already provided. Anyway you are always opened to post a future request on our Future request board where anyone could leave his voice for the request he thinks useful -> https://www.8theme.com/taskboard/.
Thank you for your attention to this matter. We look forward to your feedback.
Best regards,
Jack Richardson
The 8Theme Team
It works perfect for what I need. Thank you
Dear Jonathan,
In the spirit of gratitude, we want to express our appreciation for your trust in our products. As a valued customer, your experience matters greatly. Would you consider sharing it by giving our theme a deserving 5-star rating on ThemeForest?
Click here to share your thoughts: https://themeforest.net/downloads
Being part of our community means a lot, and your feedback contributes immensely.
Best Regards,
The 8Theme Team
The issue related to '‘Product Query Type – Product Grid Widget (Elementor xstore)’' has been successfully resolved, and the topic is now closed for further responses