Jump to content

Any Way to Send Export & Sitemap on a Schedule?


Dirty Butter

Recommended Posts

Google is getting more and more critical of the freshness of our feed to them. I currently manually send a new feed and sitemap daily (unless I forget). They recently disabled a handful of items, because I had lowered the prices!

 

I'm beginning to hate Google's control over our business practices as much as I used to hate eBay's.

 

Is there a way to automate the creation of the feed and sitemap, so it could be done automatically periodically throughout the day? Bsmither had already helped me modify the products.export.inc.php file, so one click of the Google Export button within Admin sends a fresh feed.

 

Link to comment
Share on other sites

Depending on the code (needs admin login?), a routine can be placed in the file ini-custom.inc.php. That file is called every time ini.inc.php is called, which is every time a page request is made.

 

But you don't want a new file generated for every page request. (Adds a number of seconds to deliver the page.) Maybe for every:

* if stock levels are reported, every time someone successfully makes a purchase

* if file_exists and it's now 12 hours later, make new file

* any other trigger parameters

 

If your hosting package allows for it, set up a cron-job.

 

Or, if you have an .htaccess file in the FEED folder, that file can test for /FEED/plushgooglebase.txt, and if the URL contains that, rewrite the page request to the Export URL:

/admin.php?_g=products&node=export&page=1&per_page=5000&format=googlebase&node=export&access=XXX

which will export a dynamically generated file with that filename.

Link to comment
Share on other sites

I do have access to creating a cron job via cpanel, but I'm guessing as to what to do.

 

Do I use this section of maintenance.index.php as the basis of a script file? How do I name it as a script - with .js?

 <fieldset><legend>{$LANG.maintain.title_rebuild_misc}</legend>
	<div style="height: 20px;"><label for="sitemap">{$LANG.maintain.sitemap}</label><span><input type="checkbox" id="sitemap" name="sitemap" value="1" /></span></div>
  </fieldset>
	<div>
		<input type="hidden" name="previous-tab" id="previous-tab" value="rebuild" />
		<input type="submit" name="rebuild" value="{$LANG.common.submit}" />
	</div>
	<input type="hidden" name="token" value="{$SESSION_TOKEN}" />
  </form>
</div>

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...