{% if shopping_cart and shopping_cart.cart_settings.enabled %} {% set cart_settings = shopping_cart.cart_settings %} {% set product_info = shopping_cart.product_info %}
{% if cart_settings.show_price and product_info.price %}
{{ product_info.price.formatted_price_sales_uom }} ({{ product_info.price.formatted_price }} / {{ product_info.uom }})
{% else %} {{ _("Unit of Measurement") }} : {{ product_info.uom }} {% endif %} {% if cart_settings.show_stock_availability %}
{% if product_info.in_stock == 0 %} {{ _('Not in stock') }} {% elif product_info.in_stock == 1 %} {{ _('In stock') }} {% if product_info.show_stock_qty and product_info.stock_qty %} ({{ product_info.stock_qty[0][0] }}) {% endif %} {% endif %}
{% endif %}
{% if product_info.price and (cart_settings.allow_items_not_in_stock or product_info.in_stock) %} {{ _("View in Cart") }} {% endif %} {% if cart_settings.show_contact_us_button %} {% include "templates/generators/item/item_inquiry.html" %} {% endif %}
{% endif %}