Hi
I have been asked to reach out to the virtuemart team from the developer of the google structured data plugin.
We are having difficulties getting the product image structured data to pull the vm image url, with instead falling back onto the site url.
Joomla 5
VirtueMart 4.4.10 11120
We are using the Google Structured Data plugin (GSD).
The Product schema is outputting:
"image": "https://www.recyclingbins-direct.co.uk/"
instead of the actual product image URL.
The VirtueMart product image is correctly configured and published.
Frontend product pages display the image correctly.
Example product image path:
images/stories/virtuemart/product/Best%20buddy%20paper.jpg
The GSD developer says VirtueMart is not providing image data when the product object is retrieved.
They asked us to refer you to:
/plugins/gsd/virtuemart/virtuemart.php
particularly:
- the image property
- getImage() method
Could this be related to VirtueMart 4.4.x requiring addImages($product) before product images become available on the product object?
It appears the frontend loads images correctly, but integrations retrieving the product object are not receiving populated media/image arrays.
The product page example used is https://www.recyclingbins-direct.co.uk/shop/best-buddy-recycling-bin-84-litres-light-blue-paper-details.html
Would it be possible to get some assistance in checking the above.
Kind regards
Tim