WooCommerce Products XML Feed


WooCommerce Products XML Feeds lets you create all your shop’s products XML file.

XML is fully customizable, with options to set XML header, item and footer templates.

When creating item template, we advise to use Booster’s products shortcodes.

You can set result XML file path and name.

File can be created manually, or automatically by selected update rate (every minute, hourly, twice daily, daily and weekly).

Additionally you can create multiple XML files with different templates, path, name and update rate.


If you need to use CDATA in feed, you may need to replace symbols with HTML codes, e.g.:

This will be outputted in your feed something like:

<![CDATA[Some Product Title]]>

If you need to include shortcode in tags double quotes, use:

This will be outputted in your feed something like:

<item id="123"></item>

HTML entities are replaced in all (header, footer, item) fields, so:

<item date="2021-06-18 07:42:45">

will be outputted in your feed as:

<item date="2018-09-04 12:42:57">
If you have some specific requirements, you can also create your custom shortcodes to be used in feeds. For example try putting this to your (child)
theme’s functions.php file:

add_shortcode( ‘alg_product_price_multiplied_by_stock’, ‘alg_product_price_multiplied_by_stock’ );<br />
if ( ! function_exists( ‘alg_product_price_multiplied_by_stock’ ) ) {<br />
    function alg_product_price_multiplied_by_stock( $atts ) {<br />
        $product_id = get_the_ID();<br />
        $product    = wc_get_product( $product_id );<br />
        return ( ! $product->is_in_stock() ? 0 : $product->get_price() * $product->get_stock_quantity() );<br />
    }<br />

Now you can use it in your feed like:

Accessible through:
  • WooCommerce > Settings > Booster > Products > Products XML Feeds
Tested on WooCommerce 5.3.0 and WordPress 5.7.2