1st Job:
I am currently trying to export my products into google shopping, but the bit of the script that grabs the image automatically grabs my domain too, but the image is hosted somewhere else so it doesn't grab the image right.
This is what gets imported into google:
[login to view URL]://[login to view URL]
This is what I need importing into google:
[login to view URL]
Can someone tell me what I need to edit in the script below:
class Mage_GoogleShopping_Model_Attribute_ImageLink extends Mage_GoogleShopping_Model_Attribute_Default
{
/**
* Set current attribute to entry (for specified product)
*
* @param Mage_Catalog_Model_Product $product
* @param Varien_Gdata_Gshopping_Entry $entry
* @return Varien_Gdata_Gshopping_Entry
*/
public function convertAttribute($product, $entry)
{
$url = Mage::helper('catalog/product')->getImageUrl($product);
if ($product->getImage() && $product->getImage() != 'no_selection' && $url) {
$this->_setAttribute($entry, 'image_link', self::ATTRIBUTE_TYPE_URL, $url);
}
return $entry;
}
}
2nd Job:
I would like all my products to also display the brand it the product tile:
EG:
This product I would also like to have HP (The Brand) in the title.
[login to view URL]
Thanks