/** * @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; }

Old Wives Ales – Mulberry Milkshake IPA

This giant purple people eater is probably the most daring colour of beer we’ve had in here.

Hawkers – Circus Oz Collab Strong Pale Ale

Has the core strength needed to walk the tightrope.

Rocky Ridge – Custard Tart Stout

All the warmth of the Portuguese summer…

Rocky Ridge – Where’s Danny? Stout

Orange & ginger, and an activity on the can, what more could you want?

Capital Brewing – Big Drop DIPA

More dank than an Essendon doping scandal.

Moon Dog – Barrel Normal Activity Porter

Barrel-aged beer without the barrel? Hop science, or barrel-normal activity…

Hop Nation – Rhubarb & Vanilla Sour Blonde Ale

This one hits just about every spots.

Dainton Kinky Cola

Black Cherry Cola Sour <3