• Resolved 100lba

    (@100lba)


    Maybe I’m missing something obvious.

    I would like to implement that a specific product in the shopping cart triggers free shipping for the entire shopping cart.

    Actually it is not about shipping, but storage. The product is the service ‘storage space’ for one year. The storage of the following orders takes place optionally by voucher input of the customer.

    If, however, the first order should already be stored, the service ‘storage’ should trigger the (renamed) free shipping.

    Is that possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, there’s many ways to meet your goal. You can try adding a JQuery in the footer to subtract the shipping fee for a specific product in the cart by looking at product_id array, or add a coupon to apply for that specific product, or add a shipping fee radio button on the product description page.

    // Add scripts to wp_footer()
    function child_theme_footer_script() {
    // echo your Jquery here
    }
    add_action( ‘wp_footer’, ‘child_theme_footer_script’ );

    Thread Starter 100lba

    (@100lba)

    Well..

    Not only for the specific product, but all products in the cart.

    In other words:

    If: specific product is in the cart
    Then: free shipping (no matter what other products are in the cart as well)

    Automatically – without voucher. Or is it possible to auto-add a voucher if a specific product is the cart? That would work too.

    Plugin Support EtienneP a11n

    (@etiennep)

    Hey @100lba

    The easiest way to do this would be to use an extension like this – https://woocommerce.com/products/conditional-shipping-and-payments/

    With that, you can set up a condition that if that Storage product is in the cart, only the Free Shipping option is available for that order. The same can be done the other way, if the Storage product is not in the cart, the Free Shipping option will not be available then

    Plugin Support EtienneP a11n

    (@etiennep)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trigger free shipping for order if specific product is in the cart’ is closed to new replies.