Skip to Content

Wishlist

The wishlist object contains the products a signed-in user has favorited. It is globally accessible when the user is signed in.

Usage Example

{%- comment -%} Show wishlist products if any {%- endcomment -%} {% if wishlist.size > 0 %} <h2>Wishlist</h2> <ul> {% for product in wishlist %} <li>{{ product.title | link_to: product }}</li> {% endfor %} </ul> {% else %} <p>Your wishlist is empty.</p> {% endif %}

Properties

products

Returns the products in the wishlist.

Last updated on