Post by Zarco » Tue Mar 11, 2014 2:50 am

Hello!
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>';
But it doesn't works... still shows the main image.

Any idea ??

Thank you !

New member

Posts

Joined
Mon Jul 18, 2011 6:42 am
Who is online

Users browsing this forum: No registered users and 5 guests