{% comment %} Renders cart drawer Usage: {% render 'cart-drawer' %} {% endcomment %} {{ 'quantity-popover.css' | asset_url | stylesheet_tag }} {{ 'component-card.css' | asset_url | stylesheet_tag }} {%- if cart == empty -%} {{ 'sections.cart.empty' | t }} {% render 'icon-close' %} {{ 'general.continue_shopping' | t }} {%- if shop.customer_accounts_enabled and customer == null -%} {{ 'sections.cart.login.title' | t }} {{ 'sections.cart.login.paragraph_html' | t: link: routes.account_login_url }} {%- endif -%} {%- if settings.cart_drawer_collection != blank -%} {% render 'card-collection', card_collection: settings.cart_drawer_collection, columns: 1 %} {%- endif -%} {%- endif -%} {{ 'sections.cart.title' | t }} {% render 'icon-close' %} {%- if cart != empty -%} {% assign free_shipping_threshold = settings.shx_free_shipping_threshold %} {% assign total_price = cart.total_price %} {% assign remaining_amount = free_shipping_threshold | minus: total_price %} {% assign shipping_costs = settings.shx_shipping_costs %} {% assign progress_percentage = total_price | times: 100 | divided_by: free_shipping_threshold %} {% if progress_percentage > 100 %} {% assign progress_percentage = 100 %} {% endif %} {% if total_price < free_shipping_threshold %} Noch {{ remaining_amount | money }} bis kostenfreiem Versand (sonst {{ shipping_costs | money }}) {% else %} Prima! Du erhälst kostenfreien Versand {% endif %} {% endif %} {%- if cart != empty -%} {% comment %} {{ 'sections.cart.headings.image' | t }} {{ 'sections.cart.headings.product' | t }} {{ 'sections.cart.headings.total' | t }} {{ 'sections.cart.headings.quantity' | t }} {% endcomment %} {%- for item in cart.items -%} {% if item.image %} {% comment %} Leave empty space due to a:empty CSS display: none rule {% endcomment %} {% endif %} {%- if settings.show_vendor -%} {{ item.product.vendor }} {%- endif -%} {{- item.product.title | escape -}} {%- if item.original_price != item.final_price -%} {{ 'products.product.price.regular_price' | t }} {{- item.original_price | money -}} {{ 'products.product.price.sale_price' | t }} {{ item.final_price | money }} {%- else -%} {{ item.original_price | money }} {%- endif -%} {%- if item.product.has_only_default_variant == false or item.properties.size != 0 or item.selling_plan_allocation != null -%} {%- if item.product.has_only_default_variant == false -%} {%- for option in item.options_with_values -%} {{ option.name }}: {{ option.value -}} {%- unless forloop.last %}, {% endunless %} {%- endfor -%} {%- endif -%} {%- for property in item.properties -%} {%- assign property_first_char = property.first | slice: 0 -%} {%- if property.last != blank and property_first_char != '_' -%} {{ property.first }}: {%- if property.last contains '/uploads/' -%} {{ property.last | split: '/' | last }} {%- else -%} {{ property.last }} {%- endif -%} {%- endif -%} {%- endfor -%} {{ item.selling_plan_allocation.selling_plan.name }} {%- endif -%} {%- for discount in item.line_level_discount_allocations -%} {%- render 'icon-discount' -%} {{ discount.discount_application.title }} {%- endfor -%} {%- render 'loading-spinner' -%} {%- if item.original_line_price != item.final_line_price -%} {{ 'products.product.price.regular_price' | t }} {{ item.original_line_price | money }} {{ 'products.product.price.sale_price' | t }} {{ item.final_line_price | money }} {%- else -%} {{ item.original_line_price | money }} {%- endif -%} {%- if item.variant.available and item.unit_price_measurement -%} {{ 'products.product.price.unit_price' | t }} {{ item.unit_price | money }} / {{ 'accessibility.unit_price_separator' | t }} {%- if item.unit_price_measurement.reference_value != 1 -%} {{- item.unit_price_measurement.reference_value -}} {%- endif -%} {{ item.unit_price_measurement.reference_unit }} {%- endif -%} {%- liquid assign has_qty_rules = false if item.variant.quantity_rule.increment > 1 or item.variant.quantity_rule.min > 1 or item.variant.quantity_rule.max != null assign has_qty_rules = true endif assign has_vol_pricing = false if item.variant.quantity_price_breaks.size > 0 assign has_vol_pricing = true endif -%} {{- 'products.product.quantity.decrease' | t: product: item.product.title | escape -}} {% render 'icon-minus' %} {{- 'products.product.quantity.increase' | t: product: item.product.title | escape -}} {% render 'icon-plus' %} {% render 'icon-remove' %} {%- if has_qty_rules or has_vol_pricing -%} {% render 'icon-info' %} {%- if has_vol_pricing -%} {{ 'products.product.volume_pricing.note' | t }} {%- elsif has_qty_rules -%} {{ 'products.product.quantity.note' | t }} {%- endif -%} {%- endif -%} {%- if has_vol_pricing or has_qty_rules -%} {%- if has_qty_rules == false -%} {{- 'products.product.volume_pricing.title' | t -}} {%- endif -%} {%- if item.variant.quantity_rule.increment > 1 -%} {{- 'products.product.quantity.multiples_of' | t: quantity: item.variant.quantity_rule.increment -}} {%- endif -%} {%- if item.variant.quantity_rule.min > 1 -%} {{- 'products.product.quantity.minimum_of' | t: quantity: item.variant.quantity_rule.min -}} {%- endif -%} {%- if item.variant.quantity_rule.max != null -%} {{- 'products.product.quantity.maximum_of' | t: quantity: item.variant.quantity_rule.max -}} {%- endif -%} {%- render 'icon-close' -%} {%- if item.variant.quantity_price_breaks.size > 0 -%} {{ item.variant.quantity_rule.min }}+ {{ item.variant.price | money_with_currency }}/ea {%- for price_break in item.variant.quantity_price_breaks -%} {{- price_break.minimum_quantity -}} + {{ price_break.price | money_with_currency }}/ea {%- endfor -%} {%- endif -%} {%- endif -%} {%- endfor -%} {%- endif -%} {{ 'accessibility.loading' | t }}
{{ 'sections.cart.login.title' | t }}
{{ 'sections.cart.login.paragraph_html' | t: link: routes.account_login_url }}
{{ item.product.vendor }}
{{ item.selling_plan_allocation.selling_plan.name }}
{{ 'accessibility.loading' | t }}