• Resolved footstepsdesign

    (@footstepsdesign)


    I need to set a maximum weight that i will ship and display a message to the customer if they exceed this

    So an example might be:

    0 - 99.99kg: $5
    100 - 199.99kg: $7
    200g - 300kg: $10

    If the users added 300.01kg to the basket I would need the checkout to be disabled and for a message like “Sorry we only ship up to 300kg, please contact us for larger orders”

    Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alexandru Tapuleasa

    (@talextech)

    Well, you can set the upper limit for Table Rates to 300kg which would mean if they add anything over the No shipping methods available will be displayed. But Table Rate Shipping doesn’t have an option to customize that.

    You could try adding the below to your theme’s functions.php:

    add_filter( 'woocommerce_no_shipping_available_html', 'custom_no_shipping_message' );
    
    function custom_no_shipping_message( $default_message ) {
        // Customize your message here
        $custom_message = '<p>Sorry we only ship up to 300kg, please contact us for larger orders</p>';
        return $custom_message;
    }
    Thread Starter footstepsdesign

    (@footstepsdesign)

    Thanks for the quick response. That’s sounds great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Maximum weight’ is closed to new replies.