• sanjay.gswmi

    (@sanjaygswmi)


    I want to get minimum order amount for free shipping according to user role and country. I have set the rules for free shipping in backend. I tried below code but it doesn’t return anything

    $free_shipping_settings = get_option( 'advanced_free_shipping_settings' );
    $min_amount = $free_shipping_settings['min_amount'];

    Does any other way to do this?

    Thanks in advance.

    https://wordpress.org/plugins/woocommerce-advanced-free-shipping/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi Sanjay,

    Why do you need to programatically get the minimum order amount?

    It is a whole lot more complicated then your example, as you need to parse the conditions, its not just a simple option like that..

    Jeroen

    I can’t get min order amount like your code in woocommerce version >= 2.6

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    The above code was never a valid code snippet to get the minimum subtotal.

    Doing this programatically would require a more complex code snippet to get the values due to the conditional logic.

    If you have a specific need I may be able to advise you on that, if so, please create a new thread.

    Thank you,
    Jeroen

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get minimum order amount for free shipping’ is closed to new replies.