I'm trying to get the feed google_base, point to the second image of each product.
I need this because google merchant can not handle the images that I have by default in the products, as they indicate some Promotional brand and messages, so I want to include a second image that is cleaner which assigne to google.
I modified the code of google_base.php file as follows:
Code: Select all
$additionalimages = $this->model_catalog_product->getProductImages($this->request->get[$product['product_id']]);
if (isset($additionalimages[0])) {
$product['image'] = $additionalimages[1];
}
if ($product['image']) {
$output .= '<g:image_link>' . $this->model_tool_image->resize($product['image'], 500, 500) . '</g:image_link>';
} else {
$output .= '<g:image_link>' . $this->model_tool_image->resize('no_image.jpg', 500, 500) . '</g:image_link>';
Any idea ??
Thank you !