There are some situations where you don’t want to include the sale prices for products – for example where legal, or contractual restrictions mean that you can only advertise the products at full price.

The standard behaviour of the WooCommerce Product Feed plugin is to include both the regular price, and sale price – however with a small filter you can exclude the sale  price from being sent. Just drop the snippet below into your theme’s functions.php file – or a Functionality Plugin.

function lw_remove_sale_price($item) {
    return $item;
add_filter( 'woocommerce_gpf_feed_item', 'lw_remove_sale_price' );

This entry was posted in .
Bookmark the permalink.