WPprodigy / woocommerce-product-fees

Add additional fees at checkout based on products that are in the cart.
https://wordpress.org/plugins/woocommerce-product-fees/
Other
26 stars 19 forks source link

Feature: Remove fees if local pickup (shipping) is selected #13

Closed crowerks closed 8 years ago

crowerks commented 8 years ago

I am using product fees to add in additional shipping/handling fees per variation. I need these to not be added if someone selects "Local Pickup". Seems like a basic task - just don't know the best method to accomplish. An additional concern is "Free Shipping" - system still needs to calc and add fees if free shipping is added by a coupon. Thanks in advance!

WPprodigy commented 8 years ago

You should be able to hook into this: https://github.com/WPprodigy/woocommerce-product-fees/blob/master/classes/class-woocommerce-product-fees.php#L74, and conditionally remove the fees if local pickup is selected.

crowerks commented 8 years ago

Excellent, thanks! I'll give that a go - thanks again for the direction.