Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # ContinueShopping
  2.  
  3. Track the last collection by storing or updating a cookie on every collection page visit.
  4. If it comes across a continue shopping link then it updates that link to point back to that last collection.
  5.  
  6. Add the attribute `data-continue-shopping-link` to any link you want to act as a continue shopping link.
  7.  
  8. Requires the current template to be passed to it from liquid:
  9. ```
  10. <script>
  11. var theme.template = {{ template | json }};
  12. </script>
  13. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement