woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.43k stars 10.77k forks source link

[Enhancement]: Exclude Virtual Product to be counted towards Free Shipping total required #52652

Open namiokuzono opened 1 week ago

namiokuzono commented 1 week ago

Describe the solution you'd like

Virtual/digital products should not be counted towards the Free Shipping order total.

To Recreate

Checking out

Set up Shipping:

Set up Products:

When you put the virtual product($100 worth), then this is counted towards free shipping:

Block Checkout https://cln.sh/xWGBhtp8 Image link: https://cln.sh/xWGBhtp8

Classic Checkout https://cln.sh/F1MllBDK Image link: https://cln.sh/F1MllBDK

Describe alternatives you've considered

As discussed in this forum: https://wordpress.org/support/topic/exclude-virtual-product-cost-from-minimum-free-shipping-cost/

Additional context

I was originally looking into Gift Cards behavior and noticed this is coming from the core.

Internal ref: Please see this thread https://github.com/woocommerce/woocommerce-gift-cards/issues/873

namiokuzono commented 1 week ago

I'm finding out that once you set up Table Rate Shipping with "Free Shipping" condition based on price like this:

https://cln.sh/QRRMgFVd Image link: https://cln.sh/QRRMgFVd

It actually only counts physical products while excluding digital products and gift card products while checking out.

https://cln.sh/q7hTqQvG Image link: https://cln.sh/q7hTqQvG