Jump to content

[SOLVED] EAN output missing from Google product feed module


Recommended Posts

Hi,

When I upload my Google base product feed I'm getting an 'missing EAN' warning for every product, this is due to the fact (obviously) that the 'Google Base Feed Products v0.6.3' module does not write the ean to the output file.

Can anyone please tell me how to how to change googlebase.php in order to achieve this ?

Thanks

Gareth

Link to comment
Share on other sites

Ah sorted it out myself, you just need to add the fourth row to the following code;

$items .= "\n"
               . "<title>".htmlentities($Product['name'])."</title>\n"
               . "".htmlentities($Product['manufacturer_name'])."\n"
               . "".$Product['ean13']."\n"
               . "new\n"
               . "<![CDATA[".$Product['description_short']."]]>\n"
               . "$expire_date\n"
               . ""."pc".strtolower(Language::getIsoById($this->_cookie->id_lang))."-".$Product['id_product']."\n"
               . ""."pc".strtolower(Language::getIsoById($this->_cookie->id_lang))."-".$Product['id_product']."\n";
               if (isset($image[0]))



into the php file in the googlebase module.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...