Hello,
in the xml file produced by the Hikashop Google Products Plugin I would like to get the product image thumbnail instead of the original product image.
In the plugin code this is the line which gets the image_link:
$xml .= "\t".'<g:'.$name.'>'.htmlspecialchars($siteAddress.$this->main_uploadFolder_url.$image->file_path).'</g:'.$name.'>'."\n";
Is it correct if I change it to the following to get the product's thumbnail at 500x500?
$img_thumb = $imageHelper->getThumbnail($image->file_path, array(500, 500), array('default' => true));
$xml .= "\t".'<g:'.$name.'>'.htmlspecialchars($siteAddress.$this->main_uploadFolder_url.$image_thumb).'</g:'.$name.'>'."\n";
Thank you in advance,
Yannis