Jump to content

Google Base Products Feed


Recommended Posts

I have added the attached file to modules and installed it. When I go to generate the xml file I get the following error

 

Fatal error in module googlebase:

Call to undefined method Category::hideCategoryPosition()

 

This is at line 196.....

 

$category_name = Category::hideCategoryPosition($category->name);

 

I have tried to just delete the function but I get an empty feed, and tried to comment it out with /* but then get syntax errors.

 

I know that the function has been deprecated since prestashop 1.5.0 but can anyone advise me on how to work around this problem.

 

I am using 1.5.2 at present.

 

Many thanks in advance for your assistance.

googlebase.php

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

open googlebase.php in /modules/googlebase

 

go to row 194

 

change $category_name = Category::hideCategoryPosition($category->name);

 

to $category_name =$category->name;

 

Simply remove call to function hideCategoryPosition. In PS 1.5 and older, this call to fuction is not request.

 

Sorry for my bad english.

  • Like 5
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 8 months later...

Hi,

 

open googlebase.php in /modules/googlebase

 

go to row 194

 

change $category_name = Category::hideCategoryPosition($category->name);

 

to $category_name =$category->name;

 

 

Thanks it's working well now... but have a problem : all product have a disctinct EAN13 but the feed on each product is  <g:gtin>0002147483647</g:gtin> 

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Hi, 

I try to make this module work on my website, I read the whole forum and I don't manage to generate my file. 

 

I already changed the line 194, as explained, and it still doesn't work...

 

Here is the error message: 

 

"Fatal error[PrestaShop] Fatal error in module googlebase:

Undefined variable: item_data"

 

Does someone have a solution for me ? 

 

Many thanks in advance for your assistance !

 

Charles

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

 

open googlebase.php in /modules/googlebase

 

go to row 194

 

change $category_name = Category::hideCategoryPosition($category->name);

 

to $category_name =$category->name;

 

Simply remove call to function hideCategoryPosition. In PS 1.5 and older, this call to fuction is not request.

 

Sorry for my bad english.

 

 

After modifying the xml is generated but got this error: 
 
"This page contains The Following Errors: 
 
error on line 16 at column 81: EntityRef: expecting ';' 
Below is a rendering of the page up to the first error. "
 
I commented the line 194 as suggested in a post but got this error: 
 
"This page contains The Following Errors: 
 
error on line 15 at column 90: EntityRef: expecting ';' 
Below is a rendering of the page up to the first error. "
 
 
I am using prestashop v1541 and module  V0.7.3.5 
 
Any solution or someone uses another version of the module that works in v1541 store? 
 
Thanks!
Link to comment
Share on other sites

  • 6 months later...
×
×
  • Create New...