How To Add Swatches On Collection Page?

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 94

  • @a3artslive115
    @a3artslive115 8 місяців тому +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  8 місяців тому

      Which tutorial you are referring here?

    • @a3artslive115
      @a3artslive115 8 місяців тому

      @@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.

  • @Regin-yp1bc
    @Regin-yp1bc 2 місяці тому

    Hello, great work.
    I have already successfully added the video with the colour swatches to my product page. I would also like to include this code.
    2 questions:
    1. can I also switch to colour swatches here?
    2. would it be possible to display the swatches below the description and price?
    Thank you for your feedback.

    • @WebSensePro
      @WebSensePro  2 місяці тому

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

  • @rickardcroy7165
    @rickardcroy7165 7 місяців тому +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  6 місяців тому

      Yes should be pretty simple with CSS

  • @rafaellacardoso9936
    @rafaellacardoso9936 3 місяці тому

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

  • @kawaiibanks
    @kawaiibanks 8 місяців тому +1

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

    • @WebSensePro
      @WebSensePro  8 місяців тому

      With some more codes 😀😀

  • @Md.AbdullahAlNoman-k4z
    @Md.AbdullahAlNoman-k4z 8 місяців тому +2

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

    • @WebSensePro
      @WebSensePro  8 місяців тому +1

      Will add a solution to this as well

    • @rickardcroy7165
      @rickardcroy7165 7 місяців тому

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

  • @iqbalrasheed-yt2pw
    @iqbalrasheed-yt2pw 5 місяців тому +1

    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.

  • @TheTrailCoBNE
    @TheTrailCoBNE 6 місяців тому +2

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

    • @WebSensePro
      @WebSensePro  5 місяців тому +1

      Sure, if more demanded

    • @snowin83
      @snowin83 2 місяці тому

      I implemented on 14 without a problem. the only thing to watch out for is in the render sections. you don't want to replace all the code there as dawn made some changes, just add the "-custom" on the first line of the render.

  • @CliftonLo
    @CliftonLo 7 місяців тому +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  7 місяців тому

      Will have to check

    • @TenKeep-qx9be
      @TenKeep-qx9be 6 місяців тому

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

  • @DefkalionMedia
    @DefkalionMedia 7 місяців тому +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!

  • @VABianne_2023
    @VABianne_2023 3 місяці тому

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

  • @nextdoorharami
    @nextdoorharami 5 місяців тому +4

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

  • @filaydakuru
    @filaydakuru 5 місяців тому +2

    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..)

  • @coachmarta2461
    @coachmarta2461 7 місяців тому +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 7 місяців тому

      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  7 місяців тому

      Will need some code changes

    • @coachmarta2461
      @coachmarta2461 7 місяців тому

      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

  • @luizjr7293
    @luizjr7293 9 місяців тому +1

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

    • @WebSensePro
      @WebSensePro  9 місяців тому +1

      Collapsible footer is coming shortly, stay tuned

  • @ShopifyGuy
    @ShopifyGuy 6 місяців тому

    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  5 місяців тому

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

  • @rv.j
    @rv.j 4 місяці тому +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  3 місяці тому

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

  • @Armoswork
    @Armoswork 4 місяці тому

    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  4 місяці тому

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

  • @aimbotdad
    @aimbotdad 9 місяців тому +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  9 місяців тому

      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

  • @JebranKhan-w4p
    @JebranKhan-w4p 8 місяців тому +1

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

    • @WebSensePro
      @WebSensePro  8 місяців тому

      This feature is not available in this code right now

  • @villokse4842
    @villokse4842 8 місяців тому +1

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

    • @WebSensePro
      @WebSensePro  8 місяців тому

      Sure, will create a video on that

  • @kasparhansen8725
    @kasparhansen8725 6 місяців тому +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  5 місяців тому

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

  • @CliftonLo
    @CliftonLo 4 місяці тому

    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  3 місяці тому

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

  • @Carezone_store
    @Carezone_store 5 місяців тому

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

  • @BrindhaBrindha-oy2uz
    @BrindhaBrindha-oy2uz 4 місяці тому

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

  • @BeatrizGarcia-ei5nl
    @BeatrizGarcia-ei5nl 7 місяців тому +2

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

    • @WebSensePro
      @WebSensePro  6 місяців тому +1

      We will work on the tutorial

    • @filaydakuru
      @filaydakuru 5 місяців тому

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

  • @sergejbang7059
    @sergejbang7059 9 місяців тому +1

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

    • @WebSensePro
      @WebSensePro  9 місяців тому

      Code is tested multiple times on Dawn 12.0.0

    • @sergejbang7059
      @sergejbang7059 9 місяців тому

      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 5 місяців тому

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

  • @LaurenFaraday
    @LaurenFaraday 9 місяців тому +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  8 місяців тому

      Colour swatches arent showing but color variants are?

  • @BoutiquePotion
    @BoutiquePotion 24 дні тому +1

    It no longer works on dawn 15.1. But thanks for your work!

    • @WebSensePro
      @WebSensePro  20 днів тому +1

      Updated tutorial coming next week

  • @supercontentYT
    @supercontentYT Місяць тому

    brother, i want to shows swatches after the product title and price. How do i within this tutorial?

    • @WebSensePro
      @WebSensePro  24 дні тому +1

      Will create a tutorial on this

  • @TanimaWadhwa
    @TanimaWadhwa 8 місяців тому +2

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

    • @WebSensePro
      @WebSensePro  8 місяців тому +1

      Will add that feature too

    • @pebbles8210
      @pebbles8210 6 місяців тому +1

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

    • @xthepfandyi5855
      @xthepfandyi5855 6 місяців тому

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

  • @rudravatnala4926
    @rudravatnala4926 9 місяців тому +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  9 місяців тому

      You can reduce swatches size from Customize settings

    • @Imperiallife-d3s
      @Imperiallife-d3s 8 місяців тому

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

  • @wearcraftika
    @wearcraftika 4 місяці тому

    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  4 місяці тому

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

  • @AssociateDigitalMarketing
    @AssociateDigitalMarketing Місяць тому

    it's not working on Dawn 15.0.0 please can you have look for updated theme

  • @Imperiallife-d3s
    @Imperiallife-d3s 9 місяців тому +1

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

    • @WebSensePro
      @WebSensePro  9 місяців тому

      Tested and checked, working fine for us

  • @rv.j
    @rv.j 4 місяці тому

    Thanks Bilal!

  • @Imperiallife-d3s
    @Imperiallife-d3s 9 місяців тому +1

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

    • @WebSensePro
      @WebSensePro  9 місяців тому

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

  • @funfact9442
    @funfact9442 5 місяців тому

    Love you sir

  • @VolonteIn
    @VolonteIn Місяць тому

    brother make it as color swatches not as image swatches and mobile optimized it's looks bigger on mobile

  • @BeatrizGarcia-ei5nl
    @BeatrizGarcia-ei5nl 8 місяців тому +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  8 місяців тому

      Did you disable zoom on hover?