Skip to content

Building your first operation

This tutorial creates an operation that hides an existing shipping rate named Free Shipping when the current delivery group’s line-item value is less than $50.

The rate must already exist and be available in the checkout you test. An operation can change an existing rate, but it cannot create a new one.

  1. From the Home Page, click the Create Operation button
  2. Choose Shipping
  3. Choose Hide - you will be taken to the Shipping Rate Hide operation form
  4. In Operation Name, enter Hide Free Shipping for smaller orders.
  5. Leave Enabled status selected
  6. Leave Mode as the default Hide value
  7. Under Rate Matching, leave Match Field as Rate Title - this is will match by shipping rate name
  8. Under Match Values, enter Free Shipping into the text input, then click Add Value
  9. Under Conditions, click Add Condition - a new condition will appear above
  10. Set Type to Line Item Value
  11. Set End Value to 49.99 - Between operators are inclusive matching
  12. Click Save. Wait until the app reports Publishing complete! before testing the checkout
Screenshot: The completed Hide shipping rates operation for the first-operation tutorial, including Enabled, Mode, Rate Title or Service Code matching, Match Values, Conditions, and Save.

After an operation is saved, there is a moment where the changes are published to your Shopify Checkout. You will see a “Publishing complete!” - you can now test your checkout for your new changes.

A toast tooltip showing the message 'Publishing complete!'

For more detail about conditions, see Conditions. For the operation model and active-operation allowance, see Operations.

  1. Open a checkout where the existing Free Shipping rate is available
  2. Make the cart value in the less than $50 (using your shop’s currency)
  3. The Free Shipping should not be available to the customer
  4. Increase the cart value to $50 or more
  5. The Free Shipping should now be available to the customer

The operation should hide Free Shipping at $50 and below. If the current delivery group’s line-item value is higher than $50, the rate should remain available. If the rate is not available before the operation runs, there is nothing for the operation to hide.

Side-by-side shipping rates in a checkout - the first shows Free Shipping, the second does not.

If you’re not getting the expected result, follow Operation didn’t take effect. You can also contact us and we’ll be happy to help.