Hide a delivery method

To hide a delivery method at checkout, create a delivery function of the hide type. You choose the delivery methods to hide and the conditions under which they're hidden.

Create the function

  1. In the app, go to Delivery Function and click Create Delivery Function.

    The Delivery Function page of the app, with Delivery Function highlighted in the menu and the Create Delivery Function button at the top right.

  2. Under Shopify Script Method, select Hide.

  3. In Delivery Function title, enter a name that helps you find the function later, for example Hide XYZ Delivery Method. Customers don't see it.

    Shopify Script Method set to Hide, and the Delivery Function title field with the note Not displayed to customers.

Choose the delivery methods to hide

  1. Under Hidden delivery methods, choose a match type: Contains or Is.

  2. In Select Delivery Method, enter the name of the delivery method to hide.

  3. To hide more delivery methods, click Add Delivery Method and repeat.

    Hidden delivery methods with the match type set to Contains, the Select Delivery Method fields and the Add Delivery Method button.

The match types work like this:

  • Contains: the delivery method is hidden if any word you enter matches its name.
  • Is: you enter the exact name of the delivery method.

Set when they're hidden

The delivery methods are hidden only when the conditions you set here are met.

  1. Under Delivery Rules, next to Hide when matching, choose all conditions or any condition.

  2. Choose a rule type in Select Rule type and a condition in Select Rule Condition, then enter the value. Click Add Conditions to add more.

  3. Click Save.

    Delivery Rules with all conditions and any condition next to Hide when matching, the rule fields, the Add Conditions button and the Save button.

  • all conditions: the delivery method is hidden only if every condition is met.
  • any condition: the delivery method is hidden if any one of the conditions is met.

Check that it works: go to your checkout with a cart that meets your conditions. The delivery method you hid isn't offered.

If it doesn't work

  • The name doesn't match. With Is, the name must be the exact name of the delivery method. With Contains, check that the word you entered is part of its name.
  • The conditions aren't met. With all conditions, the cart has to meet every condition, not just one.

To change the name or the order of delivery methods instead, see Rename a delivery method and Reorder delivery methods.

Need a hand? Email support@scriptengine.net and our team will help you set it up.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us