Multiple pickup method solution
-
Hello,
I have the same @cachingshop problem that he shows in the post “Multiple pick-up methods”. now that post is closed for comments and I create a new other one just for people that need multiple local pickup options to be showed.The plugin behaviour now infact remove all local pickup options except one if free shipping became available to the customers.
The reason is in the file hide-shipping-free-shipping.php in the function:
wc_hide_shipping_when_free_is_available_keep_local
Just remove the “break” instruction in this portion of the code:if ( ! empty( $new_rates ) ) { foreach ( $rates as $rate_id => $rate ) { if ('local_pickup' === $rate->method_id ) { $new_rates[ $rate_id ] = $rate; break; //REMOVE THIS LINE WITH BREAK } } return $new_rates; }
And all the pickup options will be available to the user, still if free shipping limit has been reached.
Hope this helps and the developer make this change in the codebase too.
Bye
Brennino
- The topic ‘Multiple pickup method solution’ is closed to new replies.