Hide Variant Images

Highlighted
New Member
3 0 0

Hi!

I have a bunch of variant images that I need to delete. I can upload more images but cannot delete images the ones that are already uploaded!

How can i organise and delete the variant images I have uploaded? I now have way too many images showing under the product.

How can I do this?

Thanks!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
490 50 58

Hey, @VRD.

 

That's a great question! There isn't a way to bulk delete or manage multiple products' images directly on Shopify; however, you can overwrite the images for multiple products by using CSV files. CSV files will be the fastest method to manage images for multiple products. To do this, you can export your products as a CSV first. Then remove or update the photos links in the CSV. After that, you can re-upload the CSV and overwrite the existing products. It will looks like this:

 

22-58-6aryf-7eas6

 

Another option is by using a third-party app, such as Excelify, which provides tools to bulk edit or import product images directly through their app. If you need any help with this app, you can always reach out to the developer directly through the contact information found in the Support section of their app’s page. 

 

I hope this provides a couple of solutions for you to try out. If you have any other questions on this topic, don't hesitate to let me know in this thread!

Elias | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Highlighted
New Member
2 0 1

Hey,

I just ran into the same situation.

I added a check to see if the image was attached to a variant. Try to look for a section that looks like this in the product-template.liquid.

{% comment %}
      Show other product images below product info if there's any left to show
{% endcomment %}

{% if index < product.images.size %}
   {% for image in product.images offset:index_offset %}
          {% if image.attached_to_variant == false %}
               .....
0 Likes
Highlighted
Shopify Staff
Shopify Staff
490 50 58

Hey, @yanceyr.

 

Thank you for joining the thread! I understand you're also looking to hide the variant images. Though I'm unable to help with custom coding, this may be something our Theme Support can help you with. If you're using a Shopify theme and your store is subscribed to a plan, I'd be happy to send a customization request on your behalf to our Theme Support team. 

 

Just to confirm, is this something you still need help with?

 

Elias | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Highlighted
New Member
2 0 1
No I no longer need help. I added that line of code to my theme.

Engineer at heart so it was fun learning liquid :)
1 Like
Highlighted
Tourist
8 0 2

Surely these hacks are the wrong approach. 
The platform should allow to delete no longer wanted variant images..

0 Likes
Highlighted
New Member
2 0 0

hey yanceyr,

i am not able to find the section you mentioned, please help i am stuck with this for days.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
490 50 58

Hey, @devpatel75.

Thank you for joining the thread! I understand you're trying to find the same section that @yanceyr was referring to, more specifically the product template. Typically, the product template is named 'product-template.liquid'. however, this may vary between Shopify, third-party, or custom themes. When you edit the theme coding on a Shopify theme or a third-party theme from our Theme store, the 'product-template.liquid' can be found in the Sections folder.  It's important to note, this may vary with custom or third-party themes acquired outside our Theme store. 

I hope this helps you locate that section! If you have any other questions on this topic, please don't hesitate to let me know!

 

Elias | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Highlighted
Tourist
8 0 2

So there is no way to delete rogue orphaned variation images other than this awful hack?

0 Likes