Created
March 7, 2014 07:00
-
-
Save zakhardage/9406631 to your computer and use it in GitHub Desktop.
How to construct the permalink by looping through cart.items
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
| {% for item in cart.items %} | |
| {% capture cart-permalink %}{{ item.id}}:{{ item.quantity }}{% unless forloop.last %},{% endunless %}{% endcapture %} | |
| {% endfor %} | |
| <a href="/cart/{{ cart-permalink }}">checkout</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment