alovio store

WooCommerce / Alovio Checkout Fields

Fees

Let any checkout field add a fee to the WooCommerce order total — fixed, per-unit or a percentage of the subtotal, updating live on both checkouts.

Any field can add a fee to the order — gift wrapping, priority processing, a rush option, a handling surcharge. Fees are part of the free plugin.

The three pricing modes

Open a field’s Fee tab in the builder, set an amount and pick a mode:

ModeHow it chargesExample
Fixed amountA flat chargeGift wrapping, +$8.00
Per unitAmount × the field’s value (Number fields)Extra pallets × $15
% of subtotalA percentage of the cart subtotalPriority processing, +10%

Leave the amount at 0 for no fee — most fields don’t charge anything.

A price per option

Dropdowns and radio groups don’t have to share one amount. Every choice can carry its own fee:

ChoiceFee
Standard (2–4 days)
Express (next day)+$9.50
Before 10am+$18.00

The amount shows next to the choice at checkout, so shoppers compare before they pick. A choice with no fee of its own falls back to the field’s amount, which means you can price two options and leave the rest free. Option fees still run through the field’s pricing mode, so “10% Express / 20% Overnight” works exactly like flat amounts.

When a fee applies

A field charges its fee only when both are true:

  1. The field is visible — if conditional logic hides it, its fee can never apply. A “Gift wrapping” fee inside a gift-only section is impossible to charge on a non-gift order.
  2. The field is engaged — the checkbox is ticked, an option is selected, or a value is entered. An empty optional field charges nothing.

What the customer sees

Every charging field gets its own row in the order review, named after the field, and the total updates live the moment a priced field changes — no page reload, on both the classic and the Block checkout:

Subtotal$80.00
Shipping speed: Express (next day)$9.50
Gift wrapping$6.00
Total$95.50

A field priced through its options names the chosen option too, so a customer can see which choice cost what — not a lump sum they have to reverse-engineer.

Prefer a single combined line? Return false from clcf_itemized_fees and every fee collapses into one row again, whose label the clcf_fee_label filter controls.

When the order is placed, each fee is a standard WooCommerce fee on the order — it flows into totals, refunds, reports and invoices like any other fee.

Composing fees with conditions

Because the fee belongs to the field, everything conditional logic can do applies to pricing too:

  • a card surcharge only when a specific payment method is selected,
  • a remote-area handling fee only for certain countries,
  • a small-order surcharge only when the cart subtotal is under a threshold.

One rule on the field, no code.

Try it live

The WooCommerce demo checkout has a fixed gift-wrapping fee and a percentage priority-processing fee — tick them and watch the total move. For a walkthrough, read How to add a fee to the WooCommerce checkout.

Next