V
V
V0VA2022-03-10 13:12:33
WordPress
V0VA, 2022-03-10 13:12:33

How to change the algorithm for applying a coupon when calculating woocommerce free shipping?

Good afternoon! The site applies 3 thresholds for free shipping:

  • Moscow (Free delivery for orders over 3000),
  • SPb from 5000,
  • Russia from 8000

The plugin "WooCommerce Advanced Free Shipping" is used for this.
6229ceba120ce744082265.png
Everything seems to be fine, but I can't change the algorithm for calculating Free Shipping.
For example, the buyer made an order from St. Petersburg for 5500 rubles.
The system considers him free shipping.
It applies a discount coupon, let's say 20%
Amount payable falls below the threshold of 5000, but shipping remains Free.
It seems that in the plugin settings it is possible to set the use of a coupon as a parameter, but in practice the value of coupons is different and in the settings there is no way to set a condition so that the value "Total" and not "Subtotal" is considered the threshold.
6229cee8bd4c8967570112.png
Can you suggest a hook for wordpress, or a plugin with similar settings, so that free shipping gets up in 3 cases:
1st order from Moscow >= 3000
2nd from St. Petersburg >= 5000 3rd order
over 8000 rubles
If a coupon is used, then this calculation should be made from "Total" and not from "Subtotal"

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question