• Hi there!

    I am wondering if there is a way that I can exclude the cost of a specific item from counting towards the minimum spend amount for free shipping.

    I have a $75 minimum spend for US order to receive free shipping. I have a “Rush Order” product created with a cost of $10. I do not want this $10 to count towards the minimum free shipping spend and so far I have not found any information on completing this specific task, hopefully someone can point me in the right direction.

    Thanks in advance!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Just chiming in that I have a similar issue so hoping someone has a solution.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Why don’t you instead create a rate for rush order, rather than a product?

    Thread Starter saralovesyellow

    (@saralovesyellow)

    Hi Mike, I am not sure I understand your meaning? Can you clarify a bit for me?
    I should also mention the rush option needs to easily be toggled on and off (my current code allows for this by changing the product to a draft when rush ordering is not available).

    Thanks!

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    It would be better to add another shipping method that costs $10 more than your current shipping costs. Then you can easily enable/disable the shipping method.

    This is how customers would expect to switch to a quicker shipping option as well.

    Thread Starter saralovesyellow

    (@saralovesyellow)

    With the current shipping options we have set up, we would need to add 4 new shipping options with the $10 rush fee added in that will each need to be toggled on and off as needed. I would much prefer to worry about toggling a single item. I can go with the addition shipping options if that is what it comes to but what I am looking for is a way to exclude this single “product” from the free shipping amount.

    The products are custom made, the “rush” option isn’t so much a shipping option as moving your purchase to the head of the production line.

    Thanks your input so far folks!

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Excluding one product from the free shipping minimum amount will take some customization. So you will either need some custom code from a developer, or you can utilize the ability to create new shipping methods with a $10 fee on them.

    Thread Starter saralovesyellow

    (@saralovesyellow)

    I do understand that it would take some customization and is not a simple setting. Just hoping someone else has encountered a similar “issue”, created a solution and can point me in the right direction. Thanks again.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    This is where the free shipping method decides if the min amount has been met or not: https://github.com/woothemes/woocommerce/blob/aa367efdf0d4d45250222d977e581b4d6c4bdd63/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php#L160-L172

    And this is the function used to get the order total: https://github.com/woothemes/woocommerce/blob/7792ec3f366c6cbbad798a0d1e5d8e3a238df94d/includes/class-wc-cart.php#L812

    So you’ll need to a find a way to exclude that one product from the order total, or check if that product is in the cart, and if so, increase the min amount.

    The solution to this though is to use the shipping methods for this type of functionality rather than a product.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Exclude Specific Product From Counting Towards Minimum Spend for Free Shipping?’ is closed to new replies.