• Resolved IanErickson

    (@ianerickson)


    Hello, I love WooCommerce. It works great, except for shipping…

    We run promotions frequently where people can get free shipping on orders over $100.

    We only sell within the US and so have only one shipping zone. If the order is not over $100 then we would charge $11 percent of the total order plus $3.25
    [cost][fee percent=*0.11*]/100+3.25

    There are two problems. The Flat Rate [cost][fee percent=*0.11*]/100+3.25 charges shipping for only one item, not the total for all of the items. Also, this option displays even when the order exceeds $100.

    1) How do I make only the Free Shipping display when the order is over $100?
    2) How can I make the Flat Rate shipping calculate based on the total price of all of the items in the cart instead of only one of the items? Is there an error here; [cost][fee percent=*0.11*]/100+3.25

    Thanks in advance, Jon

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @ianerickson,

    Happy to help with these questions! 🙂

    For the Flat Rate Shipping calculation, I’d recommend simplifying it a bit and try using the following in the “Cost” field:

    [fee percent="11"] + 3.25

    Then make sure that the “Calculation type” setting (at the bottom of the Flat Rate settings) is set to “Per order”. I did some tests on my site with this and this setup seemed to work as you need.

    Regarding the Free Shipping question, showing all applicable shipping methods is the expected behavior (so customers can choose the one they want), but since Free Shipping is frequently used in this way, we have a code snippet that you can use to hide all other shipping methods when Free Shipping is available (orders over $100, in this case):

    https://docs.woocommerce.com/document/hide-other-shipping-methods-when-free-shipping-is-available/

    Thread Starter IanErickson

    (@ianerickson)

    Thanks Shaun,
    You have made me very very happy with two simple easy solutions that worked the first time! Perfect.

    Is there a list anywhere of available code snippets? I frequently have shipping challenges and would love to look over a list to see what is possible.

    Thanks again!
    Jon

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Glad that was helpful, Jon! 😀

    As for the list of available code snippets, the following doc has a collection of the snippets that are commonly used for WooCommerce core and that we check periodically to see if they still work with current versions of the plugin (including the snippet I shared):

    https://docs.woocommerce.com/documentation/plugins/woocommerce/woocommerce-codex/snippets/general-snippets/

    Thread Starter IanErickson

    (@ianerickson)

    Thanks, there are useful code snippets on that list.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Absolutely, @ianerickson! 😀

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Free Shipping for orders exceeding $100’ is closed to new replies.