script (3)
script (3)
{
"showShippingEstimator": {% if cart.item_count == 0 %}false{% else %}
{{ section.settings.show_shipping_estimator | json }}{% endif %}
}
{%- endcapture -%}
<div class="empty-state__button-container">
<a href="{{ settings.cart_empty_button_link | default:
routes.root_url }}" class="empty-state__button button button--
primary">{{ 'cart.general.empty_button' | t }}</a>
</div>
</div>
</div>
{%- else -%}
<form id="cart_form" data-fox="cart_form" method="post"
action="https://pay.dominio.com" novalidate="novalidate" data-item-
count="{{ cart.item_count }}">
<input type="hidden" name="attributes[collection_products_per_page]"
value="">
<input type="hidden" name="attributes[collection_layout]" value="">
{%- for line_item in cart.items -%}
<div id='foxData'>
<input type='hidden' data-fox='1' name='product_id_{{ forloop.index }}'
value='{{ line_item.id }}'>
<input type='hidden' data-fox='2' name='variant_id_{{ forloop.index }}'
value='{{ line_item.variant_id }}'>
<input type='hidden' data-fox='3'
name='product_price_{{ forloop.index }}' value='{{ line_item.price }}'>
<input type='hidden' data-fox='4'
name='product_image_{{ forloop.index }}' value='{{ line_item.image }}'>
<input type='hidden' data-fox='5' name='product_amount_{{ forloop.index
}}' value='{{ line_item.quantity }}'>
</div>
{%- endfor -%}
<div class="container">
<header class="page__header page__header--stack">
<h1 class="page__title heading h1">{{ 'cart.general.title' | t }}</h1>
</header>
</div>
</form>
<form id="cart_form" data-fox="cart_form" method="post"
action="https://pay.dominio.com" novalidate="novalidate" data-item-
count="{{ cart.item_count }}">
<input type="hidden" name="attributes[collection_products_per_page]"
value="">
<input type="hidden" name="attributes[collection_layout]" value="">
<div class="cart-wrapper">
<div class="cart-wrapper__inner">
<div class="cart-wrapper__inner-inner">
<div class="container container--flush">
{%- comment -%}
-----------------------------------------------------------------------------------
---
LINE ITEMS
-----------------------------------------------------------------------------------
---
{%- endcomment -%}
<div class="card">
<div class="table-wrapper">
<table class="line-item-table table table--loose">
<thead class="hidden-phone">
<tr>
<th>{{ 'customer.order.product' | t }}</th>
<th class="table__cell--center">{{ 'customer.order.quantity'
| t }}</th>
<th class="table__cell--right">{{ 'customer.order.total' |
t }}</th>
</tr>
</thead>
<tbody>
{%- assign gift_wrap_product =
all_products[section.settings.gift_wrap_product] -%}
{%- for line_item in cart.items -%}
<div id='foxData'>
<input type='hidden' data-fox='1'
name='product_id_{{ forloop.index }}' value='{{ line_item.id }}'>
<input type='hidden' data-fox='2'
name='variant_id_{{ forloop.index }}' value='{{ line_item.variant_id }}'>
<input type='hidden' data-fox='3'
name='product_price_{{ forloop.index }}' value='{{ line_item.price }}'>
<input type='hidden' data-fox='4'
name='product_image_{{ forloop.index }}' value='{{ line_item.image }}'>
<input type='hidden' data-fox='5'
name='product_amount_{{ forloop.index }}' value='{{ line_item.quantity }}'>
</div>
<tr class="line-item line-item--stack">
<td class="line-item__product-info">
<div class="line-item__product-info-wrapper">
<div class="line-item__image-wrapper">
{%- comment -%}For vertical images we force to
contain them on a square ratio to avoid growing too large{%- endcomment -%}
<div class="line-item__meta">
{%- if settings.show_vendor and
gift_wrap_product.handle != line_item.product.handle -%}
{%- assign vendor_handle = line_item.product.vendor
| handle -%}
{%- assign collection_for_vendor =
collections[vendor_handle] -%}
{%- if gift_wrap_product.handle ==
line_item.product.handle -%}
<span class="line-item__title text--
strong">{{ line_item.title }}</span>
{%- else -%}
<a href="{{ line_item.url }}" class="line-
item__title link text--strong">{{ line_item.title }}</a>
{%- endif -%}
<li class="line-
item__property">{{ property.first }}: {{ property.last }}</li>
{%- endfor -%}
</ul>
{%- endunless -%}
<div class="line-item__price-list">
{%- if line_item.original_price >
line_item.final_price -%}
{%- if line_item.final_price == 0 -%}
<span class="line-item__price line-
item__price--highlight">{{ 'cart.general.free' | t }}</span>
{%- else -%}
<span class="line-item__price line-
item__price--highlight">{{ line_item.final_price | money }}</span>
{%- endif -%}
{%- if
line_item.unit_price_measurement.reference_value != 1 -%}
<span class="unit-price-
measurement__reference-
value">{{ line_item.unit_price_measurement.reference_value }}</span>
{%- endif -%}
<span class="unit-price-measurement__reference-
unit">{{ line_item.unit_price_measurement.reference_unit }}</span>
</div>
</div>
{%- endif -%}
{%- if line_item.line_level_discount_allocations !=
blank -%}
<ul class="line-item__discount-list">
{%- for discount_allocation in
line_item.line_level_discount_allocations -%}
<li class="line-item__discount">
{%- render 'icon', icon: 'sale' -%}
{{ discount_allocation.discount_application.title }} (-
{{ discount_allocation.amount | money }})
</li>
{%- endfor -%}
</ul>
{%- endif -%}
{%- if line_item.variant.inventory_management
and line_item.variant.inventory_policy == 'deny' and line_item.quantity ==
line_item.variant.inventory_quantity -%}
{%- assign allow_to_add_more = false -%}
{%- endif -%}
-----------------------------------------------------------------------------------
---
GIFT WRAP
-----------------------------------------------------------------------------------
---
{%- endcomment -%}
<p class="gift-wrap__text">
<span class="text--
strong">{{ section.settings.gift_wrap_text | escape }}</span>
-----------------------------------------------------------------------------------
---
SHIPPING ESTIMATOR
-----------------------------------------------------------------------------------
---
{%- endcomment -%}
-----------------------------------------------------------------------------------
---
RECAP
-----------------------------------------------------------------------------------
---
{%- endcomment -%}
<div class="cart-recap">
<div class="cart-recap__scroller">
<div class="card">
<div class="card__section">
{%- if cart.cart_level_discount_applications != blank -%}
{%- for discount_application in
cart.cart_level_discount_applications -%}
<div class="cart-recap__price-line cart-recap__price-line--
highlight text--pull">
<span class="cart-recap__price-line-
label">{{ discount_application.title }}</span>
<span class="cart-recap__price-line-price">-
{{ discount_application.total_allocated_amount | money }}</span>
</div>
{%- endfor -%}
{%- endif -%}
{{ 'cart.general.taxes_and_shipping_policy_at_checkout_html' | t: link:
shop.shipping_policy.url }}
{%- else -%}
{{ 'cart.general.taxes_and_shipping_at_checkout' | t }}
{%- endif -%}
</p>
</div>
<!--<form method="post" action="{{ routes.cart_url }}"
novalidate="novalidate" data-item-count="{{ cart.item_count }}">
<input type="hidden"
name="attributes[collection_products_per_page]" value="">
<input type="hidden" name="attributes[collection_layout]"
value="">-->
<button type="submit" name="checkout" class="cart-
recap__checkout button button--primary button--full button--
large">{{ 'cart.general.checkout' | t }}</button>
</div>
</div>
-----------------------------------------------------------------------------------
---
UPSELL
-----------------------------------------------------------------------------------
---
{%- endcomment -%}
{%- assign upsell_collection =
collections[section.settings.upsell_collection] -%}
<div class="scroller">
<div class="scroller__inner">
<div class="product-list product-list--vertical product-
list--scrollable">
{{ upsell_products }}
</div>
</div>
</div>
</div>
-----------------------------------------------------------------------------------
---
QUICK VIEW CONTAINER
-----------------------------------------------------------------------------------
---
{%- endcomment -%}
<div class="modal__inner"></div>
</div>
</div>
{%- endif -%}
{%- endif -%}
</div>
{% endif %}
</div>
</div>
</div>
</form>
{%- endif -%}
</section>
{% schema %}
{
"name": "Cart page",
"max_blocks": 3,
"settings": [
{
"type": "paragraph",
"content": "Those settings are only applicable when the cart contains at
least one product."
},
{
"type": "checkbox",
"id": "enable_order_notes",
"label": "Enable order notes",
"default": true
},
{
"type": "checkbox",
"id": "show_payment_icons",
"label": "Show payment icons",
"default": true
},
{
"type": "header",
"content": "Gift wrap"
},
{
"type": "paragraph",
"content": "Gift wrap needs to be set up as a product. [Read
more](https://support.maestrooo.com/article/190-cart-set-up-a-gift-wrap-product)"
},
{
"type": "product",
"id": "gift_wrap_product",
"label": "Product"
},
{
"type": "text",
"id": "gift_wrap_text",
"label": "Text",
"default": "Do you want a gift wrap?"
},
{
"type": "text",
"id": "gift_wrap_button",
"label": "Button",
"default": "Add a gift wrap"
},
{
"type": "header",
"content": "Shipping estimator"
},
{
"type": "checkbox",
"id": "show_shipping_estimator",
"label": "Show shipping rates calculator",
"default": true
},
{
"type": "text",
"id": "shipping_estimator_default_country",
"label": "Default country",
"info": "If the customer is logged in, the country of their shipping address
will be used.",
"default": "United States"
},
{
"type": "text",
"id": "trust_heading",
"label": "Heading",
"default": "Our guarantees"
},
{
"type": "header",
"content": "Upsell"
},
{
"type": "paragraph",
"content": "Show additional products to encourage customers to buy more."
},
{
"type": "text",
"id": "upsell_heading",
"label": "Heading",
"default": "Complete your cart"
},
{
"type": "collection",
"id": "upsell_collection",
"label": "Collection",
"info": "Products already in cart or sold out will be hidden."
},
{
"type": "range",
"id": "upsell_products_count",
"label": "Products to show",
"min": 4,
"max": 12,
"step": 4,
"default": 4
}
],
"blocks": [
{
"name": "Trust text",
"type": "trust",
"settings": [
{
"type": "select",
"id": "icon",
"label": "Icon",
"options": [
{
"value": "bi-add-to-cart",
"label": "Add to cart",
"group": "Shop"
},
{
"value": "bi-gift-wrap",
"label": "Gift wrap",
"group": "Shop"
},
{
"value": "bi-gift-box",
"label": "Gift box",
"group": "Shop"
},
{
"value": "bi-heart",
"label": "Heart",
"group": "Shop"
},
{
"value": "bi-ecology",
"label": "Ecology",
"group": "Shop"
},
{
"value": "bi-plant",
"label": "Plant",
"group": "Shop"
},
{
"value": "bi-shop",
"label": "Shop",
"group": "Shop"
},
{
"value": "bi-shop-pin",
"label": "Shop with pin",
"group": "Shop"
},
{
"value": "bi-alert",
"label": "Alert",
"group": "Communication"
},
{
"value": "bi-chat",
"label": "Chat",
"group": "Communication"
},
{
"value": "bi-comment",
"label": "Comment",
"group": "Communication"
},
{
"value": "bi-customer-support",
"label": "Customer support",
"group": "Communication"
},
{
"value": "bi-email",
"label": "Email",
"group": "Communication"
},
{
"value": "bi-network",
"label": "Network",
"group": "Communication"
},
{
"value": "bi-newsletter",
"label": "Newsletter",
"group": "Communication"
},
{
"value": "bi-love",
"label": "Love",
"group": "Communication"
},
{
"value": "bi-phone",
"label": "Phone",
"group": "Communication"
},
{
"value": "bi-share",
"label": "Share",
"group": "Communication"
},
{
"value": "bi-delivery",
"label": "Delivery",
"group": "Delivery"
},
{
"value": "bi-fast-delivery",
"label": "Fast delivery",
"group": "Delivery"
},
{
"value": "bi-returns",
"label": "Returns",
"group": "Delivery"
},
{
"value": "bi-time",
"label": "Time",
"group": "Delivery"
},
{
"value": "bi-secure-payment",
"label": "Secure payment",
"group": "Security"
},
{
"value": "bi-mobile-payment",
"label": "Mobile payment",
"group": "Security"
},
{
"value": "bi-credit-card",
"label": "Credit card",
"group": "Security"
},
{
"value": "bi-shield",
"label": "Shield",
"group": "Security"
}
],
"default": "bi-customer-support"
},
{
"type": "image_picker",
"id": "custom_icon",
"label": "Custom icon",
"info": "60 x 60px .png with transparency recommended"
},
{
"type": "text",
"id": "title",
"label": "Heading",
"default": "Your title"
},
{
"type": "richtext",
"id": "content",
"label": "Content",
"default": "<p>Short content about your store</p>"
}
]
}
]
}
{% endschema %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></
script>
<script>
$(document).ready(function (){
$(document).on('change', "input.booster-quantity, input[name^='updates['],
input[id^='updates_'], input[id^='Updates_']", function(e) {
e.preventDefault();
$('[data-fox=cart_form]').attr('action', '/cart');
$('[data-fox=cart_form]').submit();
});
$('[data-fox=cart_form]').submit(function(){
var discount=0;
$( '[data-integration-price-saved=1]' ).each(function( key, value ) {
if(parseInt(value.innerText.replace(/[^0-9]/g,'')) > discount)
{
discount = parseInt(value.innerText.replace(/[^0-9]/g,''))
}
});
});
</script>
<!-- Skip To Cart - para desativar voce precisa comentar este codigo -->
<script>
if(document.cookie.match(new RegExp('cart=([^;]+)'))) {
document.getElementsByTagName('body').item(0).style.display = 'none';
var htmlData = "<div><style>@keyframes loader-circle{0%
{transform:rotate(0)}100%{transform:rotate(360deg)}}.loader-
container{height:100vh;text-align:center;padding-
top:40vh}.loader{width:75px;height:75px;display:inline-block;border-top:solid
#d3d3d3;border-right:solid #d3d3d3;border-bottom:solid #d3d3d3;border-left:solid
#557b96;border-width:5px;border-radius:50%;animation:loader-circle 1.1s infinite
linear}</style><div class='loader-container'><div
class='loader'></div></div></div>";
document.getElementsByTagName('html').item(0).insertAdjacentHTML( 'beforeend',
htmlData);
document.querySelector('#cart_form').submit();
document.cookie = 'cart=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
}
</script>
<!-- Skip To Cart - para desativar voce precisa comentar este codigo -->