Flexible Shipping - Advanced options and customization

'Left to free shipping' notice customization

You can use the flexible_shipping_free_shipping_notice_text filter to customize the notice displayed in the cart and on the checkout page informing about the amount of price left to free shipping. Here is the usage example:

add_filter( 'flexible_shipping_free_shipping_notice_text', 'wpdesk_flexible_shipping_free_shipping_notice_text', 10, 2 ); function wpdesk_flexible_shipping_free_shipping_notice_text( $notice_text, $amount ) { return sprintf( 'Spend %1$s more to get free shipping!', wc_price( $amount ) ); }

Free shipping always on or always off

flexible_shipping_is_free_shipping - a filter which allows the free shipping to be always on or always off for the shipping methods handled by Flexible Shipping.

If you want to set the shipping in your shop to be always free for Flexible Shipping shipping methods whether the free shipping threshold was reached or not, please add the following code to the functions.php file of your theme / child theme or use e.g. the Code Snippets plugin:

add_filter( 'flexible_shipping_is_free_shipping', '__return_true' );

However, if you want the shipping for Flexible Shipping methods in your shop to never be free despite the fact that the free shipping threshold was reached, please use the following code instead:

add_filter( 'flexible_shipping_is_free_shipping', '__return_false' );

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us