Shopify themes, liquid, logos, and UX
Hi everyone,
- I want to customize/build the search box on Shopify. How can I get all products so I can use Javascript to filter them based on title/price/SKU...?
Note: I'm using Shopify version 1, not Shopify 2.0.
Thank you in advance.
Best regards,
Jones.
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
Dear @KetanKumar ,
- Thank you for your reply.
- I just use the Default Shopify theme. So you can try on any theme as a Debut theme...
- I just want to know the solution to solve my problem as how can I get all products data to using Javascript to handle data when typing on the search box.
Thank you in advance.
Best regards.
thanks but if yo can share url so i will check error
Dear @KetanKumar ,
- I mean i want to build a search box using Ajax to handle data user search. Currently, I do not have any solution to get all products to filter by a string of user typing on the search box. So I still do not develop it (so it'll be without any bugs here)
Best regards.
you mean like this Search Bar
Dear @KetanKumar,
- No. That's not my idea.
- I mean that's the search box. When the user is typing any text. I'll be using Javascript to filter it. The question is how can I get all products to filter it?
Best regards.
I suggest you to check the shopify graphql api so you can retrieve all products data. Here's the link for you: https://shopify.dev/api/admin-graphql/2022-01/queries/products
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024