google base...what now?

i’ve used google base befor on another cart and am wondering what i have to do on this cart as items dont seem to be showing up on froogle.



I have done the settings , host, login, password.



So now what. Dont i have to give the file a name for upload. when i used it befor i had to give the file a name so google would distinguish it from the others feeds i might be sending it.



How do i initiate the upload, is there a setting somewhere, ie "click here to upload ".?



any pointer appriciated.

In your google base account you can do a manual upload or you can specify a location for it to automatically read on a scheduled basis

You can do either a manual upload or go to the Google Merchant Center (Merchant Center - Google for Retail). Once you login you can go to Settings and then FTP.



You can setup FTP Username and Password. Once you do that, you put those settings in CS-Cart under Administration | Settings | Google base.



Hope that helps.



Adam

running 2.0.11



now working (how i did it)



1.did the admin/settings/googlebase



2. whent into google base and set up new feed called cscart.csv



3. went into admin/export/google and changed the filename to cscart.csv



4. clicked export. (which gave me the file but also sent it to google ).



5. checked google data feeds and it was processing.



Came down this morning and items are on there.

[quote name=‘mrfoameruk’]running 2.0.11



now working (how i did it)



1.did the admin/settings/googlebase



2. whent into google base and set up new feed called cscart.csv



3. went into admin/export/google and changed the filename to cscart.csv



4. clicked export. (which gave me the file but also sent it to google ).



5. checked google data feeds and it was processing.



Came down this morning and items are on there.[/QUOTE]



Thank-you this really helped… the manual doesn’t make this clear at all.

Do you know if cs-cart can be set to upload every X days? via cron?





You say that it gave you the file… how? I didn’t receive the file, it just said it was uploading to google.

Does the file name have to match the feedname? Because it appears that cs-cart doesn’t save my filename.

[quote name=‘RSW’]Thank-you this really helped… the manual doesn’t make this clear at all.

Do you know if cs-cart can be set to upload every X days? via cron?





You say that it gave you the file… how? I didn’t receive the file, it just said it was uploading to google.

Does the file name have to match the feedname? Because it appears that cs-cart doesn’t save my filename.[/QUOTE]

You can find the file in /var/exim.



There is currently no way to automate the Google Base export - they really should make this part of the data feeds which provides this capability.



Bob

thanks… data feeds is what I was looking at as well.



I also found the KB article:

[url]CS-Cart Documentation — CS-Cart 4.15.x documentation

which seems to be pretty good.

[quote name=‘jobosales’]You can find the file in /var/exim.



There is currently no way to automate the Google Base export - they really should make this part of the data feeds which provides this capability.



Bob[/QUOTE]



You can easily automate this task by adding a controller into addons/my_changes/controllers/admin/auth.post.php that invokes the correct page or function. The scheme is something like this (addins/my_changes/controllers/admin/auth.post.php):


if( $mode == 'login' && empty($_COOKIES['google_base_upload']) || (TIME > $_COOKIES['google_base_upload']) ) {
/* make an ajax request to the desired page or call the appropriate function(s) to do the work */
$frequency_to_send = TIME + (3 * SECONDS_IN_DAY); // for 3 days
set_cookie('google_base_upload', $freqency_to_send, TIME + (7 * SECONDS_IN_DAY) ); // expires after 7 days
}
return array(CONTROLLER_STATUS_OK);

[quote name=‘tbirnseth’]You can easily automate this task by adding a controller into addons/my_changes/controllers/admin/auth.post.php that invokes the correct page or function. The scheme is something like this (addins/my_changes/controllers/admin/auth.post.php):


if( $mode == 'login' && empty($_COOKIES['google_base_upload']) || (TIME > $_COOKIES['google_base_upload']) ) {
/* make an ajax request to the desired page or call the appropriate function(s) to do the work */
$frequency_to_send = TIME + (3 * SECONDS_IN_DAY); // for 3 days
set_cookie('google_base_upload', $freqency_to_send, TIME + (7 * SECONDS_IN_DAY) ); // expires after 7 days
}
return array(CONTROLLER_STATUS_OK);
[/QUOTE]

Thanks for the suggestion - I may give it a try.



They should still add this to the basic cart. There is hope as they have integrated the data feeds and the new currency update with CRON. Perhaps they will do this elsewhere when it makes sense.



Bob

[quote name=‘jobosales’]Thanks for the suggestion - I may give it a try.



They should still add this to the basic cart. There is hope as they have integrated the data feeds and the new currency update with CRON. Perhaps they will do this elsewhere when it makes sense.



Bob[/QUOTE]



Cron is really only valid on a Linux server and also makes dependencies outside of the cart system. I’ve had pretty good luck with doing this in auth.post.php. It’s a second or two hit upon admin login. It also provides the flexibility to address many areas. In my environments I do:

  • sitemap.xml - no need to remember to flush and regenerate a cache
  • Upgrades for the addons I supply
  • Other security and authentication checks.



    Has worked out pretty well.

any chance you can give a example… it sounds like a workable solution.

I thought I did. See the code segment above.

Sorry,

I missed it. somehow being logged out.



I will give it a try, thanks.