How To Add Swatches On Collection Page?

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2024
  • Swatches On Collection Page
    In today's tutorial, I'll guide you through the process of adding image swatches to your collection page. This feature will enhance the visual appeal of your products and improve your Shopify store's user interface.
    Shopify Store For Just 1$/Month: shopify.pxf.io/XYRLdX
    Blog: websensepro.com/blog/swatches...
    Swatches On Product Page
    • How To Add Color Swatc...
    Timestamps:
    00:00 - Introduction
    01:33 - Special Offer for New Shopify Users
    04:35 - Disabling Hover Effect on Collection Page
    06:36 - Adding Custom Snippets and Assets
    08:10 - Adding Custom Assets
    08:25 - Adding Swatches to Featured Collection Page
    12:50 - Finalizing with Schema Settings
    13:57 - Previewing the Results
    14:25 - Adding Swatches to Search Page
    19:50 - Conclusion
    If you want help with Shopify Customization, store development, or any other web development help. Contact us via websensepro.com/contact-us
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 82

  • @VABianne_2023
    @VABianne_2023 หลายเดือนก่อน

    Thank you. Looking forward to more tutorials in the near future..

    • @WebSensePro
      @WebSensePro  หลายเดือนก่อน

      You're welcome!

  • @rafaellacardoso9936
    @rafaellacardoso9936 21 วันที่ผ่านมา

    OMG!!!! THANK YOU VERY MUCH FOR THIS VIDEO! MY E-COMMERCE IS SOO COOL NOW. I WISH YOU THE BEST. THANKS

    • @WebSensePro
      @WebSensePro  18 วันที่ผ่านมา

      You're welcome!

  • @nextdoorharami
    @nextdoorharami 2 หลายเดือนก่อน +2

    Requesting a tutorial on how to get color swatches instead of product image as swatches.

    • @WebSensePro
      @WebSensePro  2 หลายเดือนก่อน

      Will try my best to provide that

  • @rv.j
    @rv.j หลายเดือนก่อน

    Thanks Bilal!

    • @WebSensePro
      @WebSensePro  16 วันที่ผ่านมา

      You welcome

  • @rickardcroy7165
    @rickardcroy7165 4 หลายเดือนก่อน +1

    Love this, thank you so much! Is it possible to alter the code somewhere to adjust the thickness of the frame around the swatches?

    • @WebSensePro
      @WebSensePro  3 หลายเดือนก่อน

      Yes should be pretty simple with CSS

  • @funfact9442
    @funfact9442 2 หลายเดือนก่อน

    Love you sir

    • @WebSensePro
      @WebSensePro  2 หลายเดือนก่อน

      Love you too

  • @kawaiibanks
    @kawaiibanks 5 หลายเดือนก่อน +1

    Thank you for sharing this! it's very helpful. How can I center swatches to align with the thumbnail image?

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      With some more codes 😀😀

  • @BrindhaBrindha-oy2uz
    @BrindhaBrindha-oy2uz หลายเดือนก่อน

    It's very useful video! Requesting a tutorial for add multiple variation images to the product.

    • @WebSensePro
      @WebSensePro  หลายเดือนก่อน

      Will do soon

  • @a3artslive115
    @a3artslive115 6 หลายเดือนก่อน +2

    Good Morning. Thank you for the comprehensive tutorial and your extensive coding. I can confirm it works like a charm on Dawn 12.0.0 as long as every step is followed exactly as your video describes.
    Unfortunately, the code shows my "SALE" badges as "% OFF". Can you please advise which code to be removed or changed to allow the normal Shopify Badge function to show "SALE"? Thank you for your work.

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      Which tutorial you are referring here?

    • @a3artslive115
      @a3artslive115 5 หลายเดือนก่อน

      @@WebSensePro Thanks for getting back to me on this. I am referring to the tutorial of adding the swatches on collection pages. Before altering the clean code of the Dawn 12.0 theme, 2 of my products were listed with blue "Sale" badges (when you have products with "Compare To" pricing set) After performing your code changes, the "Sale badges change to % Discount (for example: showing as "31% OFF" instead of "Sale").
      Although I am VERY VERY pleased with your code and the way everything turned out on the site, that one change was unexpected. I am just trying to ignore the change, but it sitting there like a sore red Thumb 🤣!
      Do you happen to know what needs to change back in the new code (or removed) to return the "Sale" function??? Thanks for your input in advance.

  • @TheTrailCoBNE
    @TheTrailCoBNE 3 หลายเดือนก่อน +2

    Any plans for an update on this for Dawn 13.0.x?

    • @WebSensePro
      @WebSensePro  2 หลายเดือนก่อน +1

      Sure, if more demanded

  • @aimbotdad
    @aimbotdad 6 หลายเดือนก่อน +1

    I got the variant images to pull, but I can only get color swatches to work on product pages. Any diagnosing tips? Would this work on the related products sections? Also any suggestions on how I might add Buy Now Button a second variant option for say size?

    • @WebSensePro
      @WebSensePro  6 หลายเดือนก่อน

      No it's not currently working on related product section. But we can add some more code to make it work on Related products section

  • @rv.j
    @rv.j หลายเดือนก่อน +1

    Just wanted to bring to your notice. If we combine this tutorial with "Infinite scroll" tutorial, only few swatches work. (Products that were originally on Page 1).
    After Pagination, Variant data is not found.

    • @WebSensePro
      @WebSensePro  11 วันที่ผ่านมา

      Its not suppose to work with other tutorial, will try find a solution

  • @user-ph8fo4iv1j
    @user-ph8fo4iv1j 4 หลายเดือนก่อน +1

    Thank you so much for the tutorial!
    I added all of the custom code, however I only get small dots to be displayed on the left side of the card instead of the middle and they don't have any images. You can click them and the images change, but they are tiny without images. Any advice?
    Thank you!

    • @WebSensePro
      @WebSensePro  3 หลายเดือนก่อน

      Its working fine for us

  • @coachmarta2461
    @coachmarta2461 5 หลายเดือนก่อน +2

    Hello, I followed your tutorial but sadly my page doesn't display swatches. I think its because for my products the variants are called "flavour" not colour, so what and where should I change to reflect that? Thank you!

    • @Wultuswuffel
      @Wultuswuffel 5 หลายเดือนก่อน

      try this:
      - go to card-product-custom.liquid
      - search for: {% assign variant_option_name = "Color" %} {% comment %}Setting: Variant Option Name To Display On Collection Page{% endcomment %}
      - change the word Color to whatever your variants are called
      also:
      - go to card-variant-swatch-custom.liquid
      - search for these two: width: {{swatchSize}}px; /* Adjust for desired swatch size */
      height: {{swatchSize}}px; /* Adjust for desired swatch size */
      - change {{swatchSize}} to whatever size you want your images
      I had to change this because the images would show as small dots, don´t know if that´s in the tutorial, didn´t watch it all.

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      Will need some code changes

    • @coachmarta2461
      @coachmarta2461 4 หลายเดือนก่อน

      I guessed that but what and where exaclty? Can you advise? Someone here already replied but I see that the comment was deleted so can you help?@@WebSensePro

  • @kasparhansen8725
    @kasparhansen8725 3 หลายเดือนก่อน +1

    Hey!
    When clicking on the different colors on any page, the product image doesn't change like in your tutorial.
    I am using Dawn theme.
    I have disabled hover effect and followed every step. What could've gone wrong here?

    • @WebSensePro
      @WebSensePro  3 หลายเดือนก่อน

      Please share more details for e.g theme name and version

  • @BeatrizGarcia-ei5nl
    @BeatrizGarcia-ei5nl 6 หลายเดือนก่อน +1

    I have managed to add the color swatches, however the picture doesn´t change when I click on the color swatches. Any advice of what can be the problem? I am using Dawn 12

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      Did you disable zoom on hover?

  • @user-gw7pz7vy2z
    @user-gw7pz7vy2z 5 หลายเดือนก่อน +2

    That's great. I did it. Buy only swatch images shown. How can I show variant colors instead of images?

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน +1

      Will add a solution to this as well

    • @rickardcroy7165
      @rickardcroy7165 4 หลายเดือนก่อน

      @@WebSensePro Would love this option too! You're a hero!

  • @ShopifyGuy
    @ShopifyGuy 3 หลายเดือนก่อน

    Also really interested in this being available for Dawn 13. When I've added to 13.0.1, on the collection page the swatches don't open the variant when clicked. There's also a dot added next to the product card. And the sale tag has switched to showing a "xx% Off" message.
    I've not tested beyond this stage in the tutorial. It would also be great if this could be added into the Customizer and manage the size and shape of the swatches as you have done in your product page Swatches guide.

    • @WebSensePro
      @WebSensePro  2 หลายเดือนก่อน

      Yes, we have planned to create an updated version of the tutorial

  • @LaurenFaraday
    @LaurenFaraday 6 หลายเดือนก่อน +1

    The colour swatches aren't showing on the collection page, however, I have all my colour variants showing on the collection page, does this code not work if thats the case? thank you

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      Colour swatches arent showing but color variants are?

  • @CliftonLo
    @CliftonLo 5 หลายเดือนก่อน +1

    Thank you for that! Very useful! Made it works on Collection Pages, Featured Collection & Search Result. 👍
    However, I got an issue with sold out "Red Slash" --- when only 1st size variant is sold out (other size variant still have stock), the swatch still comes with "Red Slash" indicate it's sold out ---- which the fact is only 1 size variant sold out
    Any logic to update "Red Slash" sold out to look at inventory for all size variants but not only the first one?? 🙏

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      Will have to check

    • @TenKeep-qx9be
      @TenKeep-qx9be 3 หลายเดือนก่อน

      @@WebSensePro did you manage to solve this? i'm facing same issue for those sold out variant

  • @filaydakuru
    @filaydakuru 2 หลายเดือนก่อน +1

    Thank you so much, I implemented this! However I would like the colors to show and not the variants.. How do I do that? Anyone? (It shows the colors on my product page and variants on homepage and collection page..)

    • @WebSensePro
      @WebSensePro  2 หลายเดือนก่อน

      Great suggestion

  • @rudravatnala4926
    @rudravatnala4926 6 หลายเดือนก่อน +1

    if i have more color swatches it is showing in two or more rows how to show in single row and if we have more color swatches then remaining color swatches to show as indicator like +2, or +5 or +10 remaining swatches please reply

    • @WebSensePro
      @WebSensePro  6 หลายเดือนก่อน

      You can reduce swatches size from Customize settings

    • @user-zc6vp8vr9j
      @user-zc6vp8vr9j 6 หลายเดือนก่อน

      ​@@WebSenseProkindly tell him please how can I do this kindly

  • @iqbalrasheed-yt2pw
    @iqbalrasheed-yt2pw 2 หลายเดือนก่อน

    Thanks for the video It worked but i need color swatches instead. your tutorial on product page swatches was good. because there is an option of swatches color or image.

    • @WebSensePro
      @WebSensePro  2 หลายเดือนก่อน

      Thanks for suggestion

  • @Armoswork
    @Armoswork หลายเดือนก่อน

    Hi there! @WebSensePro Thank for this tutorial. Unfortunately it doesn't work for us, we have Dawn 11 and we have color swatches on product page (also using your tutorial). We did everything step by step but nothing has happen. Could you help me to understand what's the reason? Thanks in advance

    • @WebSensePro
      @WebSensePro  หลายเดือนก่อน

      Yes it's doable but will have to check the store. Please contact via websensepro.com/contact-us for paid support

  • @CliftonLo
    @CliftonLo หลายเดือนก่อน

    Hey Bilal!
    Jus wondering if we didn't setup Color as a Product Variant (i.e. T-shirt Black & T-Shirt Blue are 2 diff products), but still wanna group them in Collection Pages in 1 Listing, is there any way to do so ?? 🙃🙏

    • @WebSensePro
      @WebSensePro  15 วันที่ผ่านมา

      Please contact via websensepro.com/contact-us for paid support

  • @BeatrizGarcia-ei5nl
    @BeatrizGarcia-ei5nl 4 หลายเดือนก่อน +1

    How would you show a color in the Swatches instead of a photo?

    • @WebSensePro
      @WebSensePro  4 หลายเดือนก่อน +1

      We will work on the tutorial

    • @filaydakuru
      @filaydakuru 2 หลายเดือนก่อน

      @@WebSensePro I am also waiting for this sir, would be awesome!

  • @villokse4842
    @villokse4842 6 หลายเดือนก่อน +1

    Can you please show how to add a transparent and sticky header for dawn 12.0.0

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      Sure, will create a video on that

  • @user-mv6th9zv1e
    @user-mv6th9zv1e 6 หลายเดือนก่อน +1

    sir can you tell us how the image changes automatically by hovering over the boxes?
    Thank you.

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน

      This feature is not available in this code right now

  • @mdabdullahalmamun4593
    @mdabdullahalmamun4593 2 หลายเดือนก่อน

    can you make a quick add to cart button after selecting the swatches please?

    • @WebSensePro
      @WebSensePro  2 หลายเดือนก่อน

      great suggestion

  • @luizjr7293
    @luizjr7293 6 หลายเดือนก่อน +1

    Can I still hope for a custom accordion on footer? 🙃 Thanks, teacher!

    • @WebSensePro
      @WebSensePro  6 หลายเดือนก่อน +1

      Collapsible footer is coming shortly, stay tuned

  • @user-zc6vp8vr9j
    @user-zc6vp8vr9j 6 หลายเดือนก่อน +1

    Sir it's not working on dawn theme kindly check this

    • @WebSensePro
      @WebSensePro  6 หลายเดือนก่อน

      Tested and checked, working fine for us

  • @wearcraftika
    @wearcraftika หลายเดือนก่อน

    it worked but when we click on choose option, it makes the button inactive and we have to go to product page to add it to cart

    • @WebSensePro
      @WebSensePro  หลายเดือนก่อน

      Yes it's doable but will have to check the store. Please contact via websensepro.com/contact-us for paid support

  • @user-zc6vp8vr9j
    @user-zc6vp8vr9j 6 หลายเดือนก่อน +1

    Hey dear link don't show kindly check this matter and update

    • @WebSensePro
      @WebSensePro  6 หลายเดือนก่อน

      websensepro.com/blog/swatches-on-shopify-collection-page/

  • @user-wh1pd6lb8f
    @user-wh1pd6lb8f 5 หลายเดือนก่อน +1

    It show variant images as swatches. Why its not showing colors as swatches like on product page?

    • @WebSensePro
      @WebSensePro  5 หลายเดือนก่อน +1

      Will add that feature too

    • @pebbles8210
      @pebbles8210 4 หลายเดือนก่อน

      Any update on this? Code works but for my business seeing the color swatch is better

    • @xthepfandyi5855
      @xthepfandyi5855 3 หลายเดือนก่อน

      @@pebbles8210Yes for me too.
      Will you publish the Video soon bro ?

  • @sergejbang7059
    @sergejbang7059 6 หลายเดือนก่อน +1

    hey my friend thanks for you work, unfortunately it doesnt work for dawn 12.0.0 theme

    • @WebSensePro
      @WebSensePro  6 หลายเดือนก่อน

      Code is tested multiple times on Dawn 12.0.0

    • @sergejbang7059
      @sergejbang7059 6 หลายเดือนก่อน

      Could it be that the error is coming from the color-option.liquid file ? (color swatch on product page from another video of you
      ) @@WebSensePro

    • @yuliiakozyr8125
      @yuliiakozyr8125 3 หลายเดือนก่อน

      @@WebSensePro hello, thank you for this tutorial, the previous one worked very well. Will this one work on Dawn 13? Thank you