Advertisement
rijarob

Change continue to button verbiage based on item in cart

Jun 13th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. {% if context == 'receipt' %}
  2. {% set has_video = false %}
  3. {% for item in items %}
  4. {% if item.code == "video" %}
  5. {% set has_video = true %}
  6. {% endif %}
  7. {% endfor %}
  8. {% if has_video %}
  9. {% set custom_lang = config.lang|merge({"checkout_continue_to": "Custom video language "}) %}
  10. {% set config = config|merge({"lang": custom_lang}) %}
  11. {% endif %}
  12. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement