User Wishlist - CrystalCommerce Liquid Documentation for Designers

User Wishlist

The user wishlist page allows the user to manage their wishlisted items.

Additional Variables Available

None

Used in Routes

  • /user/wishlist

File: user_wishlist.liquid

Default Liquid Template

<h1 class="pagetitle">{{ "wishlist.page_header" | trans }}</h1>
<p>{{ 'wishlist.page_description' | trans }}</p>

<ul id="wishlist">
  {% if current_user.wishlist.size > 0 %}
    {% for product in current_user.wishlist %}
    <li><a href="{{ product.url }}">{{ product.name }}</a>&nbsp;<span><small>{{ "Remove" | link_to_delete_wishlist_product: product }}</small></span></li>
    {% endfor %}
  {% else %}
    <li>{{ "wishlist.no_items_in_wishlist" | trans }}</li>
  {% endif %}
</ul>

Default Mobile Liquid Template

<header>
  <h1 class="pagetitle">My Wishlist</h1>
</header>

<p>Your wishlist is where you can request products that are out of stock. To add products to your wishlist, click the "Add to Wishlist" link next to every out of stock item.</p>

<ul id="wishlist" class="ui-buttons">
  {% if current_user.wishlist.size > 0 %}
    {% for product in current_user.wishlist %}
    <li><a href="{{ product.url }}">{{ product.name }}</a>&nbsp;<span><small>{{ "Remove" | link_to_delete_wishlist_product: product }}</small></span></li>
    {% endfor %}
  {% else %}
    <li>You have no items currently on your wishlist.</li>
  {% endif %}
</ul>

Drops Supported