All things Shopify and commerce
Hello,
We use variation on our listings (Size & Color), we recently enabled Search & Discovery app on our store to provide better shopping experience for the customers.
After enabling the color and size filters on the app, we could see the the other variant which were created along with the selected filters
Ex. Selected Filters "Color: Beige"
Displays other Products which belongs to the Beige variations.
Kindly help us fix this issue.
FILTER WORKS AT PRODUCT LEVEL AND NOT AT VARIANT LEVEL.
I NEED THEM TO WORK AT VARIATION LEVEL FOR BETTER CUSTOMER EXPERIENCE.
Storelink: https://www.somersville.in/
pp: 10102024
Hello @somersville
We have variations for our products (Size & Color) and recently enabled the Search & Discovery app in our store to provide a better shopping experience for our customers.
After enabling the color and size filters in the app, we've noticed an issue. When we select a filter (e.g., "Color: Beige"), it shows other products that belong to the beige variation, even if the selected filters are meant to only show variants of the specific product.
For example, if the filter says "Color: Beige", it displays other products that also have beige in their variations, even though we're looking for a specific variant of a product (e.g., beige in a specific size).
Can anyone help us fix this issue?
To help with the issue you're facing, it sounds like the filters in your Search & Discovery app are functioning at the product level rather than the variant (size and color) level. This results in showing products that match the color or size filter, rather than filtering down to the specific variants of a particular product.
Here’s a potential solution to fix this issue:
Example:
{% for variant in product.variants %} {% if variant.available %} <option value="{{ variant.id }}">{{ variant.title }}</option> {% endif %} {% endfor %}
By fixing the filter configuration to target variants (not entire products), your customers should experience a smoother shopping process where only the relevant product variants are shown according to their selected filters.
Let me know if you'd like any further assistance or detailed steps on any of the above suggestions!
Was facing the same issue as @somersville , and tried method 1 which uses variant metafields as variant-level filtering. However upon testing, it did not work and it seemed like the filtering by variant-level metafields still showed all variants of the products that has at least one of its variants containing the selected variant metafield. Is there any work around so that I can show only the variants that has the selected metafield in the filter, and not the other variants even if they are of the same product at product-level?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025