Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Automatically generate google product feed

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 08-14-2018, 09:27 AM
 
tagteam tagteam is offline
 

eXpert
  
Join Date: Jan 2012
Posts: 227
 

Default 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.
__________________
Version 4.7.8
Reply With Quote
  #2  
Old 08-15-2018, 04:37 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Automatically generate google product feed

Could you please specify what X-Cart version this is in reference to?
Thanks!
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 08-15-2018, 06:23 AM
 
tagteam tagteam is offline
 

eXpert
  
Join Date: Jan 2012
Posts: 227
 

Default Re: Automatically generate google product feed

we are on 4.7.8
__________________
Version 4.7.8
Reply With Quote
  #4  
Old 08-17-2018, 03:33 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Automatically generate google product feed

I'm afraid it has to be custom coded.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 08-17-2018, 04:55 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 08-17-2018, 11:44 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,088
 

Default 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
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #7  
Old 04-24-2019, 09:40 AM
 
snowman99 snowman99 is offline
 

Member
  
Join Date: Feb 2007
Posts: 21
 

Default 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.
__________________
X-cart Ver: 4.7.10 (Linux/Apache)
XCartMods Ultra Template
BCSE Authorize DPM Module
CDSEO 2.2.0
CDSEO Pro Admin
Reply With Quote
  #8  
Old 04-26-2019, 06:26 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,088
 

Default 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
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #9  
Old 03-13-2020, 10:28 AM
 
snowman99 snowman99 is offline
 

Member
  
Join Date: Feb 2007
Posts: 21
 

Default 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?
__________________
X-cart Ver: 4.7.10 (Linux/Apache)
XCartMods Ultra Template
BCSE Authorize DPM Module
CDSEO 2.2.0
CDSEO Pro Admin
Reply With Quote
  #10  
Old 03-13-2020, 10:28 AM
 
snowman99 snowman99 is offline
 

Member
  
Join Date: Feb 2007
Posts: 21
 

Default 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
__________________
X-cart Ver: 4.7.10 (Linux/Apache)
XCartMods Ultra Template
BCSE Authorize DPM Module
CDSEO 2.2.0
CDSEO Pro Admin
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:48 PM.

   

 
X-Cart forums © 2001-2020