Version 3.6.1: Dynamic Sitemaps

In FoxyShop version 3.6.1, the product sitemap is now a dynamic url rather than a hard-coded xml file. This means no more fighting with file permissions and the sitemap won’t be rewritten every time a product is saved. This will result in a performance boost. If you’d like to customize the url slug, just define the constant FOXYSHOP_PRODUCT_SITEMAP_SLUG in wp-config.php. If you were actively using the old sitemap-products.xml, the file won’t be deleted–but it won’t be updated either so you’ll want to update your Google Webmaster Tools and any other locations that were referencing it. If you really need to, you could write an .htaccess rule so that old requests route to the new location. I also fixed a namespace error in the xml declaration – apparently Google adjusted their sitemap requirements and the old namespace url was invalid.

There’s also a couple of new features for you intrepid 0.7.2 users. on the settings page you can now automatically pull your shipping category list from FoxyCart with the API. You can also update your receipt template with a new tool on the FoxyShop tools page.

jQuery has been updated to the new 1.7 since everything looks good with the new version. And then there’s the usual smattering of small CSS tweaks and code optimizations. Everyone is encouraged to upgrade!

2 Responses to Version 3.6.1: Dynamic Sitemaps

  1. jordan says:

    On my entire site I am running Google (XML) Sitemaps Generator for WordPress. I have been trying to find a way to get products from the shop page into the sitemap which is located at /sitemap.xml on my page.

    I’m not an experienced developer but after reading for a few hours it seems that since both are wordpress applications they will not interact with one another. Therefore anything on my “shop” page will not be included in the sitemap.xml file created by the Google XML sitemap application.

    Which is ok. Then I found this dynamic sitemaps for FoxyShop post and I figured that it would be best to alert Google that there is another sitemap on my website, which by FoxyShop is defaulted to /product-sitemap/

    However, when trying to add this to Google Webmaster Tools, it gives me an error.

    “General HTTP error: 404 not found
    HTTP Error: 404

    We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.”

    Google is not indexing my /shop products and I figured that adding the new sitemap would help fix it.

    Any thoughts?

    thanks.

    side note, we’re hoping to go live mid-april. i’ll be sure to update you when we do!

  2. David says:

    Just to follow up on this, I worked with Jordan on this and it seems to be a rare thing and a quirky way that the WordPress query works sometimes. I’m making an adjustment to the plugin to correct it and will release that with 4.1.3.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>