Created
June 17, 2016 21:00
-
-
Save zakhardage/bccf6fe9bab52e636c3ec76112c3889a to your computer and use it in GitHub Desktop.
automatically apply price-based discount in Shopify
This file contains 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
{% if cart.total_price > settings.cart-discount-threshold %}{% assign threshold = true %}{% endif %} | |
<form action="/cart{% if threshold %}/?discount=[discountcode]{% endif %}" method="post"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can this be applied per product? or only for overall cart total?