Forums / All Other Contributions/Addons / [OLD] Google Merchant module Version 1.12.0 by Numinix

[OLD] Google Merchant module Version 1.12.0 by Numinix

Locked

Started by pinkleopard on 20 Oct 2011, 1:25 AM · Views: 113,657

Results 201 to 220 of 567
This thread is locked. New replies are disabled.
14 Nov 2011, 6:29 AM
#201
mikebr avatar

mikebr

Zen Follower

Join Date:
May 2007
Posts:
124
Plugin Contributions:
0

[OLD] Google Merchant module Version 1.12.0 by Numinix

Thanks Steve
All my language feeds now have unique Ids.

With the new version 1.12.5 , for the german and french feeds I'm getting diamond shaped question marks ie occup�

I didn't get this problem with the earlier versions.

I tried removing the htmlentities function from Googlefroogle as previously suggested however it didnt work.

Any help would be appreciated.

14 Nov 2011, 11:35 AM
#202
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

Being the masochist I am, I decided to try out 1.12.5, despite my version working perfectly.
I found my feed being rejected where a degree symbol was in use and a corrupted character (square) was being created.
I find the reason in google_base.php (as always), in the sanita function which has been moved and mostly commented out.

    function google_base_sanita($str, $rt=false) {
      //global $products;
      $str = str_replace(array("\r\n", "\r", "\n", " "), ' ', $str);
      $str = strip_tags($str);
      //$charset = 'UTF-8';
      //if (defined(CHARSET)) {
        //$charset = strtoupper(CHARSET);
      //}
      $str = html_entity_decode($str, ENT_QUOTES);//, $charset);
      //$str = html_entity_decode($str, ENT_QUOTES, $charset);
      //$str = htmlspecialchars($str, ENT_QUOTES, '', false);
      //$str = htmlentities($str, ENT_QUOTES, $charset, false); 
      return $str;
    }
```Regressing this code to include the charset again:
```php
    function google_base_sanita($str, $rt=false) {
      //global $products;
      $str = str_replace("\r\n", ' ', $str);
      $str = strip_tags($str);
      $charset = 'UTF-8';
      if (defined(CHARSET)) {
        $charset = strtoupper(CHARSET);
      }
      $str = html_entity_decode($str, ENT_QUOTES, $charset);
      //$str = html_entity_decode($str, ENT_QUOTES, $charset);
      //$str = htmlspecialchars($str, ENT_QUOTES, '', false);
      //$str = htmlentities($str, ENT_QUOTES, $charset, false); 
      return $str;
    }

Fixed my problem.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

14 Nov 2011, 5:11 PM
#203
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

Just installed 1.12.4 over an old version that was throwing out the "availability" error and causing 0 products to show up in google.

Ran the uninstall script, then the install script. Everything looks ok on the admin side, but when clicking the xml file, it is blank. Before this upgrade, if the xml link was clicked, it showed all of the products like an rss feed.

Tried to upload it to google and only a handful of products were inserted, all of which were sold long ago. The feed level messages shows "XML formatting error - Error".

14 Nov 2011, 5:13 PM
#204
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

pricediscrimination:

Just installed 1.12.4 over an old version that was throwing out the "availability" error and causing 0 products to show up in google.

Ran the uninstall script, then the install script. Everything looks ok on the admin side, but when clicking the xml file, it is blank. Before this upgrade, if the xml link was clicked, it showed all of the products like an rss feed.

Tried to upload it to google and only a handful of products were inserted, all of which were sold long ago. The feed level messages shows "XML formatting error - Error".

Turn on the sanitizer function and see if that makes a difference.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 Nov 2011, 5:43 PM
#205
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

delia:

Turn on the sanitizer function and see if that makes a difference.

Does that mean go to includes/classes/google_base.php and remove the comment-out between lines 439 and 442 as in @torvista's post above?

I just did that. Nothing changed. Nothing showing up in the XML.

14 Nov 2011, 8:03 PM
#206
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

No, it kinda sounds like it's not installed properly. Did you turn on debugging so that you can see the products as you export?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 Nov 2011, 8:52 PM
#207
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

delia:

No, it kinda sounds like it's not installed properly. Did you turn on debugging so that you can see the products as you export?

With debug mode on, the popup shows that the products are being exported without errors, but then the actual xml file is still not showing anything.

14 Nov 2011, 8:55 PM
#208
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

pricediscrimination:

With debug mode on, the popup shows that the products are being exported without errors, but then the actual xml file is still not showing anything.

Are you only trying to view the xml file in the browser or are you downloading it and opening it on your computer? Just because you can't see anything in the browser does not mean the file is empty.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 Nov 2011, 8:56 PM
#209
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

Also, it is still trying to include products that are located in a category that is excluded in the Google Base Feeder Configuration admin.

14 Nov 2011, 11:12 PM
#210
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

delia:

Are you only trying to view the xml file in the browser or are you downloading it and opening it on your computer? Just because you can't see anything in the browser does not mean the file is empty.

Good point. When viewing in the browser, nothing is there. But before, it used to display each product almost like looking at a blog's RSS feed.

After opening it file in wordpad, the actual XML appears to have the content there. But again, is showing products from a category that is supposed to be excluded.

I upgraded from an older (don't even know how old) version. Uploaded all the files. Then ran the update_1_12_4 SQL script then ran the uninstall script, then ran the install script again. Not the right way probably, I know. But the weird thing is that all of the settings in admin seem to have stayed the same. Is that normal?

14 Nov 2011, 11:14 PM
#211
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

pricediscrimination:

Good point. When viewing in the browser, nothing is there. But before, it used to display each product almost like looking at a blog's RSS feed.

After opening it file in wordpad, the actual XML appears to have the content there. But again, is showing products from a category that is supposed to be excluded.

I upgraded from an older (don't even know how old) version. Uploaded all the files. Then ran the update_1_12_4 SQL script then ran the uninstall script, then ran the install script again. Not the right way probably, I know. But the weird thing is that all of the settings in admin seem to have stayed the same. Is that normal?

Are you seeing one or two sets of settings in admin? Make sure you have one and it's named Google Merchant Center Feeder Configuration.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 Nov 2011, 11:17 PM
#212
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

delia:

Are you seeing one or two sets of settings in admin? Make sure you have one and it's named Google Merchant Center Feeder Configuration.

OMG. That's the problem! The old settings were still there because I left the old files there and just renamed them "_old" just in case I needed to revert back.

:oops:

Reconfiguring the settings and will report back. Thanks so much for sticking with me here.

14 Nov 2011, 11:28 PM
#213
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

The feed is displaying correctly now! Uploaded to google, processing now... we'll see what happens.
:clap:

15 Nov 2011, 2:07 AM
#214
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

I am getting a categories error, is it because I have an old 1.3.7 cart?

Fatal error: Call to undefined function zen_generate_category_path()

LINE OF CODE
$cPath_array = zen_generate_category_path($master_categories_id);

Any ideas?

16 Nov 2011, 2:11 PM
#215
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

I am getting a categories error, is it because I have an old 1.3.7 cart?You need to search for that function in your files, see if is missing.
Why? Anyone wishing to help you would have to download an old copy of ZC to see if that function existed then..which I did, and it did..so you have a problem if it is missing.
All of which is missing the point, which is you MUST upgrade asap unless you like cleaning up after being hacked.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

18 Nov 2011, 9:55 PM
#216
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

Everything was working perfectly for a couple of days and now all the sudden it's not accepting any products and throwing up this error:

Google Checkout requires a quantity greater than zero

19 Nov 2011, 1:00 AM
#217
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

pricediscrimination:

Everything was working perfectly for a couple of days and now all the sudden it's not accepting any products and throwing up this error:

Google Checkout requires a quantity greater than zero

Remove Google checkout from the payment notes section in the google merchant center feeder configuration.

The best way to learn is to try stuff. But, back it up first.

19 Nov 2011, 3:29 AM
#218
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

RescoCCC:

Remove Google checkout from the payment notes section in the google merchant center feeder configuration.

Hi, tried it and that didn't change anything.

19 Nov 2011, 8:08 PM
#219
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

Try setting Include Zero Quantity to false.

The best way to learn is to try stuff. But, back it up first.

19 Nov 2011, 8:39 PM
#220
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: [OLD] Google Merchant module Version 1.12.0 by Numinix

RescoCCC:

Try setting Include Zero Quantity to false.

That option is not available in the admin :no: