Last active
January 29, 2018 15:25
-
-
Save joe-dempsey/414d5c3db9ad79ad1f561469ac1a535b to your computer and use it in GitHub Desktop.
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
{% comment %}Here we send a user straight to the checkout after adding a product to the cart - bypassing the cart - useful where we don't want to set up ajax or streamline the experience{% endcomment %} | |
<form action="/cart/add" method="post" enctype="multipart/form-data" id="add-to-cart-form"> | |
{% comment %} nest this within the form{% endcomment %} | |
<input type="hidden" name="return_to" value="/checkout" /> | |
// product form fields | |
// blah blah blah | |
</form> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment