Jumbo Shipping
-
Hi
At our store we have 3 items we can send just as an Jumbo package. But this Items are more expensiv the the free deliefery border. Now I like to make unvisible the free shipping functions for this Items.I could find following Code at the net:
function my_free_shipping( $is_available ) {
global $woocommerce;// set the product ids that are ineligible
$ineligible = array( ‘2703’,’2297′,’2293′);// get cart contents
$cart_items = $woocommerce->cart->get_cart();// loop through the items looking for one in the ineligible array
foreach ( $cart_items as $key => $item ) {
if( in_array( $item[‘product_id’], $ineligible ) ) {
return false;
}
}// nothing found return the default value
return $is_available;
}
add_filter( ‘woocommerce_shipping_free_shipping_is_available’, ‘my_free_shipping’, 20 );It works but the Costs für delivering for bulky items are not the same i definied for. I’m not a coder. Can someone help me?
The page I need help with: [log in to see the link]
- The topic ‘Jumbo Shipping’ is closed to new replies.