Re: How to mass update the Metafields images

How can I effectively mass update Metafields images?

Ponmalar
Excursionist
28 0 11

Hello Guys,

 

I wanted to mass update the product metafields, for that i need to know how to get the link of image that is tagged to product.

 

How to fill the empty fields or get the url of image, i tried uploading the image in files and pasted the url it didnt worked.

 

 

 

Ponmalar_2-1649509208989.png

 

Replies 9 (9)

satsinghrana
Shopify Partner
331 19 41

Hello @Ponmalar 

 

Could you give more information on it so I can guid you better on it.

Thanks!

 

banned
Ponmalar
Excursionist
28 0 11

I have implemented hover image effect after seeing this video(https://www.youtube.com/watch?v=ZmXHqer_OxM&t=582s)

But now i have lot of products to implement the same, it is taking time, want to see how i can do mass update hover image, so i found this video (https://www.youtube.com/watch?v=n-JnSDrDt-4

)where we can filter and edit the meta fields, but the url seems to be different, see below first item.. i want to fill the second and third, but url looks different and if i keep the images in files directory and refer the same url here, it is not working.. Hope you understand the issue..

 

Ponmalar_0-1649524725934.png

 

satsinghrana
Shopify Partner
331 19 41

From where the first URL came? 

banned
Ponmalar
Excursionist
28 0 11

If i follow the first video, updating the metafields directly in specific product page, i get this URL.

satsinghrana
Shopify Partner
331 19 41

Ok in Metafield you set the type to file?

If yes then changing it to URL will solve this issue.

 

Give it a try and let me know.

 

Thanks!

banned
satsinghrana
Shopify Partner
331 19 41

Screenshot 2022-04-10 at 12.57.31 PM.png

banned
Ponmalar
Excursionist
28 0 11

for some reason i am not able to change it nw

Ponmalar_1-1649588936883.png

 

 

do i hav to create new?

satsinghrana
Shopify Partner
331 19 41

Yeah you can create new one, It will not change cause it has some values assigned.

 

banned
Ponmalar
Excursionist
28 0 11

Is it possible in code to pick the last image uploaded as hover image?

if so please give me the steps to implement it.