Zen Cart Logo
Forums / All Other Contributions/Addons / Google Product Search Feeder II [Support Thread]

Google Product Search Feeder II [Support Thread]

Views: 18,151

Results 41 to 60 of 94
8 Mar 2024, 1:57 PM
#41
fenomenal7 avatar

fenomenal7

New Zenner

Join Date:
Mar 2024
Location:
Lufkin, Tx
Posts:
41
Plugin Contributions:
0

Google Product Search Feeder II [Support Thread]

lat9:

I'm guessing that the 404 error (File Not Found) is because you didn't copy the root-directory file gpsf_main_controller.php. That file should reside in the same directory as the site's ipn_main_handler.php file.

Yes!!! That worked! Thank you so much :)

Now I will go to a thread for admin log in and admin page to get that issue fixed on my /new subdirectory.

18 Mar 2024, 6:18 AM
#42
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

Thanks for this. I'm all uploaded, it's all visible in my admin. However, I'm totally confused about the cron job bit... I have no idea what it means, or where I'm supposed to paste it. Googling has confused me more, so some guidance would be helpful.

I'm on 1.5.8, and I use CPanel for my server. :-)

18 Mar 2024, 10:58 AM
#43
torvista avatar

torvista

Totally Zenned

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

Re: Google Product Search Feeder II [Support Thread]

>I'm totally confused about the cron job bit

You configure Merchant Center to fetch the file you have created at regular intervals.

To auto-create that file at regular intervals you add a Cron job on your server which is just a command that runs at some specified time. It will be in your cPanel options.

6 Apr 2024, 2:36 PM
#44
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

v1.0.2 of Google Product Search Feeder II is available for download: https://www.zen-cart.com/downloads.php?do=file&id=2379

This release contains changes associated with these GitHub issues:

#14: Correct PHP Fatal error when a product's availability date is in the future.
#37: Correct performance issue on sites with a large number of categories.

13 Apr 2024, 3:18 AM
#45
fenomenal7 avatar

fenomenal7

New Zenner

Join Date:
Mar 2024
Location:
Lufkin, Tx
Posts:
41
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

Greetings!

I would like to remove the shipping label field source from my GPSF because it's stopping me from being able to utilize the shipping I have set up in my google merchant account, as I want them to show the shipping amount from USPS from their side. Is it possible for me to remove the code for that?

