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.

Picture2 23


Picture4 10

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:

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

<item date="2024-07-16 16:48:06">

will be outputted in your feed as:

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 9.0.0 and WordPress 6.5.4