• Resolved ljackl

    (@ljackl)


    Hey,

    I want to have 4 different shipping costs:
    – Standard
    – Express
    – Free Standard (over $75)
    – Discount Express (over $75)

    I was wondering if it was possible to set a shipping method (Discount Express) which only displays after a certain threshold has been reached?

    I have also been attempting to hide standard shipping once free shipping is available, but retain express shipping. I have been trying to modify this code by replacing local_pickup with flat_rate:4 (what the webpage tells me the value of the radio button is) but it doesn’t appear to be working for me.

    Any advice would be appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @ljackl
    Hello
    1) what is the threshold? how you set the condition?
    2) looking at the code you provided I think using: flat_rate:4 is not the correct info you need to add there. I would use: flat_rate maybe it is ok

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    Hi @ljackl,

    It looks like you are attempting to achieve this through code, but I wanted to point out that you could use an extension like Conditional Shipping and Payments.

    This plugin will allow you to configure rules to display/hide certain shipping methods when conditions are met. Those conditions can be related to the order total, for example.

    Hopefully that helps!

    Thread Starter ljackl

    (@ljackl)

    Hey! Thanks to you both for the suggestions. Sorry for taking such a long time to get back to you, I’ve been away on holiday.

    @wpriders This only fetches the first Flat Rate shipping method, however there are multiple. On my site for example, this would fetch Standard Shipping only. I need to be able to get both Standard and Express shipping radio button.

    @fhaps That’s a very expensive solution to what looks like a simple issue, surely there is a way to retrieve the radio buttons I need?

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @ljackl I have no other suggestions on how to achieve this through a different free plugin, or code.

    If you don’t want to go the plugin route, and you need coding help, you might consider hiring a developer who can code this for you. Here are some options we recommend:

    https://woocommerce.com/customizations

    They’d be able to give you a clearer idea about the scope of the project and quote you for their services.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Discounted shipping after threshold’ is closed to new replies.