How to charge extra fees based on last order

To apply custom fees based on a customer's last order, you can now utilize the "Last order spent" condition. This feature allows you to set fees based on the last order amount a customer has spent in your store.

The condition can be configured to apply fees according to criteria such as less than, greater than, equal to, less than or equal to, greater than or equal to, or not equal to a specified spend amount.

To set this up, navigate to Conditional Fee Rule > Dropdown > Purchase History , and select "Last order spent". This option gives you full control over when the fees will be applied based on the customer's last order history.

Admin: Configuring "Last order spent" in the Purchase History
Fees based on last order spent.

Conclusion:

Set up the "Last order spent" condition under Conditional Fee Rule to apply custom fees based on a customer's previous order amount, offering flexible control over fee application.


Example Scenario:

You want to charge a $15 handling fee for customers whose last order total was less than $200. No fee will be applied for customers whose last order was $200 or more.


Step-by-Step Guide:

Step 1: Access the "Conditional Fee Rule" and Set the Fee

  1. Log in to your WordPress dashboard and go to WooCommerce > Settings > Conditional Fee Rules.
  2. Click on Add New Fee Rule to create a new custom fee.
  3. Name the fee, for example, “Handling Fee for Low Orders”.
  4. Set the Fee Amount to $15.
  5. Under Condition Type, choose Purchase History.
  6. Select Last Order Spent and set the condition to less than $200.
  7. Click Save Changes to activate the rule.
Admin settings for last order spent

Step 2: Test the Fee on the Frontend

  1. As a customer whose last order was less than $200 ($169, as seen in the screenshot ), add products to the cart and proceed to checkout. The $15 handling fee should appear automatically.
Woocommerce Last Order less than $200
Cart with Extra Fees
  1. As a different customer whose last order was $200 or more, go through the checkout process and confirm that no fee is applied.
Woocommerce Last Order greater than $200
Cart with no Extra Fees added
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.