Created
March 1, 2018 03:38
-
-
Save tjmapes/e4e01fc837e8797e7af0673c0df7f45f to your computer and use it in GitHub Desktop.
Shopify Script Reject All Discount Codes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reject all discount codes | |
Output.cart = Input.cart | |
exit unless Input.cart.discount_code | |
Input.cart.discount_code.reject({ message: 'No discount codes allowed until promotion is over' }) | |
Output.cart = Input.cart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment