Zen Cart Logo
Forums / All Other Contributions/Addons / Google Base Feeder Support Thread [OLD]

Google Base Feeder Support Thread [OLD]

Locked

Views: 806,159

Results 3,301 to 3,320 of 3,556
This thread is locked. New replies are disabled.
9 Oct 2011, 7:27 PM
#3301
dlcohenzc avatar

dlcohenzc

New Zenner

Join Date:
Sep 2011
Posts:
19
Plugin Contributions:
0

Google Base Feeder Support Thread [OLD]

The base feeder was so slow, I played around, checking times in various places. I hit the jackpot - if you remove the call to additional_images in the google_base class, the time to execute was 1/10 of what it was with the call in there. That's huge, considering folks on shared servers with limited processing.

So, a tweak would be to set up some form of caching for this directory info.

9 Oct 2011, 8:09 PM
#3302
mobile_gear avatar

mobile_gear

New Zenner

Join Date:
Feb 2011
Posts:
9
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Hi I have installed the latest version of your Google feeder which I have been using for the past 3-4 months with out and issues.

But since I have updated the feeder I have been getting the following errors

Missing required attribute: availability (125 errors, only affecting Product Search, Search API for Shopping)
Please make sure that you include all required attributes in your data feed.
Examples:
Item ID Line No.
7 217 Show Item
170 322 Show Item
11 352 Show Item
185 532 Show Item
212 888 Show Item

I have deleted these products and the feed and recreated them with out any luck.

Have I missed a step when installing the plugin?

9 Oct 2011, 8:13 PM
#3303
rescoccc avatar

rescoccc

Totally Zenned

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

Re: Google Base Feeder Support Thread [OLD]

mobile-gear:

Hi I have installed the latest version of your Google feeder which I have been using for the past 3-4 months with out and issues.

But since I have updated the feeder I have been getting the following errors

Missing required attribute: availability (125 errors, only affecting Product Search, Search API for Shopping)
Please make sure that you include all required attributes in your data feed.
Examples:
Item ID Line No.
7 217 Show Item
170 322 Show Item
11 352 Show Item
185 532 Show Item
212 888 Show Item

I have deleted these products and the feed and recreated them with out any luck.

Have I missed a step when installing the plugin?

This question is answered multiple times in this thread.

9 Oct 2011, 9:52 PM
#3304
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

mobile-gear:

Hi I have installed the latest version of your Google feeder which I have been using for the past 3-4 months with out and issues.

But since I have updated the feeder I have been getting the following errors

Missing required attribute: availability (125 errors, only affecting Product Search, Search API for Shopping)
Please make sure that you include all required attributes in your data feed.
Examples:
Item ID Line No.
7 217 Show Item
170 322 Show Item
11 352 Show Item
185 532 Show Item
212 888 Show Item

I have deleted these products and the feed and recreated them with out any luck.

Have I missed a step when installing the plugin?

Set include zero quantity to false, show quantity to true, and default quantity to 0.

9 Oct 2011, 10:23 PM
#3305
shedder avatar

shedder

New Zenner

Join Date:
Apr 2010
Posts:
16
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Hi,

I've just got 1.10.2 running on Zen 1.3.8a and all looked ok. However, spotted a problem happening which was reported earlier in this mammoth thread but the fixes suggested then applied to code which is now different.

Basically, the feed contained things like:

' where the first 5 characters there should actually be an ampersand

the Google Product Category line was coming out as...

**<g:google_product_category>Arts & Entertainment > Party Supplies</g:google_product_category>
**
etc.

The relevant bit of code in includes/classes/google_base.php , in 1.10.2 anyway, is...

function google_base_sanita($str, $rt=false) {
//global $products;
$str = str_replace("\r\n", ' ', $str);
$str = strip_tags($str);
$str = preg_replace('/\s\s+/', ' ', $str);
if (phpversion() >= 5) $str = htmlspecialchars_decode($str);
$charset = '';
if (defined(CHARSET)) {
$charset = strtoupper(CHARSET);
}
$str = html_entity_decode($str, ENT_QUOTES, $charset);
$str = htmlentities($str, ENT_QUOTES, $charset);
return $str;
}

