Skip to content

Instantly share code, notes, and snippets.

View tkirrane's full-sized avatar

Therese Kirrane tkirrane

View GitHub Profile
@tkirrane
tkirrane / companion-product
Last active July 22, 2020 14:03
Add a companion product to cart page
{% comment %}
To add a companion product to the cart automatically if a primary product is in cart:
1. Create a new link list under your Navigation tab.
2. In that link list, make the first link point to companion product.
3. Copy your link list handle where indicated at line 8:
{% endcomment %}
{% assign linklist = linklists['put-your-link-list-handle-here'] %}
{% comment %}