Тёмный

Show Variants As Separate Products On The Shopify Collection Page 

Amine Ammari
Подписаться 2,5 тыс.
Просмотров 15 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 264   
@amine-ammari
@amine-ammari 2 дня назад
29/09/24 Edit: This feature now works with color filters
@tymonpufelski8310
@tymonpufelski8310 5 месяцев назад
It worked for me collection page but when I want to display collection on my main page it still shows only one product. Do you know the solution?
@amine-ammari
@amine-ammari 5 месяцев назад
This tutorial is only for the collection page , I don't have the code for the homepage
@nathanielcruz3649
@nathanielcruz3649 2 месяца назад
Help! There's no card-product on the main collection grid :(
@ItsTanyaLynn
@ItsTanyaLynn 2 месяца назад
{%- liquid assign option_chosen = "Color" assign option_index = '' for option in product.options if option_chosen == option assign option_index = forloop.index0 break endif endfor -%} {%- if option_index == '' -%} {% render 'card-product', card_product: product, media_aspect_ratio: section.settings.image_ratio, image_shape: section.settings.image_shape, show_secondary_image: section.settings.show_secondary_image, show_vendor: section.settings.show_vendor, show_rating: section.settings.show_rating, lazy_load: lazy_load, show_quick_add: section.settings.enable_quick_add, section_id: section.id %} {%- else -%} {% assign displayed_values = "" %} {% for variant in product.variants %} {%- liquid assign variant_option = variant.options[option_index] assign valueIsDisplayed = false for value in displayed_values if value == variant_option assign valueIsDisplayed = true break endif endfor -%} {% unless valueIsDisplayed %} {%- assign variant_option_arr = variant_option | append: ';' | split: ';' -%} {% assign displayed_values = displayed_values | concat: variant_option_arr %} {% assign image_url = variant.featured_image | img_url: 'medium' %} {% render 'card-variant', card_variant: variant, card_product: product, variant_option: variant_option, media_aspect_ratio: section.settings.image_ratio, image_shape: section.settings.image_shape, show_secondary_image: section.settings.show_secondary_image, show_vendor: section.settings.show_vendor, show_rating: section.settings.show_rating, lazy_load: lazy_load, show_quick_add: section.settings.enable_quick_add, section_id: section.id %} {% endunless %} {% endfor %} {%- endif -%}
@amine-ammari
@amine-ammari 2 месяца назад
Please make sure yo uare using a Free theme like Dawn
@isaacsantos7143
@isaacsantos7143 3 месяца назад
you are God!!
@isaacsantos7143
@isaacsantos7143 3 месяца назад
Amine, the variants does not appear in different language. You can help me?
@isaacsantos7143
@isaacsantos7143 3 месяца назад
Solved. assign option_chosen_1 = "Color" assign option_chosen_2 = "Cor" assign option_index = '' for option in product.options if option_chosen_1 == option or option_chosen_2 == option assign option_index = forloop.index0 break endif endfor
@kevt2498
@kevt2498 8 месяцев назад
Brilliant, exactly what I was looking for. Thanks.
@maximilianbubitsch1352
@maximilianbubitsch1352 9 месяцев назад
Thank you to share your good work for free!! Great job!
@malakossama2626
@malakossama2626 Месяц назад
Thank you very much ! 🤩 Amazing video
@enricoobst121
@enricoobst121 3 дня назад
Hello and thanks for the video, unfortunately I don't have an image for each variant, is it somehow possible to edit the main-collection-product-grid code so that the main image is displayed?
@amine-ammari
@amine-ammari 3 дня назад
Yes you can do that but you will need to hire a developer to do it
@healingflower2153
@healingflower2153 10 дней назад
It perfectly worked, however, if I'm adding another language to my online shop, the products don't show up as color variants separately. Is there any solution to adjust the code option to the selected language? Thanks in advance!
@amine-ammari
@amine-ammari 9 дней назад
This code doesn't support multilingual stores You will need to hire a dev to add that feature or use an app
@MadeInRoChannel
@MadeInRoChannel 25 дней назад
Do you know if this would help with SEO? What I mean is Google indexing each variant and show it in search results. This is a big problem of how Google is indexing Shopify products with multiple variants: it will just index the main "parent" product and it ignores individual variants.
@amine-ammari
@amine-ammari 24 дня назад
If you want better SEO, you must create each color as a separate product in the admin panel.
@crfgian
@crfgian Месяц назад
muito obrigado te agradeço de coração do brasil♥
@jeroenschuur8881
@jeroenschuur8881 5 месяцев назад
Works great, thanks! Is it also possible to use multiple variants? Like color and size?
@amine-ammari
@amine-ammari 5 месяцев назад
Yes it's possible but you need to write more code
@wanlintan9716
@wanlintan9716 2 месяца назад
Hello! This worked perfectly but some colors that are "Sold Out" Does not seem to show the "Sold Out" badge on the collection page. How can I add that or make it opaque? *Using Dawn Theme
@amine-ammari
@amine-ammari 2 месяца назад
Yes You will need to hire a dev to fix it
@Travelworld478
@Travelworld478 2 месяца назад
This is awesome!!! - would this work for SPOTLIGHT theme as well?
@amine-ammari
@amine-ammari 2 месяца назад
Yes
@reemgolam120
@reemgolam120 2 месяца назад
Hey, this is a great solution, but it's not compatible with the new Shopify Search & Discovery App. When I use the "color' filter on the store front, all three variants of the same product show up because of the code. Is there a way to fix this?
@amine-ammari
@amine-ammari 2 месяца назад
Yes I recommend hiring a developer for that, you can reach out to amineammari.com/contact/
@faisalnawaz2381
@faisalnawaz2381 9 месяцев назад
Really appreciate your work, man! Thanks a lot ❤
@pede007
@pede007 17 дней назад
Thank you, it worked well. But now I have all colors of an article in a row in the collection list. Is it possible to totally mix the sorting of these colors/articles so that they are randomly sorted and preferably no two colors/variants next to each other?
@amine-ammari
@amine-ammari 16 дней назад
No, not with this method You will need to create each one as a separate product
@anujkeshani6857
@anujkeshani6857 2 месяца назад
Hi. Thank you for this video. The suggested changes seem to not work for Spotlight theme. Please recommend on a solution
@amine-ammari
@amine-ammari 2 месяца назад
I would recommend hiring a dev or using an app
@1stSKSSP
@1stSKSSP 2 месяца назад
Thanks! Really helpful!
@avinashnishad3197
@avinashnishad3197 3 месяца назад
I am using minimog theme. And in it there was no card-product found. I tried editing even then. It was successful but there was a error showing below each product and the size of the product was fully zoomed
@amine-ammari
@amine-ammari 3 месяца назад
This is only compatible with Free themes, it won't work on minimog
@BasemBrimo
@BasemBrimo 4 месяца назад
Hello. Can I make differnet photos for collection based on website language.?
@amine-ammari
@amine-ammari 4 месяца назад
Yes search for Shopify markets
@leanderfischer6771
@leanderfischer6771 2 дня назад
you saved my life
@alexgoodman3570
@alexgoodman3570 3 дня назад
This is a fantastic video! Could you please explain how to display both the COLOR and SIZE variations as well as separate listings at same time? Thank you!
@amine-ammari
@amine-ammari 3 дня назад
Not with this code, you will need to hire a developer for that
@alexgoodman3570
@alexgoodman3570 3 дня назад
@@amine-ammari That was expected! :) Anyway, thank you so much even for this one option. It changed my website tremendously, as I have a lot of colors. Can’t hire anybody for now. I have to keep the budget tight when the business is launching to increase my chances of success. So I’ll keep to the Pareto Strategy: 20% effort for 80% efficiency. Thanks again!
@ShoaibKhan-ot9st
@ShoaibKhan-ot9st 2 месяца назад
Hello There, Thanks for the tutorial If i have 6 colors and i want to add just 2 colors as separate products, What change i have to make in the code?
@amine-ammari
@amine-ammari 2 месяца назад
You'll need to hire a developer to implement this logic
@ourshishu
@ourshishu 2 месяца назад
Help please! I want to select for which product I want to show Varients. Also if there is 5 varients of the a product and I want to show only 2 varients in collection page, then how to do this?
@amine-ammari
@amine-ammari 2 месяца назад
You will need to hire a dev
@aliciatyson2659
@aliciatyson2659 3 месяца назад
Does this coding change make changes to all the product pages in all the collections? Or do I have to do it for each product page? Thank you.
@amine-ammari
@amine-ammari 3 месяца назад
you've to do it only once
@gopro3036
@gopro3036 Месяц назад
Can't thank you much
@curiousperson
@curiousperson 2 месяца назад
I want to sync two different product's stock changes. If any of them change, the other one must change the same. How can I do it?
@amine-ammari
@amine-ammari 2 месяца назад
I don't know maybe there is an app to do it
@NielsPosts
@NielsPosts Месяц назад
Is it also possible to upload all variants as products and then link them to each other? So then you can have product urls and images per color
@amine-ammari
@amine-ammari Месяц назад
Yes it's possible you will need to write code for that or use a combined listing app
@elmusicgenius
@elmusicgenius 11 месяцев назад
i was searching for this tutorial for a long time thank you .
@anantsinha2094
@anantsinha2094 2 месяца назад
The actual Sale badge is not visible on the product after adding the code.
@amine-ammari
@amine-ammari 2 месяца назад
Yes since you will need to adjust the code for it
@iviyanStoyanov
@iviyanStoyanov 11 месяцев назад
I'm getting this error "Liquid error (snippets/card-variant line 246): product form must be given a product" under each product in the catalog how should I fix it?
@amine-ammari
@amine-ammari 11 месяцев назад
Hi Ivan, Please make sure you are using a free theme like Dawn and not a premium one. This solution only works with free themes.
@amine-ammari
@amine-ammari 10 месяцев назад
Hi, This issue is fixed now I updated the code snippet, you need to re-install it again
@OgAnzay
@OgAnzay 6 месяцев назад
Is there a way to add different name to each variant? Completely different name? Not “product”-“name(red, or something else). Just the name , because for each color i want to name the product differently
@amine-ammari
@amine-ammari 6 месяцев назад
Yes, it's possible but it will need some extra code edits. I recommend you work with a dev.
@OgAnzay
@OgAnzay 6 месяцев назад
if you cant help me, i wont work with a dev just for that, but anyways thanks a lot, i might try to figure it out myself..@@amine-ammari
@dharmildodiya3090
@dharmildodiya3090 3 месяца назад
i am using focal theme i don't have main collection gird option can you help me
@amine-ammari
@amine-ammari 3 месяца назад
This tutorial is not compatible with premium themes, only the free ones
@MrTheoharopoulos
@MrTheoharopoulos Месяц назад
Will this work with MINIMOG theme?
@amine-ammari
@amine-ammari Месяц назад
No for free themes only
@gorkemyurttas6345
@gorkemyurttas6345 15 дней назад
legend
@Rohit_Rai901
@Rohit_Rai901 4 месяца назад
Can I do this for specific products only?
@amine-ammari
@amine-ammari 4 месяца назад
Yes but you will need code edits
@Kanner1976
@Kanner1976 5 месяцев назад
Unfortunately, the filters (Search&Descovery) do not work correctly anymore, because they output products and not variants. Can you help me with that, thanks!
@amine-ammari
@amine-ammari 5 месяцев назад
This feature doesn't support the filter unfortunately you will need to write additional code to make it work with the filter
@Kanner1976
@Kanner1976 5 месяцев назад
Thx
@wexsos7170
@wexsos7170 7 месяцев назад
Hi, do I need Shopify Premium for this to work?
@amine-ammari
@amine-ammari 7 месяцев назад
No you just a to use a free theme
@fittastetic
@fittastetic 3 месяца назад
Ratings are not displayed anymore?
@amine-ammari
@amine-ammari 3 месяца назад
Try to install the app again
@damien4801
@damien4801 4 месяца назад
Is it working broadcast theme ?
@amine-ammari
@amine-ammari 4 месяца назад
No only the free themes
@melvingeorge8891
@melvingeorge8891 3 месяца назад
Can we add different products as a variant of one another on the product page
@amine-ammari
@amine-ammari 3 месяца назад
Yes but it will require custom code edits If you're looking to hire a dev, I'm available to help you with your project.
@priyanshugoel3369
@priyanshugoel3369 4 месяца назад
Hey man great tutorial but i want the variant to show on even featured collection page or when you search it on store but it is appearing only on collection page Can you help me with that
@amine-ammari
@amine-ammari 4 месяца назад
I don't have the code for that When I update the video I'll make sure to add this feature thanks
@OmniKiing_
@OmniKiing_ 4 месяца назад
@ 2:32 instead of searching for grid, search for "featured" and click "Featured-Collections.liquid" then do the same steps in the video.
@mindsetissuccess
@mindsetissuccess 8 месяцев назад
Hi Sir are you on fiverr i.need your service later
@amine-ammari
@amine-ammari 8 месяцев назад
You can reach out on my contact page amineammari.com/contact/
@canvasc-cv6cn
@canvasc-cv6cn Месяц назад
Great, I need it for hello theme, need help.
@amine-ammari
@amine-ammari Месяц назад
I don't have the code for hello theme unfortunately, you will need to hire a dev or use an app
@TusharAdobe-u5l
@TusharAdobe-u5l 8 месяцев назад
how can we do this with search page?
@amine-ammari
@amine-ammari 8 месяцев назад
Unfortunately I don't have the code for the search page You will need to hire a dev
@MishaZam300
@MishaZam300 2 месяца назад
It worked but I have 3 collections and it split every single one of the collections. 'm looking for only 1 of the 3 to serperate
@amine-ammari
@amine-ammari 2 месяца назад
You will need some code edits to build that
@MishaZam300
@MishaZam300 2 месяца назад
@@amine-ammari do you have a recommended video for that?
@amine-ammari
@amine-ammari 2 месяца назад
@@MishaZam300 No you'll need to hire a developer
@WV-gt2bd
@WV-gt2bd 5 месяцев назад
Did this and tried to enable add to cart button but it only has choose options, How can I have an add to cart button that adds strait to cart instead of choose options?
@amine-ammari
@amine-ammari 5 месяцев назад
If you have variants the choose option will always appear instead of add to cart You will need to write custom code to change that
@WV-gt2bd
@WV-gt2bd 5 месяцев назад
@@amine-ammari I dont know how to write any code.. I just want the button to say add to cart and put the variant shown directly into the cart
@ekinorhun1758
@ekinorhun1758 6 месяцев назад
Hello, thanks for posting this! I'm getting "snippets/card-variant.liquid' does not exist" error on row 215 on main-collection-product-grid.liquid. What would you suggest?
@amine-ammari
@amine-ammari 6 месяцев назад
You must have made an error in naming the file card-variant.liquid Please make sure it has the correct name without misspelling
@_aisolo
@_aisolo 7 месяцев назад
Thank you sirr! this worked really well and i am using the Ride theme 13.0.1 Thank you!!
@studiodeco1758
@studiodeco1758 4 месяца назад
Thanks for the tutorial. I have a problem, it don't show the variants on the search page of my website. Can you help?
@amine-ammari
@amine-ammari 4 месяца назад
I don't offer free individual support If you want to hire you can reach out here amineammari.com/contact/
@TahrimAhmedMiad
@TahrimAhmedMiad 7 месяцев назад
It works fine. But how about filtering? Suppose if i select "white" color, only white variants shoud show.
@amine-ammari
@amine-ammari 7 месяцев назад
Unfortunately, it's not compatible with filtering.
@heatherallen6016
@heatherallen6016 4 месяца назад
Thank you so much. This works great for the variants that match "Color" exactly. However, any products that have different variant titles or no variants are no longer showing up in their collections. Do you know why this is?
@amine-ammari
@amine-ammari 4 месяца назад
It's probably not caused by the code changes, please make sure the products are active products and that they are in stock
@hiluis7402
@hiluis7402 7 месяцев назад
Hey how can I add a select size option before adding shirt to the cart ????
@amine-ammari
@amine-ammari 7 месяцев назад
You will need to hire a developer to add that feature, I don't have the code for it
@TheDungeonGym
@TheDungeonGym 9 месяцев назад
Hey, I can't find the Main-collection-product-grid for some reason. I have tried to searched everywhere
@amine-ammari
@amine-ammari 9 месяцев назад
Hi, You are using an old version of your theme. Please update your theme to a recent version.
@E60520i
@E60520i 8 месяцев назад
Liquid syntax error (line 226): 'endif' is not a valid delimiter for for tags. use endfor how to fix???
@amine-ammari
@amine-ammari 8 месяцев назад
Please make sure you are using an up to date version of the free themes.
@dressynicejvful
@dressynicejvful 5 месяцев назад
Now i can see the products but got an error message, that the loading-spinner missing from the snippets folder. This error meassge appears under the “Choose from the options” button. Can you help me?
@amine-ammari
@amine-ammari 5 месяцев назад
I updated the code to fix this error, please replace the old code snippets with the new ones Or install the new code snippets in a new theme
@shoppremia
@shoppremia 6 месяцев назад
Thank you!!!!! Is there a way to show them separately when adding it to the home page "featured collection"? Right now its still showing the one product.
@amine-ammari
@amine-ammari 6 месяцев назад
Yes there is a way but I don't have the instructions for it
@AmobeTv
@AmobeTv 6 месяцев назад
Thank you very much for sharing this, very usefull. Is there any way to display the variants in a featured collection?
@amine-ammari
@amine-ammari 5 месяцев назад
Yes but you will need to write code or hire a dev for it
@ryanwelsh1864
@ryanwelsh1864 11 месяцев назад
I have a product with 2 colours and 3 sizes, how do I get it to show every size and colour? When I choose color it only shows 2 products in 1 size and when I choose size it only shows 3 sizes in 1 color. I have a product with 2 colours and 3 sizes, how do I get it to show every size and colour?
@amine-ammari
@amine-ammari 11 месяцев назад
Hi Ryan, You can either show each color or each variant but not both at the same time with this script.
@kanishajoseph1930
@kanishajoseph1930 4 месяца назад
I am unable to view the photos when i preview but i can click on the item and see the photo. i tried an old them dawn and it work but my paid them kairo didn't work. Do you have any suggestions. Thank you
@amine-ammari
@amine-ammari 4 месяца назад
This tutorial works only on the Free themes, please use a theme like Dawn to follow along.
@burakodev575
@burakodev575 6 месяцев назад
What about multilingual sites. What should we write in the snipet instead of "color"
@amine-ammari
@amine-ammari 6 месяцев назад
My code snippet doesn't support multilingual sites unfortunately You will need more code edits
@sebastianjordan5342
@sebastianjordan5342 2 месяца назад
Genius! straight to the point, thank you!!
@stuartbrown3778
@stuartbrown3778 6 месяцев назад
Hi, Thanks very much I have added your code and it has worked, however the variants are showing out of stock, it seems to be as there is no stock available in size small, is there a workaround so the stock is reported across all sizes
@amine-ammari
@amine-ammari 6 месяцев назад
Yes you will need to remove the out of stock code from the card-variant.liquid You will need to hire a dev if you can't code
@jesalizabeth
@jesalizabeth 8 месяцев назад
This works except the listing with "no variant" appears on the page as well. Anyone else experiencing this?
@amine-ammari
@amine-ammari 8 месяцев назад
You can simply remove the products with no variants from your collection page.
@jli5666
@jli5666 9 месяцев назад
Do you know have to merge 3 individual listings under one parent with variation? i tried exporting files and editing but not working. Your expert advice would be greatly appreciated.
@amine-ammari
@amine-ammari 9 месяцев назад
Here is a video that I found that may help you ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AIufjwcEBMM.htmlfeature=shared
@user-fh9wj2pq3x
@user-fh9wj2pq3x 6 месяцев назад
Hi, there is no copy button in the pastebin links anymore..
@amine-ammari
@amine-ammari 6 месяцев назад
Yes please just select everything
@user-fh9wj2pq3x
@user-fh9wj2pq3x 6 месяцев назад
Hi, i do see the variants now on collection but beneath all the pictures on the collection pages there is a box that says: 'Choose options Liquid error (snippets/card-variant line 212): Could not find asset snippets/loading-spinner.liquid'. Am i doing something wrong? I did exactly as you said in your video. @@amine-ammari
@amine-ammari
@amine-ammari 6 месяцев назад
​@@user-fh9wj2pq3x This tutorial only works for the Free themes like Dawn,Sense ... It won't work on the premium themes If you are using a free theme, please go through the installation process again on a freshly installed theme
@user-fh9wj2pq3x
@user-fh9wj2pq3x 6 месяцев назад
It worked, thank you! @@amine-ammari
@lrr7926
@lrr7926 5 месяцев назад
Thank you so much!! Is there a way to also have the variant color selector appear on the collection page?
@amine-ammari
@amine-ammari 5 месяцев назад
Yes it's possible but you will need extra code for that. Instead you can use the add to cart button on the collection page, there is a choose option button that appears
@floe483
@floe483 9 месяцев назад
Hey, I keep getting "Liquid error (sections/main-collection-product-grid line 203): Could not find asset snippets/card-variant.liquid" and I am unsure why. I followed each step and it is a new unedited theme. The theme is Sense 12.0.0, a free shopify theme. Thankyou for the help in advance!
@amine-ammari
@amine-ammari 9 месяцев назад
Please make sure you didn't make a mistake in naming the file card-variant, it has to be an exact match.
@floe483
@floe483 9 месяцев назад
@@amine-ammari Thankyou so much, I misspelled variant as "varient", I would have never found this myself. Thankyou!
@danaca7
@danaca7 6 месяцев назад
Awesome! Will this work on Focal Theme?
@amine-ammari
@amine-ammari 6 месяцев назад
No only the free themes
@umarbajwa5574
@umarbajwa5574 7 месяцев назад
can you make a video this for product page ?
@amine-ammari
@amine-ammari 7 месяцев назад
Thanks for the suggestion I will keep it in mind
@marielynieto2749
@marielynieto2749 9 месяцев назад
how can you do this on all different themes not just dawn?
@amine-ammari
@amine-ammari 9 месяцев назад
Hi Mariely, This tutorial is compatible with all the Free themes like Refresh, Craft, Sense ... But if you have a premium theme you will have to either hire a developer or install a paid app like Variator apps.shopify.com/variants-as-separate-products
@williamdasilva6957
@williamdasilva6957 7 месяцев назад
i love you
@rodneycohen5311
@rodneycohen5311 9 месяцев назад
Hi There i am looking to purchase the enterprise theme , it will work the same on that them? or there are other steps ? i also want to know if you have a tutorial for showing available sizes on hoover in collection Thank You
@amine-ammari
@amine-ammari 9 месяцев назад
Will this work in the enterprise theme? No, this tutorial only works for the Free themes. Unless the theme has that feature built-in, you must hire a dev or pay for an App. --- Concerning the hover thing, I don't have a tutorial for that, thanks for the suggestion.
@dropped2023
@dropped2023 9 месяцев назад
can you teach me how to setup pixel twitter without app ?
@amine-ammari
@amine-ammari 9 месяцев назад
Hi, If a lot of people have this issue I will make a video on the topic Thanks for the suggestion
@bastianmiehling1181
@bastianmiehling1181 6 месяцев назад
Thanks for the Code. But I have a question about it. In my shop the hover option is activated. So if you hover over the product the second image is displayed of the product. The Problem is that every variant (color) has the same second image. For Example. I have a Hoodie with the Colors Black, White, Grey and Blue. By hovering over them the image shown is the same. It is another mockup of the Grey Hoodie, because its the second picture of the product. Is there any way to have the right (for the variant) picture displayed? Thanks!
@amine-ammari
@amine-ammari 6 месяцев назад
Yes it's possible but you need to write more code to make that work
@bastianmiehling1181
@bastianmiehling1181 6 месяцев назад
@@amine-ammari okay. Do you have a tutorial for this? I´m not that fit in programming in Liquid
@amine-ammari
@amine-ammari 6 месяцев назад
@@bastianmiehling1181 No I don't, you will need to hire a dev
@KittyInteractive
@KittyInteractive 10 месяцев назад
Hi! This was very helpful thank you. However, I am getting the error "Liquid error (snippets/card-variant line 246): product form must be given a product" under each product in the collection page and I am using the free theme "Refresh". Any idea how to fix this?
@amine-ammari
@amine-ammari 10 месяцев назад
Hi, Can you please make another duplicate of your theme and go through the tutorial again, maybe you pasted the code in the wrong files, the code snippets work on the Refresh theme.
@amine-ammari
@amine-ammari 10 месяцев назад
Hi, This issue is fixed now I updated the code snippet, you need to re-install it again
@brookeinman8618
@brookeinman8618 9 месяцев назад
I have noticed that the product title now includes the color " - white" in my live store even though I did not type it into the title on the back end of the store in product title. Is this a result of the code and how can I remove the color being typed as part of the title? thanks!
@amine-ammari
@amine-ammari 9 месяцев назад
Yes it's part of the code search for the text below in the card-variant.liquid file,: {{ card_variant.product.title | escape }} - {{ variant_option }} and delete the - {{ variant_option }} there are 2 or 3 of them in the file
@brookeinman8618
@brookeinman8618 9 месяцев назад
thank you so much for the extra help! @@amine-ammari
@shienie
@shienie 6 месяцев назад
Thank you for saving my day!!
@amine-ammari
@amine-ammari 10 месяцев назад
For those who were getting this error: Liquid error (snippets/card-variant line 246): product form must be given a product There was a bug when you activated the Quick Add button feature. I updated the code snippet, you need to re-install the code snippets again (it's better to start from an unedited theme), and that should solve the issue.
@shanshanzk
@shanshanzk 10 месяцев назад
Hi there, thanks for the tutorial! I just tried the latest code, however the Quick Add button is not working. The button is there, but it won't add to cart after I clicked it. Also, I am getting this error: Liquid error (snippets/card-variant line 212): could not find asset snippets/loading-spinner.liquid. It will be great if you can let me know how to fix it. Thank you.
@amine-ammari
@amine-ammari 10 месяцев назад
​@@shanshanzk Hi, Please download a completely UNEDITED/NEW version of a free theme then install the code snippets again. You still have code from the previous version of the code snippets on the theme that has the issue.
@shanshanzk
@shanshanzk 10 месяцев назад
@@amine-ammari Thanks for your prompt reply. I tried using a new free theme, and the problem is now fixed👍🏻 But is there any way that the 'Quick Add Button' and directly add that specific variant to cart? Because now it still have that modal pop-up.
@amine-ammari
@amine-ammari 10 месяцев назад
@@shanshanzk I'm glad your issue is solved. To answer your question, no, that's not possible to add directly the variant with this code snippet.
@marvelerm.r.m9132
@marvelerm.r.m9132 9 месяцев назад
Love this!
@amine-ammari
@amine-ammari 9 месяцев назад
Glad it was useful for you 😄
@Omar-ju7il
@Omar-ju7il 9 месяцев назад
exactly what i needed. Thanks man.
@cyberspider78910
@cyberspider78910 8 месяцев назад
perfecto....little help is need. I have color swatches on cards. Now, if I use material as option for displaying variants as product than those swatches are gone. I have customised original product card code with following code, but not sure where to put this such that after this customisation you provided. Little help please? {% for option in card_product.options_with_values %} {% if option.name contains 'Color' %} {% for value in option.values %} {% comment %} VC START below is customisation for displaying variant image based on hovering on swatches in the colletion pages but it is working but associated java script at the end of this page is not working. Hence commented this and that - both codes as well {% endcomment %} {% for variant in card_product.variants %} {% if variant.title contains value %} {% assign variant_image_source = variant.image|image_url %} {% endif %} {% endfor %} {% endfor %} {% endif %} {% endfor %}
@amine-ammari
@amine-ammari 8 месяцев назад
Hi, Concerning your problem, you could change this line and replace Color with Material {% if option.name contains 'Color' %} But I advice you to hire a developer to help you, I can't help you further without looking at the whole theme.
@cyberspider78910
@cyberspider78910 8 месяцев назад
@@amine-ammari thanks...
@fasal592
@fasal592 11 месяцев назад
For me the both color and size variants are showing......please help 🙏
@amine-ammari
@amine-ammari 11 месяцев назад
Hi Fasal, Make sure you are using the latest version of the Free Shopify themes.
@fasal592
@fasal592 11 месяцев назад
@@amine-ammari I'm using Dawn 11
@amine-ammari
@amine-ammari 11 месяцев назад
Then please go through the video again, the code snippets work for Dawn 11
@ballaz_creations687
@ballaz_creations687 11 месяцев назад
Your AMAZING Thank You 🙏🙏🙏... It's been driving me Nuts 🤬🤯 in the past 24hours 😬... So helpful
@amine-ammari
@amine-ammari 11 месяцев назад
Glad it helped! 😀
@EpicUnique000
@EpicUnique000 9 месяцев назад
Same here 🤯
@unessnh4418
@unessnh4418 11 месяцев назад
this is helpful thank you
@nicowendler9077
@nicowendler9077 9 месяцев назад
Awesome videos. So east to follow and working right out of the box. I just subscribed since I hope you're uploading more videos like this!!!!! Would you be able to add a video on how to add an upsell option to the product page. I'd like to offer another item at reduced costs with a checkbox on the product page and if selected, add main product and upsell item at reduced costs to the cart.
@amine-ammari
@amine-ammari 9 месяцев назад
Thanks for the feedback and for the suggestion Nico. I made a short on how to add an upsell to the product page, but not with a checkbox
@nicowendler9077
@nicowendler9077 9 месяцев назад
@@amine-ammari Thanks, I'll check it out
@luiginica
@luiginica 11 месяцев назад
Thank you so much! Can we have multiple images (front/side/back) per each variant?
@amine-ammari
@amine-ammari 11 месяцев назад
Glad it was helpful 😄 Yes, it's possible, but it's going to require some custom coding.
@silasschwehn
@silasschwehn 8 месяцев назад
I have the same problem, can you help me so I can choose multiple images in the variants section?
@jesusmartin4464
@jesusmartin4464 6 месяцев назад
Thanks Amine. Great job and very well explained. Question please: After the change my category page changed from full width page to narrow width. Any idea why? Thanks a lot!
@amine-ammari
@amine-ammari 6 месяцев назад
Thanks Jesus for the feedback on the video To be honest I don't know why it's happening, maybe try to change it again
@rajlkhteek
@rajlkhteek 11 месяцев назад
niiice one bro
@lavendercloud09
@lavendercloud09 9 месяцев назад
Hello thanks for the tutorial. After applying this code in some product variants "show second image on hover" option doesn't work anymore. When hovering the cursor all the image does is zooming in a bit. How can this issue be fixed? Thank you for your answer.
@amine-ammari
@amine-ammari 9 месяцев назад
Hi, The previous version of the code snippets had this issue. I updated the code and this issue is no longer present, please go through the installation process again, and replace the old code with the new one It would be better if you could re-install the code on a new unedited theme so that you don't make a mistake while replacing the code.
@lavendercloud09
@lavendercloud09 8 месяцев назад
@@amine-ammari Hello Amine thank you, it works great! I can see the 2nd image for each variant. However I have a question for you. For a jewelry product I have a gold and a silver variant. Since I can have only one "2nd image" the silver variant shows the same 2nd image as the gold variant, for example the model wearing the gold jewelry. How can I assign separate 2nd images for both variants so that the silver product show the model wearing silver jewelry instead of gold on hover? Thank you for your help!
@amine-ammari
@amine-ammari 8 месяцев назад
@@lavendercloud09 The code doesn't have this feature unfortunately You will need to hire a dev or use an app for this. If I update the code I will keep this feature in mind
@James-tb7hv
@James-tb7hv 6 месяцев назад
@@amine-ammari Hi Amine, thanks for the tutorial!!! Have you been able to resolve this issue?
@amine-ammari
@amine-ammari 6 месяцев назад
@@James-tb7hv Not yet James
@rayzen235
@rayzen235 9 месяцев назад
Thanks for the video. What if I want to showcase the variant colors on the home page?
@amine-ammari
@amine-ammari 9 месяцев назад
This code is only for the collection page, if you need it on the home page you will need to write additional code, you will need to hire a dev or use a premium app.
@CadencePrints
@CadencePrints 7 месяцев назад
@@amine-ammari it would be awesome to get this working on the home page, is it very difficult?
@amine-ammari
@amine-ammari 7 месяцев назад
​@@CadencePrints If I update the video I will make sure to add this feature
@JonesPerformanceMarketingGroup
@JonesPerformanceMarketingGroup 11 месяцев назад
Hey mate, awesome tutorial. How can I display variants for multiple products, if the products have different types of variant options (flavour, colour) ? For example, I used this tutorial to display Flavour variants for one product, but now I want to do the same thing for my other products that have colour variants, not flavours?
@amine-ammari
@amine-ammari 11 месяцев назад
Hi, Glad it was useful! Unfortunately, this will require custom coding if you want to duplicate different variant options on the same collection page.
@JonesPerformanceMarketingGroup
@JonesPerformanceMarketingGroup 11 месяцев назад
ok thanks. Are you available for hire for custom coding? Also another question; how can I get my variants to show in other collections? Not just in the all products collection?@@amine-ammari
@amine-ammari
@amine-ammari 11 месяцев назад
Yes I'm available You can reach out to me on the contact form on my website amineammari.com/contact/ The variants should normally be visible on the other collections as long as the collections are using the same template page.
@EnyaJaime
@EnyaJaime 6 месяцев назад
So helpful! Thank you so much!
@amine-ammari
@amine-ammari 6 месяцев назад
Anytime Enya 😄
@golden-dragon1442
@golden-dragon1442 10 месяцев назад
what if we have multiple ones? is it "colour", "size" like this?
@amine-ammari
@amine-ammari 10 месяцев назад
Can you please explain more in detail what you want to achieve?
@golden-dragon1442
@golden-dragon1442 10 месяцев назад
@@amine-ammari if I want to add multiple ones to that list not just 1 “color” or “size” but many different names of variants to turn into products for many different products
@amine-ammari
@amine-ammari 10 месяцев назад
@@golden-dragon1442 , unfortunately, it's not possible with this code snippet, you will need to write to hire a developer to do it
@golden-dragon1442
@golden-dragon1442 10 месяцев назад
@@amine-ammari I sent you an email
@57reuploads63
@57reuploads63 7 месяцев назад
You are the best brother !!! Thanks !!
@amine-ammari
@amine-ammari 7 месяцев назад
Thanks brother
@nataliavicencio5956
@nataliavicencio5956 7 месяцев назад
Bro thank you so much!!!!
@amine-ammari
@amine-ammari 7 месяцев назад
Happy to help 😄
@gameskills8006
@gameskills8006 10 месяцев назад
the code has an issue but also working. Here is the issue I met when i added this code and worked and I activated the second image when hovering over the item, it is giving an error, when i also activated the quick ad to cart button, here is the error message:Liquid error (snippets/card-variant line 246): product form must be given a product
@amine-ammari
@amine-ammari 10 месяцев назад
Hi, Thanks for your feedback. I wasn't aware of these issues. If I update the video I will try to solve them.
@amine-ammari
@amine-ammari 10 месяцев назад
This issue is fixed now ✅ You need to re-install the code snippet again, I updated it Thank you so much for pointing out exactly why the code wasn't working 😄👍🏼
@gameskills8006
@gameskills8006 10 месяцев назад
@@amine-ammari You are welcome. I just need to replace the new code, but the last update shows september 28th, shouldn't it show yesterday? I might be wrong here, help me out. by the way, thank you for this video, it helped a lot. my website looks like has quadrupled the products now
@amine-ammari
@amine-ammari 10 месяцев назад
​@@gameskills8006 28th September is not the last update it's the publish date. It doesn't show the edit date.
@gameskills8006
@gameskills8006 10 месяцев назад
@@amine-ammari Hey Amine, I know this is a drag but guess what? purpose of the code just stopped working. we are not back to not having the variants separate. it is okay though. I just wanted to let you know
@brookeinman8618
@brookeinman8618 9 месяцев назад
I followed your video and the variants did separate into separate products on the collection page, however, the other products that were in the same collection now have lost there images and it is just a colored square with the name of the product in the square.
@amine-ammari
@amine-ammari 9 месяцев назад
They lost their images because they didn't have a variant featured image, so please attach images to the variants in your product settings.
@brookeinman8618
@brookeinman8618 9 месяцев назад
thank you!@@amine-ammari
@brookeinman8618
@brookeinman8618 9 месяцев назад
That worked!!! Thank you for being so helpful!! I do have the option where you hover over the image and it shows a second image. So now when I have a sweater in white it changes to a different image of the white sweater when I hover. For the new variant image of the sweater in yellow, when I hover it shows the same second image in white as well. Is there any way to change the image when I hover for the yellow sweater to show a second yellow sweater image instead of the same white one?? Thanks!@@amine-ammari
@amine-ammari
@amine-ammari 9 месяцев назад
​@@brookeinman8618 Glad I could help. No there isn't a way with this code. You will need to hire a dev for it. If update the video I will make sure to add this feature.
@brookeinman8618
@brookeinman8618 9 месяцев назад
Ok, thank you so much for sharing this with everyone! It was extremely helpful! I appreciate you responding to help me trouble shoot. Thanks!!! @@amine-ammari
@AlexanderRomac
@AlexanderRomac 8 месяцев назад
This is great! Thank you
@amine-ammari
@amine-ammari 8 месяцев назад
😄👍🏼
Далее
ОБЗОР НА ШТАНЫ от БЕЗДNA
00:59
Просмотров 391 тыс.