Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Invalid URL in Google Base Feed (Google Merchant) › Reply To: Invalid URL in Google Base Feed (Google Merchant)
Hi,
Yes I can see the problem and thanks for the feedback.
The thing is that Google stated in one of their feed specification pages that if an attribute has no value that one should not display it.
However after reading another page of the specs Google says that the “link” attribute is “Required for all items”.
I noticed that the same applies for the “image_link” attribute. This is because these are mandatory.
Currently our code checks the product DB if there are values for “product url” and product image and if these are empty the plugin will not display the above attributes.
I think that maybe a better way to do it is to perform the same checks as I mentioned but if the DB returns an empty value then we should insert a default value.
eg,
default value for “link” attribute could be your site’s home or store page or some other default page. (but be careful because Google might have requirements about the value you submit)
For the “image_link” attribute Google says that “If you have no image for your item, you cannot submit the item”
See the merchant centre help page here for more:
http://support.google.com/merchants/bin/answer.py?hl=en&answer=188494#US