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

fix: Item filters not working and resolve the filter name mismatch #70

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

AustinWu666
Copy link
Contributor

theme agency reported that category, fulfillment, etc filters are not working in brisk
related slack discussion: https://square.slack.com/archives/C04APS9G9RC/p1726591074757099

The reason the item filters are not working is that the filter properties (price_min, price_max) are not being bound to 'filters' during resource loading. Additionally, there's a parsing issue—for example, we use 'status' for in_stock and on_sale, but the front-end SDK sends the parameter as 'item_status,' causing rendering issues.

image
image

@AustinWu666 AustinWu666 requested a review from a team September 18, 2024 17:47
@AustinWu666 AustinWu666 changed the title [BOLT-1006] Fix issues with item filters not working and resolve the filter name mismatch fix: Item filters not working and resolve the filter name mismatch Sep 18, 2024
{% endif %}
{% endif %}
{% endfor %}

{% set items_options = items_options|merge({ filters: filters }) %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does item_options = {} need to be defined at line 11?

Seems like we could just do something like

Suggested change
{% set items_options = items_options|merge({ filters: filters }) %}
{% set items_options = { filters: filters } %}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kevin, you're right!

@AustinWu666 AustinWu666 merged commit af3d4ef into alpha Sep 19, 2024
3 checks passed
@AustinWu666 AustinWu666 deleted the austinw/BOLT-1006 branch September 19, 2024 17:37
Copy link

🎉 This PR is included in version 1.0.0-alpha.14 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants