PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Woocs not compatible with "Apply minimum order rule before coupon discount"

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi,

From Woocommerce version 4.1 onwards, for free shipping based on minimum amount, we can now choose to calculate the amount before coupon discount.

Please see screenshot below:

However, this function is not working when WOOCS is enabled.

Would you please check? Thank you so much.

Regards

Manhua

 

 

Hello  Manhua

Please  drop  me  wp-admin  access - https://c2n.me/43SC6rb.png ->https://c2n.me/42BAoj4.png

Describe in more detail what I must do to get this error

Hi Pablo,

I have dropped you the access.

  1. At Woocommerce>Setting>Shipping, Set free shipping with minimum order amount $75. Tick"Apply minimum order rule before coupon discount"
  2. Buy this bundle which is above $75: https://suppglow.com/product/yujia-niacin-brightening-bundle-4-items
  3. Apply coupon"20OFF" at cart.

By right, there should still be free shipping because it is above $75 before applying coupon. But free shipping disappears after applying coupon.

Hope it is clear, thank you!

Hello

Try  in  file -\wp-content\plugins\woocommerce-currency-switcher\classes\woocs_after_33.php - change  code - https://c2n.me/497uu2L.png - to - https://c2n.me/497uxWR.png

if ( 'no' === $this_shipping->ignore_discounts ) {
$total = $total - WC()->cart->get_discount_total();
}
if ('incl' === $this->get_cart_tax_mode(WC()->cart)) {
$total = round($total - WC()->cart->get_discount_tax() , wc_get_price_decimals());
} else {
$total = round($total , wc_get_price_decimals());
}

please  do a test

Hi Pablo,

After changing the code, the website is now having a critical error.

Can you please advise? Thank you!

Regards
Manhua

Hello Manhua

then you inserted this code incorrectly

Drop   me  FTP access please - https://c2n.me/43SC6rb.png ->https://c2n.me/42BAoj4.png

Hi Pablo,

I have dropped you the access.
I reinstalled the plugin.

Thank you.

Regards
Manhua

Hello Manhua

Please  do test

Hi Pablo,

It seems to work now.

May I know is it the same code?

if ( 'no' === $this_shipping->ignore_discounts ) {
$total = $total - WC()->cart->get_discount_total();
}
if ('incl' === $this->get_cart_tax_mode(WC()->cart)) {
$total = round($total - WC()->cart->get_discount_tax() , wc_get_price_decimals());
} else {
$total = round($total , wc_get_price_decimals());
}

 

Regards
Manhua

Hi Pablo,

Please ignore me, I figured out.

Thank you so much!

Regards
Manhua

Hello Manhua

Ok!  Welcome;)