Want to add a Product Detail Dropdown (That shows Product title, image and price) inside a contact form in shopify
Solution:
On the first question why displaying only 50 products: This could because of some data restriction from Shopify. Did you check that collections['all'].products in the current context has length more than 50?
On the second one "just showing product titles and product image path, not the actual image."
{{ product.featured_image}} is probably just the image path not 'actual' image.
Also the HTML<option>
tag can contain only text inside it.
It could not contain tag which is your intention. For that you will need custom select implementation.
Check this thread How to add images in select list? (https://stackoverflow.com/questions/2965971/how-to-add-images-in-select-list)
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.