Set up Multiple Discounts manually
This is about setting up for the first time to the cart page. Apply Multiple Discounts to a theme that you want to publish in the front end(such as Debut, Minimal, Boundless, Brooklyn, Express,...)
Last updated
This is about setting up for the first time to the cart page. Apply Multiple Discounts to a theme that you want to publish in the front end(such as Debut, Minimal, Boundless, Brooklyn, Express,...)
Last updated
<div data-md-cart-page /><div class="page-width--wide page-container" data-md-cart-page>
or
<div class="grid" data-md-cart-page>
or
<form action="{{ routes.cart_url }}" method="post" class="cart-form cart" data-cart-form novalidate data-md-cart-page><tr data-md-cart-item-key="variant_id">// Some code...
{% for item in cart.items %}
<div class="cart__row" data-md-cart-item-key="{{ item.id }}">// Some code....
{% for item in cart.items %}
<tr class="cart__table-row" data-md-cart-item-key="{{ item.id }}"> <td class="cart__table-cell" data-md-price-item>
<div>
{% if item.original_price != item.final_price %}
<span class="visually-hidden">{{ 'cart.label.original_price' | t }}</span> <td data-md-total-price-item class="cart__table-cell cart__table-cell--total cart__table-cell--right-aligned" data-label="{{ 'cart.label.total' | t }}" ><div class="cart__footer" data-md-cart-footer><div class="cart__subtotal" data-md-subtotal><div data-md-cart-shipping />// Some code..
<div class="cart__shipping rte" data-md-cart-shipping>{{ taxes_shipping_checkout }}</div>// Some code...
<p class="cart__notice" data-md-cart-shipping>{{ taxes_shipping_checkout }}</p><tbody data-md-cart-possible-offer-items><tbody data-md-cart-free-items><tbody data-md-cart-possible-offer-items><h1>Free Products</h1>
<table>
<tbody data-md-cart-free-items>
</tbody>
</table>
<h1>Possible Offers</h1>
<table>
<tbody data-md-cart-possible-offer-items>
</tbody>
</table>
<template data-md-cart-item-template>
{% raw %}
<tr>
<td><img src='{{ product.image.src }}' style='width: 4em' /></td>
<td>{{ product.title }}</td>
<td>{{ variant.price }}</td>
<td>{{ offer.total }}</td>
<td>
<button type='button' data-md-add-to-cart='{{ variant.id }}'>Add to cart</button>
</td>
</tr>
{% endraw %}
</template>