X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing and adding new features (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Automatically generate google product feed (https://forum.x-cart.com/showthread.php?t=76475)

tagteam 08-14-2018 09:27 AM

Automatically generate google product feed
 
Does anyone know a code snippet in php or a module that can run the google product feed output automatically? I have to log in once a week to generate the file, I would like it to just automatically generate once a week from a cron job.

qualiteam 08-15-2018 04:37 AM

Re: Automatically generate google product feed
 
Could you please specify what X-Cart version this is in reference to?
Thanks!

tagteam 08-15-2018 06:23 AM

Re: Automatically generate google product feed
 
we are on 4.7.8

qualiteam 08-17-2018 03:33 AM

Re: Automatically generate google product feed
 
I'm afraid it has to be custom coded.

cflsystems 08-17-2018 04:55 AM

Re: Automatically generate google product feed
 
Quote:

Originally Posted by tagteam
Does anyone know a code snippet in php or a module that can run the google product feed output automatically? I have to log in once a week to generate the file, I would like it to just automatically generate once a week from a cron job.


Never existed in XC4. It has to be custom coded and tied to the XC internal cron. Then you can run it from the server.
If you need professional help with this just let me know.

BCSE 08-17-2018 11:44 AM

Re: Automatically generate google product feed
 
This module will do the trick. We maintain their code now.

https://www.bcsengineering.com/store/froogle-google-base-x-cart-export-feed.html

We have countless customers using it.

Thanks,

Carrie

snowman99 04-24-2019 09:40 AM

Re: Automatically generate google product feed
 
Does your Froogle module support product title variants with additional attributes such as color and size as per the Google Product Data Spec.

From Google, regarding the Title attribute: For variants, Include a distinguishing feature such as color or size.

We have added Extrafields for Size and Color. Now we need to make sure those attributes are added to the product title for variants.

BCSE 04-26-2019 06:26 AM

Re: Automatically generate google product feed
 
Quote:

Originally Posted by snowman99
Does your Froogle module support product title variants with additional attributes such as color and size as per the Google Product Data Spec.

From Google, regarding the Title attribute: For variants, Include a distinguishing feature such as color or size.

We have added Extrafields for Size and Color. Now we need to make sure those attributes are added to the product title for variants.


The tool is flexible enough for you to adjust the default title to include other fields in the product database. We can help you implement this if needed. Drop us an email if you'd like a quote.

thanks,

Carrie

snowman99 03-13-2020 10:28 AM

Re: Automatically generate google product feed
 
Hello,

I found this message online from Xcart regarding setting up the cron_tasks array.

However, at the end Ildar Amankulov states:

Meanwhile, the feature is added in X-Cart 4.7.10

What does this mean? What exact feature is added to 4.7.10?


Also, does anyone have code that does this and is willing to share?

snowman99 03-13-2020 10:28 AM

Re: Automatically generate google product feed
 
Sorry,

The possible way to go is

1)Modify the file modules/Froogle/config.php and add a new cron task

$cron_tasks[] = array(
'function' => 'func_froogle_cron_update',
'include' => $xcart_dir . '/modules/Froogle/func.php',
);
2)Add the function func_froogle_cron_update

The function should include the file modules/Froogle/froogle.php and emulate a regular POST request to create a new feed file.

3) Setup a new cron job according to https://help.x-cart.com/index.php?title=X-Cart:Cron.php_-_Script_for_Periodic_Tasks

Meanwhile, the feature is added in X-Cart 4.7.10


All times are GMT -8. The time now is 09:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.