All things Shopify and commerce
Hi everyone, need your help, anyone knows how I can add images on the product variants option like the picture below: Hub/Drum options: pictures with text below on the options
@Marketing1KC thanks for posting here, can you please tell us which theme are you using for store.
bye the way it is a code sample if you understand.
<!-- Product form -->
<form action="/cart/add" method="post" enctype="multipart/form-data" id="add-to-cart-form">
<!-- Other product form fields -->
<div class="product-variants">
{% for option in product.options_with_values %}
<div class="variant-option">
<label>{{ option.name }}</label>
<div class="variant-values">
{% for value in option.values %}
{% assign variant = product.variants | where: 'option' | first %}
<div class="variant-value" data-variant-id="{{ variant.id }}">
{% if variant.featured_image %}
<img src="{{ variant.featured_image.src | img_url: 'small' }}" alt="{{ value }}">
{% endif %}
<span>{{ value }}</span>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
<!-- Add to cart button -->
<button type="submit">Add to Cart</button>
</form>
Hi there, thanks for sharing the code our them is dawn
@Marketing1KC If you are using dawn theme this link is for you.
if you find the solution so please mark it as solved. thanks
https://www.youtube.com/watch?v=lacCldZ_iHU
https://websensepro.com/blog/how-to-show-selected-variant-images-dawn-13-0-0/
Thank you, also let me know where should this code be added, what liquid? thanks
Hi @Marketing1KC !
This is most likely due to theme coding or application. For this feature, you will need to edit out your theme code or for easier route, install an application that offers this feature. You can try these variant applications where you can customize your variants options and see what works best for you: Swatch King: Combined Listings, King Product Options & Variant, Variant Option Product Options, and Globo Product Options.
hi there, thank you for your message, will try checking those.
Hi @Marketing1KC,
The Easify Product Options app makes it easy to create options with images and text (names) displayed below using the Image Swatch option type. If you’d like to add prices for each option, you can link them to your existing products 🤗.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024