/*  
function google_base_xml_sanitizer($str, $cdata = false) {
  $str = $this->google_base_sanita($str);
  $length = strlen($str);
  for ($i = 0; $i < $length; $i++) {
    $current = ord($str{$i});
    if ((($current == 0x9) || ($current == 0xA) || ($current == 0xD) || (($current >= 0x20) && ($current <= 0xD7FF)) || (($current >= 0xE000) && ($current <= 0xFFFD)) || (($current >= 0x10000) && ($current <= 0x10FFFF))) && ($current > 10) ) {
      $out .= chr($current);
    } else {
      $out .= " ";
    }
  }
  $str = trim($str);
  if ($cdata) {
    $str = '<![CDATA[' . $str . ']]>';
  }
  return $str;
}*/

function google_base_xml_sanitizer($str, $products_id = '') { // products id added for debugging purposes
  $str = $this->google_base_sanita($str);
  $strout = null;

  for ($i = 0; $i < strlen($str); $i++) {
    $ord = ord($str[$i]);
    if (($ord > 0 && $ord < 32) || ($ord >= 127)) {
      $strout .= "&#{$ord};";
    }
    else {
      switch ($str[$i]) {
        case '<':
          $strout .= '<';
          break;
        case '>':
          $strout .= '>';
          break;
        case '&':
          $strout .= '&';
          break;
        case '"':
          $strout .= '"';
          break;
        default:
          $strout .= $str[$i];
      }
    }
  }
  return $strout;
}

There are 2 versions of the function google_base_xml_sanitizer , one commented out. Swapping which was commented out made it work correctly for me. Not sure if there are any other implications mind you! Just posting this in case it's any use for anyone else.

10 Oct 2011, 2:00 AM
#3306
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

I have been reading every post I could find that looked like a possible answer.
I deleted (several times) the sql file and then reinstalled it 3+ times and got several "duplicate copy" messages.
And voila I have a perfect output file for Google.

Only took 4 days.

Now the last question" why is my file name - domain_products_en.xml instead of the file name in the config setup dor the feed??

Any ideas? Do I have to change code in some file??

10 Oct 2011, 2:24 AM
#3307
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

BINGO!!!

I SOLVED THE "domain_products_en.xml" PROBLEM.

For some reason, without realizing it, I suddenly have two configuration options for Google:

  • Google Base Feeder Configuration

  • Google Merchant Center Feeder Configuration

Google Base is the old one which I tried to change but nothing worked.

My first change of Google Merchant Center did the trick and all is well.

Thanks to everyone who tried to help.

10 Oct 2011, 10:07 AM
#3308
sash avatar

sash

New Zenner

Join Date:
Jul 2010
Posts:
99
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Hi ppl, Ive look throuh this thread and sorted a few bits that were wrong with mine,,

The bit i cant get working is the "download link" within the module,,

It processes the file , but in the blue bit where its says download,, the link isnt clickable??

Could someone show me why it isnt a clickable link, please

10 Oct 2011, 1:31 PM
#3309
sash avatar

sash

New Zenner

Join Date:
Jul 2010
Posts:
99
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

sash:

Hi ppl, Ive look throuh this thread and sorted a few bits that were wrong with mine,,

The bit i cant get working is the "download link" within the module,,

It processes the file , but in the blue bit where its says download,, the link isnt clickable??

Could someone show me why it isnt a clickable link, please

edit that last post:::

it now come up with a parse error, which totally baffles me:no:

10 Oct 2011, 8:57 PM
#3310
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

marvin:

For some reason, without realizing it, I suddenly have two configuration options for Google:

Nice - funny how it boils down to this - yet this happened to me too as it was installed beyond my screen resolution and never saw it! I assume this is due to an improper uninstall.sql? I assume that with all the attempts you and I were doing, that was missed along the way.

So is my "google merchant center feeder configuration" correct in only having only 12 Title parameters? The last is "Output Directory"

I am still getting 0 of 0 products but the OLD "Google Base Feeder Configuration" is set for.....