If not, how do I set up my GPSF to show the shipping amount reflected on my website from the USPS shipping module? (https://www.cedargroveherbs.com) because when I select shipping method by weight and say for instance the product weights .4 lbs, it will say shipping is like 4 cents on google merchant.

Attachment 20575

16 Apr 2024, 1:56 PM
#46
fenomenal7 avatar

fenomenal7

New Zenner

Join Date:
Mar 2024
Location:
Lufkin, Tx
Posts:
41
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

I figured it out.

20 May 2024, 6:38 PM
#47
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Google Product Search Feeder II [Support Thread]

Seeing the following errors being logged using gpsf v1.02 and ZC 2.0.0

[20-May-2024 19:32:52 Europe/London] Request URI: /gpsf_main_controller.php?key=&feed=fy_un_tp&limit=0&offset=0&currency_code=GBP&language=en, IP address: xx.xxx.xxx.xx, Language id 1
#0 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(717): zen_debug_error_handler()
#1 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(291): gpsfFeedGenerator->getCategoryInfo()
#2 /home/nclocks/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed()
--> PHP Warning: Undefined array key 0 in /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php on line 717.

[20-May-2024 19:32:52 Europe/London] PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php:717
Stack trace:
#0 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(717): array_reverse(NULL)
#1 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(291): gpsfFeedGenerator->getCategoryInfo('1049')
#2 /home/nclocks/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed(Resource id #496, '', '')
#3 {main}
thrown in /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php on line 717

[20-May-2024 19:32:52 Europe/London] Request URI: /gpsf_main_controller.php?key=&feed=fy_un_tp&limit=0&offset=0&currency_code=GBP&language=en, IP address: xx.xxx.xxx.xx
--> PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php:717
Stack trace:
#0 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(717): array_reverse(NULL)
#1 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(291): gpsfFeedGenerator->getCategoryInfo('1049')
#2 /home/nclocks/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed(Resource id #496, '', '')
#3 {main}
thrown in /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php on line 717.

[20-May-2024 19:32:52 Europe/London] Request URI: /gpsf_main_controller.php?key=&feed=fy_un_tp&limit=0&offset=0&currency_code=GBP&language=en, IP address: xx.xxx.xxx.xx
--> PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php:717
Stack trace:
#0 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(717): array_reverse(NULL)
#1 /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php(291): gpsfFeedGenerator->getCategoryInfo('1049')
#2 /home/nclocks/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed(Resource id #496, '', '')
#3 {main}
thrown in /home/nclocks/public_html/includes/classes/gpsfFeedGenerator.php on line 717.

Is this a known issue?

20 May 2024, 6:54 PM
#48
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

Haven't seen that before, but it sure "sounds like" the master_categories_id of 1049 doesn't exist in the categories table.

20 May 2024, 8:39 PM
#49
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Google Product Search Feeder II [Support Thread]

Oddly, there is no category id 1049 in the database, but there is a product with master_categories_id set as 1049.

I have confirmed that ZC admin reports master_categories_id 1049 as invalid.

Do you have any idea why ZC 1.5.7c never picked this up during feed generation but ZC 2.0.0 does?

20 May 2024, 10:09 PM
#50
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

strelitzia:

Oddly, there is no category id 1049 in the database, but there is a product with master_categories_id set as 1049.

I have confirmed that ZC admin reports master_categories_id 1049 as invalid.

Do you have any idea why ZC 1.5.7c never picked this up during feed generation but ZC 2.0.0 does?
No clue, but you can backtrace the code prior to includes/classes/gpsfFeedGenerator.php(717) to see the function that's called to determine a product's category tree and compare between zc157c and zc200 to see what change(s) might have been made.

21 Jun 2024, 3:36 PM
#51
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

v1.0.3 of Google Product Search Feeder II is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2379

This release corrects issue #39 (Correct PHP Warnings when a product is missing some of its 'joined' database records)

19 Jul 2024, 3:48 PM
#52
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

v1.0.4 of Google Product Search Feed II is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2379

This release contains changes associated with the following GitHub issues:

#40: Multiple GPSF extensions result in a PHP Fatal error.
#41: getProductsTitle extension method is never called.
#42: zc_plugins can't provide GPSF extensions.

26 Jul 2024, 6:39 PM
#53
delia avatar

delia

Totally Zenned

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

Re: Google Product Search Feeder II [Support Thread]

thanks so much for updating this! I did one of the updates years ago and know well the issues!

But a question. Turns out google is a bit picky about weight and it requires a shipping weight. Not a product weight. The mod lists it as product weight. I've asked for clarification to see if they want both product and shipping weights. I hope not.

So it looks like this line in the gpsfFeedGenerator.php file:

if (GPSF_WEIGHT === 'true' && $product['products_weight'] > 0) {
            $this->xmlWriter->writeElement('g:product_weight', $product['products_weight'] . ' ' . GPSF_UNITS);
        }

If you change the g:product_weight to g:shipping_weight, that will fix the feed assuming they don't have to have both weights. If it does, duplicating that line with the change in one and not the other will suffice.

My main purpose here to find out who else has run into this and and they have fixed it to google's satisfaction.

26 Jul 2024, 8:15 PM
#54
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

I just changed g:product_weight to g:shipping_weight and it seems to have been happy

4 Aug 2024, 12:54 AM
#56
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

lat9:

From the Google documentation: https://support.google.com/merchants/answer/6324503?hl=en&ref_topic=6324338&sjid=5456576798720655404-NA

... it looks like the g:shipping_weight is needed if you're specifying the shipping costs via the Merchant Center.
See this GitHub issue for change-tracking: https://github.com/lat9/gpsf/issues/45

21 Nov 2024, 2:58 AM
#57
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
319
Plugin Contributions:
4

Re: Google Product Search Feeder II [Support Thread]

i seem to have ran into a hiccup, currently using v1.00 and all was running fine until a few days ago when i got a google protection from lost products alert, seems out of the blue my gpsf has started an arbitrary limit of 2725 maximum products. Symptom is max products field set to 0 for unlimited, and i get the following displayed on my gpsf2 feed generation page upon visiting it...

Max memory (memory_limit):4800M
Maximum input time:360
Max execution time (in seconds):12000
Maximum number of products in feed:2,725

i have tried to upgrade to v 1.3 but that resulted in a database and file restore due to an undefined GPSF_LANGUAGE which i tried to define as en only if not already defined to get the error that it was already defined :/

today i find that i have had another error message too for an undefined GPSF_LANGUAGE and had to define it as 'en' to be able to generate a feed oddly too...

[21-Nov-2024 00:00:03 UTC] PHP Fatal error: Uncaught Error: Undefined constant "GPSF_LANGUAGE" in /gpsf_main_controller.php:76
Stack trace:
#0 {main}
thrown in /gpsf_main_controller.php on line 76

[21-Nov-2024 00:00:03 UTC] Request URI: /gpsf_main_controller.php?feed=fy_un_tp&key=keyremoved, IP address: removed
--> PHP Fatal error: Uncaught Error: Undefined constant "GPSF_LANGUAGE" in /gpsf_main_controller.php:76
Stack trace:
#0 {main}
thrown in /gpsf_main_controller.php on line 76.

my small edit to skip an image for providing url if already a url is working fine still, otherwise it is a standard set of files. Anything that would cause the limit to kick in outside of the max product setting perhaps? i thought along the lines of file size limit which gzip did not resolve (if it was the cause) and also ruled out a hiccup with perhaps pc parts imported via ep4 having similar but not identical names by disabling the "remove duplicates from feed" option, but it still stayed at the same figure of items

21 Nov 2024, 1:01 PM
#58
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

GPSF_LANGUAGE is removed when you upgrade to a current version of GPSF. It appears that you forgot to copy the upgraded version of /gpsf_main_controller.php -- that goes into the root of your site's file system.

21 Nov 2024, 2:36 PM
#59
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
319
Plugin Contributions:
4

Re: Google Product Search Feeder II [Support Thread]

lat9:

GPSF_LANGUAGE is removed when you upgrade to a current version of GPSF. It appears that you forgot to copy the upgraded version of /gpsf_main_controller.php -- that goes into the root of your site's file system.

I thought I had missed a file but after triple checking I had no choice but to revert to last know good setup. Still limited at 2725 feed items and just discovered that Google is seeing alot of my urls as soft 404's:yuck:

13 Dec 2024, 12:28 AM
#60
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

Hello All.
I installed the latest version on zc 1.5.8 on PHP Version: 8.2.26. Everything seems to be working just fine, but true to form... google has a problem with the data.

In the xml feed file each product's weight and shipping weight are represented accurately. This data also appears on the product details page in google merchant center. But on the dashboard it's showing that all 100 products are missing the shipping_weight.

Attachment 20820

Attachment 20821

Every item in the feed file contains both of the following
<g: product_weight>3 lb</g: product_weight>
<g:shipping_weight>3 lb</g:shipping_weight>

I am seeing <![CDATA in the g:title, g:brand, g: product_type and g:description. Not sure if that should be there or not.

Thanks a bunch,
John