Possible to serve different “Featured Image” to Merchant Center than in Shop?
-
Hi,
thank you for the plugin. It’s great and it’s very well thought out. I’d love to get your input on how to solve this challenge:Context: My shop uses overlays on product images, especially the featured product image, to communicate product attributes. This works well for our visitors.
Challenge: Google Shopping disapproves products when their g:image_link has overlays. So I need to serve a different image (without overlays).
Is there a way to create a new field in the product in which I can add a link to the “clean” image? And then get your plugin to pick this up and serve it in g:image_link instead of the βmain imageβ attribute?
Best,
Franz-
This topic was modified 4 years, 2 months ago by
Franz92.
-
This topic was modified 4 years, 2 months ago by
-
Hi,
I am dumb. Of course it’s possible, I’ll just have to create a new custom field via your plugin and drop the link in there.Then I will add a dynamic field and check wether that field has a value – and if not, fall back to the main image link.
And that dynamic field is what I parse to g:image_link. π
Exactly that π
Oh, nope: I was confusing your plugin with another one. Yours doesn’t have the option to create custom fields. But you have rules.
Mhm. I’ll try using a custom attribute and a rule to solve this.
Update: Okay, I am getting stuck here. Here’s a screenshot: https://pasteboard.co/ubDllliWnfNM.png
I created a custom attribute that stores the URL to the clean image. What I want is the rule to check wether there’s a value and if yes, return that value instead of the original main image.
However, I neither know how to check for a value (there’s an “is empty”, but not “is not empty” argument), nor how to return the URL of the attribute.
Can you help, please?
I’ve read through those help documents, but couldn’t find an answer:
Hi,
You should be able to create a rule that does exactly that. Something like this:
https://www.dropbox.com/s/tv7v69v172iftbn/image-rule.png?dl=0Hi!
Quite, but not close. If I understand it correctly your recommendation would cause all main images to be replaced be the clean images (even if empty), if a main image exists.I’d need to make it work the other way round:
– If a clean image url exists / is not empty
– then replace the main imageBut I am lacking the syntax. How do I check for exists / is not empty and how do I enter a dynamic instead of a static value? ( https://pasteboard.co/ubDllliWnfNM.png )
I think this would do the trick?
Use this field mapping:
https://www.dropbox.com/s/3i808toetylfpn1/CleanImage2.png?dl=0And this rule:
https://www.dropbox.com/s/y9c2qcx4xdlmdfg/CleanImage3.png?dl=0Is there a way to check for “is empty”?
Yes, apart from the condition “is not empty” as shared in the screenshot earlier there is also a “is empty” condition in that drop-down.
Thank you! That worked perfectly.
The topic ‘Possible to serve different “Featured Image” to Merchant Center than in Shop?’ is closed to new replies.