Sell By Weight for specific categories

Estimated reading: 1 minute 375 views

In this article, we’re going to show you how you can sell your products by Weight for specific categories on WooCommerce price per kg.

We are going to change the price section by using filter hooks. You can use this code in your theme/child theme functions.php file or also use the Code Snippets plugin.

Please add your preferred category slug name in the code instead of 'accessories', 'backpacks':

Note: This change will be visible in our product table also.

Share this Doc

Sell By Weight for specific categories

Or copy link

CONTENTS