How to Bulk Increase WooCommerce Prices Across the Site

Do you have the need to increase your WooCommerce prices across the entire product range? A possible scenario that you may face is moving from plus postage to free postage or from free postage to plus postage. As any store owner knows, there’s no such thing as a free meal, and this also applies to postage costs. To offer “Free” postage you normally include the cost of postage into the product price, allowing the sell price to absorb delivery costs. But imagine having to price dozens, hundreds or even thousands of products. Such a task would take hours to complete, but thanks to this very simple snippet, you can increase (or decrease) the prices with just a few lines of code in your functions file.

Copy the below code to the functions.php file of your child theme, custom functions plugin or site specific plugin.

/*
** Snippet increase prices across entire website
** Author John Cook
** https://wcsuccessacademy.com/?p577
** Tested with WooCommerce 3.8.1
*/

add_filter( 'woocommerce_product_get_price', 'wc_success_academy_increase_price', 10, 2 );

function wc_success_academy_increase_price( $price, $product ){

return $price + 6; // + 6 is the value to increase the price by. To decrease by 6 use - 6

}

That’s it. Just a few small lines of code and you can increase your prices across the board. You can further expand on the code to make it apply to specific categories only or apply a different price for each category on your site.

Important: This function will not change the price displayed against the product in admin. Old prices will be displayed until manually updated, but prices the customer sees and pays will be changed.

0 0 vote
Article Rating
Written by John Cook
I've been using WordPress for over 6 years and Woocommerce for over 4 years. In that time I have explored the depths of customizations and helped many online retailers grow and expand their business using the Woocommerce selling platform. My aim here is to help enable Woo users around the globe get even more out of their e-commerce platform of choice.