• Plugins
  • Support
  • Blog
  • About
  • FAQ
Menu
  • Plugins
  • Support
  • Blog
  • About
  • FAQ
$0.00 0 Cart

Add Custom Fee Based on ACF Field

Plugin: WooCommerce Conditional Payments Pro

While the fee functionality of Conditional Payments Pro is designed to be used along with a payment method, it can be used for general custom fees as well. This is possible by selecting All payment methods for the fee so that it is always applied:

This combined with the Product Meta condition allows you to add custom fees very flexibly. In this example, we will:

  • Add Apply extra fee field for products using Advanced Custom Fields
  • Apply fee in the checkout when a product with the extra fee is in the cart

How to set it up

  1. Install Advanced Custom Fields
  2. Go to ACF > Fields Groups
  3. Click Add new and define the following field group:
  1. Now you can select Apply extra fee for appropriate products:
  1. Go to WooCommerce > Settings > Payments > Conditions and click Add ruleset
  2. Define the following ruleset:
    You can select from two meta keys. The one without the underscore is the right one when using ACF
  1. Click Save changes

With this ruleset, the $ 5 fee will be applied whenever a product marked with the fee is in the cart:

« Back to docs
« Back to plugin
30 DAY MONEY BACK GUARANTEE
+6000 HAPPY CUSTOMERS
SUPPORT FROM THE DEVELOPER

WP Trio / BitBot Oy
Flätbackantie 1, 04150 Sipoo
FINLAND
VAT ID: FI28269925

WP Trio

  • Support
  • Blog
  • About
  • FAQ
  • My account
  • Support
  • Blog
  • About
  • FAQ
  • My account

Plugins

  • Plugins
  • Docs
  • Plugins
  • Docs