Cancelled

Small Magento Job - Google Shopping

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:

[url removed, login to view]://[url removed, login to view]

This is what I need importing into google:

[url removed, login to view]

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;

}

}

Skills: HTML, Magento, MySQL, PHP

See more: product getimage small, job edit, export job, edit job, current job, magento products export, magento job, magento entry, magento catalog, icecat, google shopping, google domain, magento extends, edit magento products, magento export products attribute, export attribute, helper php, google attribute, attribute export, product entry script php, magento media image, image grab, google product magento, url google, google shopping image

About the Employer:
( 47 reviews ) Huntingdon, United Kingdom

Project ID: #1270841

3 freelancers are bidding on average $20/hour for this job

vietcodepro

Hello, I am very interested your project. Please check your inbox for more details, thanks!

$20 USD / hour
(376 Reviews)
8.0
p4provider

Here are Magento Experts , please check our Magento work and let me start your work , Thanks

$20 USD / hour
(88 Reviews)
7.4
bidulemachin

Hi there, can help you with your problem. You need to make it an extension

$30 USD / hour
(10 Reviews)
4.9
eucoghelpdesk

We are ready to do this work very well.

$10 USD / hour
(0 Reviews)
0.0