All things Shopify and commerce
Hi
i was able to put variant colors and images in the product details. However i can only display the variant color by drop down box and i want the colors to be displayed either down below or by the side as photos.
which customers can click on then it appears.
I have attached photos as example of what i want,
thanks
@shopfied4010 I am sharing my store url and password check out and let me know if you need a feature like this.
https://shadabs-online-store.myshopify.com/
password: reafur
Check out this product.
Thanks
i was lookin around the forum for exactly this feature, how did u do it? Thank you, been lookin for a few hours😅
and now i read what the guy below said 😄
@rapskivor it did take some looking up since the code base of dawn 15.0 is drastically different from previous versions. But alhamdulillah after a lot of testing and stuff it worked out.
Let me know how could i assist you with all the details, your store url and exactly what you need.
Thanks
Hi,
You can use Variant Image Automator app or custom code
Open product-template.liquid or main-product.liquid -Add HTML for Color Swatches-Replace the dropdown with clickable color swatches
Example of code
<div class="variant-colors">
{% for variant in product.variants %}
{% if variant.available %}
<label class="color-swatch" style="background-color: {{ variant.option1 | handleize }};" data-variant-id="{{ variant.id }}" title="{{ variant.option1 }}">
<input type="radio" name="variant" value="{{ variant.id }}" class="variant-input">
</label>
{% endif %}
{% endfor %}
</div>
need to add css and javascript as well
Here is a free solution
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025