File: _quick_cart.liquid
{% if site.buylist_mode? %} <p> {% if site.buy_order_empty? %} <em>You have no items on your buylist.</em> {% else %} <em>You have {{ buy_order.number_of_items }} {% if buy_order.number_of_items == 1 %}item{% else %}items{% endif %} on your buylist, totaling <strong>{{ buy_order.subtotal }}</strong>.</em><br /> <a href="{{ site.buy_order_checkout_url }}">View Buylist / Submit</a> {% endif %} </p> {% else %} <p> {% if order.empty? %} <em>You have no items in your cart.</em> {% else %} <em>You have {{ order.number_of_items }} {% if order.number_of_items == 1 %}item{% else %}items{% endif %} in your cart, totaling <strong>{{ order.subtotal }}</strong>.</em><br /> <a href="{{ site.cart_url }}">Your Cart</a> | <a href="{{ site.checkout_url }}">Checkout</a> {% endif %} </p> {% if current_user.eligible_rewards.size > 0 %} <p> <strong>Eligible Rewards:</strong> <ul> {% for coupon in current_user.eligible_rewards %} <li>{{ coupon.short_reward }}</li> {% endfor %} </ul> </p> {% endif %} {% endif %}
{% if site.buylist_mode? %} {% if buy_order.line_items_count > 0 %} <a href="{{ site.buy_order_checkout_url }}">Buylist ({{ buy_order.number_of_items}} {% if buy_order.number_of_items == 1 %}item{% else %}items{% endif %} totaling <strong>{{ buy_order.subtotal | money }}</strong>)</a> {% else %} <span class="nolink">You have no items on your buylist.</span> {% endif %} {% else %} {% if order.line_items_count > 0 %} <a href="{{ site.cart_url }}"><img src="/images/cart64.png" title="Your Cart" class="icon" />Cart ({{ order.number_of_items}} {% if order.number_of_items == 1 %}item{% else %}items{% endif %} totaling <strong>{{ order.subtotal | money }}</strong>)</a> {% else %} <span class="nolink"><img src="/images/cart64.png" title="Your Cart" class="icon" />You have no items in your cart.</span> {% endif %} {% endif %}