Shopify themes, liquid, logos, and UX
I am having trouble figuring out how to add color swatches to the product pages. I've read many tutorials and most say to go to theme settings and click "product" on the left side. I don't have that option. I only have "product card" which doesn't mention anything about a swatch. What am I missing? Also, I would ideally like to use a snip from the actual color of the shirt and not just a hex color. Is that an option in Dawn as well without installing an app? Thanks!
Hello @michellelholm
I am experiencing this same issue. I've looked in the theme.liquid file and there seems to be no "product" options. Any thoughts?
It seems that the update is not available still on the stores. So you need to wait or can go by hard coding it.
You can find a working code for color swatches (dawn V13) here https://youtu.be/95MglAWtQeU.
Officially it's not been added to dawn theme yet but you can add by following my above tutorial and code link is also added in description.
your answer is literally her exact problem. C'mon man
I spoke with our Shopify rep this week and I have a bit of info, for anyone coming here and getting frustrated with the lack of answers. This set of features is in beta and there's a list to get early access. However, they haven't actually released it for early access yet and you have to have a Shopify PLUS store. Here's the info on the all the updates: https://www.shopify.com/editions/winter2024
Obviously, this information is subject to change at anytime, once they start releasing to the early access people and to the public at large. It seems they released the documentation before they released the actual beta. ~rolling eyes emoji~
This is disappointing. The ability to add a color swatch with a circle of color and a hover over name of the color should have already been a part of a product page. The tutorials on Shopify lack basic usability. YouTube does a better job.
You can add color swatches in your product page of DAWN theme.
in this video you will find it. Without using any App.
thanks
Thank you!
Hi MRamzan,
Is this compatible with the newest Dawn? 15.1.0
Here is the latest video:
Hi, I have the same problem. I spoke with Shopify support today and for now this feature is said to be unavailable. There is no known date when it will be available again. If you want, I can send you an article on how to code it - they also sent me directly from Shopify support (I haven't looked at it yet, so I don't know how complicated it is). Plus she also sent me some links to apps - but I assume that you won't want to use another app like me either 🙂
E.
Hello Eliska. I already solved it in the video. If you are not able to fix it then you can share me your store link. I will look into it. Or add me staff.
Thanks.
Hey there!! I was able to add the swatches to the products, thank you so much! What about adding color swatches to he collection page?
I was able to add swatches with the latest DAWN 15 theme. Swatches can only be used with products that have variants connected to category metafields entries for color. I had to first assign an appropriate category for the shopify metadata fields so you can connect color to the color variants you have in place. You can click on the little database icon to connect them after you have the category selected. After this you can set the swatch
I was trying to add the swatch following the instructions here and the color was not connected. Just for other people that encounter this. I was able to resolved it by click the metafield, see image below highlighted in green
This helped me so much, I found this a couple days ago and I didn't understand exactly what I had to do but I just went back in and tried it again and after defining that category you mentioned (I have nothing in there for my 60'ish shirts so far, but I'm brand new and haven't launched yet) I wasn't wanting to copy/paste someone else's code into my site to enable these but I tried following your post again and it worked great.
Thanks for this! I have a feeling I need to go through my currently uploaded 60 products now manually since I didn't do it from the start but no biggie probably take 20 minutes now that I'm adding the custom color hex's / names to fill out all my choices.
While I was able to add color variants successfully in the Shopify product page, the theme still does not show the swatches and it asks to enable in "product options". Not sure how to navigate this..would you know?
Hi @michellelholm ,
Yes, if you don't have settings for color swatches you can build this feature using metaobjects please refer the below video how to create custom color swatches.
Hope this will help to build your own logic.
For future readers, there's already color swatches included in the updated Dawn theme or other Shopify free themes. You can read more information here.
The feature is not available unless you request access. Pretty lame considering they say it is available on the theme page.
That's not true, you can integrate color swatches just as I mentioned with the theme right out of the box: https://community.shopify.com/c/shopify-design/how-can-i-add-color-swatches-to-product-pages-in-the-...
Yes you are correct. I was just very frustrated yesterday because none of the official Shopify documentation shows the correct way to do it. I could see the variant value object reference in the theme, but no real solution.
I gave your comment a extra thumbs up in hopes of helping someone else frustrated with this process.
I just get so frustrated with Shopify documentation.
Hi @ed_meehan ,
Please refer to the below video to see how you can use default SWATCH feature in DAWN.
Hope this will helps...
I made it work in newest Dawn theme 15, but only for categories that have "color" metafield, e.g. clothings. The challenge I am facing now is: How can I add a second variant layer with also this color metafield? Right now, only one variant layer can connect to the color-metafield.
How can I use this feature for a product that has two color options?
I am stuck at the first layer. How were you able to do it? If you could share the details it would be really helpful
I needed to change my product category to a category that has a color option as default, e.g. "clothings". A product in "clothing" can add the metafield "color" as variant. So, first change category to clothing, then add a variant, then connect the variant to the category-metafield "color". Then I picked the colors and it worked.
Temporary solution: I changed my category to a "furniture electronics" that allow 2 color attributes I can use. In addition to the normal "color" attribute, there is a second "color top layer" attribute.
So, for now my I have to delcare my product a furniture until shopify allows using these swatches in a more dev-friendly way.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey 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, 2024