/** * @snippet WooCommerce Disable Shipping Rates if Variation ID @ Cart * @how-to Get CustomizeWoo.com FREE * @sourcecode https://businessbloomer.com/?p=17436 * @author Rodolfo Melogli * @compatible WooCommerce 3.4.4 */ add_filter( 'woocommerce_package_rates', 'bbloomer_unset_woocommerce_shipping_methods_when_ids', 10 ,2 ); function bbloomer_unset_woocommerce_shipping_methods_when_ids ( $rates, $package ) { // loop through the cart foreach ( WC()->cart->get_cart() as $cart_item_key => $values ) { $_product = $values['data']; // if product variation id @ Cart, disable all but Local Pickup if( $_product->variation_id == 8741 ) { $local_pickup = $rates['local_pickup']; $rates = array(); $rates['local_pickup'] = $local_pickup; } } return $rates; }

Whilst you are welcome to visit our store at our usual opening hours, we can also deliver to Port Melbourne and its surrounding suburbs in a 5km radius.

Delivery is complimentary for any $100 (minimum) orders and includes every product sold at Decanters by the Bay e.g. from commercial to craft beers, wines, spirits, snacks, pre-mixes, mixers and soft drinks.

We value the safety and health of both team members, clients and suppliers, therefore we do recommend everyone to respect the hygiene measures recommended by the Health Government.

Payment can be arranged prior to delivery via bank transfer, or on delivery with our portable EFTPOS machine! Please note that any Contactless deliveries must be pre-paid via bank transfer for the health and safety of both our team members and the community.

For all deliveries outside the 5km radius, we would love to help out, and, can work out a solution case by case, that works best for us both. Please contact glenn@decanters.com.au.

So give us a call 03 9676 9440 or email us at glenn@decanters.com.au to place your order!

The DecanTeam