1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)

Add A Handling Fee In WooCommerce

If you want to add a Handling Fee in WooCommerce you now have to add the code below. You would then add this to your functions.php file in your child theme in WordPress. Save the file then you now have a $5 handling fee! 🙂

add_action( 'woocommerce_cart_calculate_fees','endo_handling_fee' );
function endo_handling_fee() {
     global $woocommerce;
     if ( is_admin() && ! defined( 'DOING_AJAX' ) )
          return;
     $fee = 5.00;
     $woocommerce->cart->add_fee( 'Handling', $fee, true, 'standard' );
}
Add A Handling Fee In WooCommerce was last modified: December 7th, 2015 by Maximus Mccullough

Tip: Click on images to make them larger. If you find anything wrong on this page or need further assistance please comment below or contact me. 🙂

Please like, share and subscribe.

Advanced Programming Made Easy

I hope you enjoyed the article. If I was able to help you please consider a tip for the content.

One Time Tip

more tips

Reoccuring Tips

Tips

Cool People Share:

2 Comments

  • Kirsten says:

    Thanks! But what if I only want handling fee on Physical Products and not Digital Products. I have physical shipping class that calculates shipping and digital that is free shipping and no tax …

    Thanks!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.