Show Quantity true
Include Zero Quantity false
Default Quantity 0

I am also assuming that having TWO configurations is not normal.

10 Oct 2011, 10:34 PM
#3311
rescoccc avatar

rescoccc

Totally Zenned

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

Re: Google Base Feeder Support Thread [OLD]

Having two configuration options simply means the old version wasn't uninstalled. It shouldn't effect functionality of the new version though. I have both Google Base Feeder Configuration, (which was version 1.7.4), and Google Merchant Center Feeder Configuration, (version 1.10.2), on one of my sites, and the latter works fine.

10 Oct 2011, 10:37 PM
#3312
rescoccc avatar

rescoccc

Totally Zenned

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

Re: Google Base Feeder Support Thread [OLD]

So is my "google merchant center feeder configuration" correct in only having only 12 Title parameters? The last is "Output Directory"

There should be way more settings than that.

10 Oct 2011, 11:37 PM
#3313
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

*** Multiple Configs in Admin solved

Post #3249 Solved this for me - I am up and running.

Read over Stedman's troubles around pages 325 or so.

What helps is post 3249 to wipe out all traces of google, then running the install.sql to whatever version you run.

I am running 1.10.2 (on 1.3.8a) with only image and description problems with "&" and foreign letters respectively. I am weeding these out as I speak (write).

11 Oct 2011, 8:32 AM
#3314
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

sbbemn:

I am also assuming that having TWO configurations is not normal.
if u have phpmyadmin
login
goto your DB
then goto configurationgroup
find the one related to google base(old version)
then delete :D
no longer there :D
sorted

11 Oct 2011, 8:37 AM
#3315
sash avatar

sash

New Zenner

Join Date:
Jul 2010
Posts:
99
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Im confused lol,, does the latest update work or not, when i try and upload it just sends a blank file, not quite sure if you guys are getting it to work or not,,

Sep 10 2011

v1.3.9

1.10.2

:D

11 Oct 2011, 8:52 AM
#3316
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

sash:

Im confused lol,, does the latest update work or not, when i try and upload it just sends a blank file, not quite sure if you guys are getting it to work or not,,

Sep 10 2011

v1.3.9

1.10.2

:D

seems to be working for me. but not getting all my products yet :S
only like 10% of my products are put into the list....and id say 98% of them have stock etc

11 Oct 2011, 9:01 AM
#3317
sash avatar

sash

New Zenner

Join Date:
Jul 2010
Posts:
99
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

spid3r1987:

seems to be working for me. but not getting all my products yet :S
only like 10% of my products are put into the list....and id say 98% of them have stock etc

Thanks for the reply, How do you get past it sending up a blank file, cheers

11 Oct 2011, 9:55 AM
#3318
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

sash:

Thanks for the reply, How do you get past it sending up a blank file, cheers

hmm
best bet, re-upload all the files incase 1 is corrupted
make sure folder for the file is "777"
then in the confuration mine is set like this

not sure if these will help, but here's the second half of settings lol


make sure you have run the install.sql after UNINSTALLING the previous version...

11 Oct 2011, 10:21 AM
#3319
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

well iv found out why mine is only getting 1700 items out ofr 17k items
its timing out after so long
iv had this problem before but cant remember how to fix it now :(

11 Oct 2011, 8:47 PM
#3320
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

new2u:

Set include zero quantity to false, show quantity to true, and default quantity to 0.

been having some issues although i have succesfully upgraded this module and my feed seems to be more acceptable to google im still getting an error for all 356 of my current items saying that avalability is unavailable and therefore my items are being rejected by google merchant centre, i was getting an average of one or two orders a day and now nothing :( not had a single online order for over 2 weeks now so i really need to find out how to get this working. ive read through about 25 pages and still nothing seems to solve my issue, im running zencart 1.3.8a if thats any help and i followed the steps in post number 3249 which helped alot. I no longer have any options listed under the old settings tab but the newly labeled "google base feeder" tab under configuration has the options i believe should be there and everything is setup as in the quotes above plus the needed information that was the same in the previous version. any ideas what i can try??