Product-Test
{% assign view_size_chart = false %} {% assign display_countdown = false %} {% assign display_limited = false %} {% assign display_limited = false %} {% assign custom_tabs = false %} {% assign upsell_enable = false %} {% assign quantity = 100 %} {% assign qty_sold = 0 %} {% assign expire = 72 %} {% assign displayquantity = 0 %} {% assign startdate = product.published_at | date: "%m/%d/%Y %H:%M:%S" %} {% assign checklist = "" %} {% assign personalisation_string = "" %} {% assign size_chart_page = settings.sizing_chart_page %} {% assign estimateStartDate = settings.delivery_start %} {% assign estimateEndDate = settings.delivery_end %} {% for tag in product.tags %} {% if tag == "view-size-chart" %}{% assign view_size_chart = true %}{% endif %} {% if tag == "display-countdown" %}{% assign display_countdown = true %}{% endif %} {% if tag == "display-limited" %}{% assign display_limited = true %}{% endif %} {% if tag == "custom-tabs" %}{% assign custom_tabs = true %}{% endif %} {% if tag == "upsell-enable" %}{% assign upsell_enable = true %}{% endif %} {% if tag contains "quantity-" %}{% capture quantity %}{{ tag | replace: "quantity-","" }}{% endcapture %}{% endif %} {% if tag contains "quantitysold-" %}{% capture qty_sold %}{{ tag | replace: "quantitysold-","" }}{% endcapture %}{% endif %} {% if tag contains "limited-default-" %}{% capture limited_default %}{{ tag | replace: "limited-default-","" }}{% endcapture %}{% endif %} {% if tag contains "expire-" %}{% capture expire %}{{ tag | replace: "expire-","" }}{% endcapture %}{% endif %} {% if tag contains "checklist-" %}{% capture checklist %}{% if checklist == "" %}{{ tag | replace: "checklist-","" }}{% else %}{{ checklist }}|||{{ tag | replace: "checklist-","" }}{% endif %}{% endcapture %}{% endif %} {% if tag contains "personalisation-" %}{% capture personalisation_string %}{% if personalisation_string == "" %}{{ tag | replace: "personalisation-","" }}{% else %}{{ personalisation_string }}|||{{ tag | replace: "personalisation-","" }}{% endif %}{% endcapture %}{% endif %} {% if tag contains "personalization-" %}{% capture personalisation_string %}{% if personalisation_string == "" %}{{ tag | replace: "personalization-","" }}{% else %}{{ personalisation_string }}|||{{ tag | replace: "personalization-","" }}{% endif %}{% endcapture %}{% endif %} {% if tag contains "sizechart-" %}{% capture size_chart_page %}{{ tag | replace: "sizechart-","" }}{% endcapture %}{% endif %} {% if tag contains "displayquantity-" %}{% capture displayquantity %}{{ tag | replace: "displayquantity-","" }}{% endcapture %}{% endif %} {% if tag contains "estimatestart-" %}{% capture estimateStartDate %}{{ tag | replace: "estimatestart-","" }}{% endcapture %}{% endif %} {% if tag contains "estimateend-" %}{% capture estimateEndDate %}{{ tag | replace: "estimateend-","" }}{% endcapture %}{% endif %} {% endfor %}
{% endif %} {% if settings.display_review_star_product %}
{% if settings.display_sizing_chart %} {% if view_size_chart %}
{% endif %} {% endif %}{% if settings.show_related_products %}
{% if count == 0 %}{% endif %} {% endif %} {% if settings.show_recent_products %}
{% include 'recently-viewed' %} {% endif %}{% schema %} { "name": "Product Page Settings", "settings": [ { "type": "checkbox", "id": "use_cross_sell", "label": "Enable Cross-Sell App for Related Products", "default": false } ], "presets": [ { "name": "Product page Section", "category": "General" } ] } {% endschema %}
{% if product.metafields.loox.num_reviews %}
{% endif %}
{% assign current_variant = product.selected_or_first_available_variant %} {% include 'breadcrumb' %}
{{ collection.title }}
{% if collection.handle == "all-products" %}- {% for link in linklists.main-menu.links %}
- {{ link.title }} {% endfor %}
- {% for link in linklists[collection.handle].links %}
- {{ link.title | link_to: link.url }} {% endfor %}
- {% for product in collection.products %}
- {{ product.title }} {% endfor %}
{{ linklists[settings.collection-side-1].title }}
{% endif %}- {% for link in linklists[settings.collection-side-1].links %}
- {{ link.title | link_to: link.url }} {% endfor %}
{{ linklists[settings.collection-side-2].title }}
- {% for link in linklists[settings.collection-side-2].links %}
- {{ link.title | link_to: link.url }} {% endfor %}
{{ linklists[settings.collection-side-3].title }}
- {% for link in linklists[settings.collection-side-3].links %}
- {{ link.title | link_to: link.url }} {% endfor %}
{{ linklists[settings.collection-side-4].title }}
- {% for link in linklists[settings.collection-side-4].links %}
- {{ link.title | link_to: link.url }} {% endfor %}
{% include 'dropdown-filter' %}
{% endif %} {% if settings.shop-by-designer %} {% if collection.handle == "all" %} {% if settings.shop-by-designer-title == blank %}
{{ 'collections.sidebar.designers' | t }}
{% else %}{{ settings.shop-by-designer-title }}
{% endif %}- {% for product_vendor in shop.vendors %}
- {{ product_vendor | link_to_vendor }} {% endfor %}
{{ 'collections.sidebar.designers' | t }}
{% else %}{{ settings.shop-by-designer-title }}
{% endif %}- {% for product_vendor in collection.all_vendors %}
- {{ product_vendor | link_to_vendor }} {% endfor %}
{% if settings.badges_enable_product %} {% include 'badges' %} {% endif %}
{% if i > 1 %}
- {% assign i = 0 %} {% for image in product.images %} {% unless image.alt contains "facebook-meta" %}
- {% if settings.video_embading %} {% if image.alt contains "youtube" or image.alt contains "vimeo" %} {% else %} {% endif %} {% else %} {% endif %}
{% if settings.video_embading %} {% if image.alt contains "youtube" or image.alt contains "vimeo" %} {% else %} {% endif %} {% else %} {% endif %}
{% assign i = i | plus: 1 %} {% endunless %} {% endfor %}
- {% assign i = 0 %} {% for image in product.images %} {% unless image.alt contains "facebook-meta" %}
- {% if settings.video_embading %} {% if image.alt contains "youtube" or image.alt contains "vimeo" %}
{% else %}
{% endif %} {% else %}
{% endif %}
{% assign i = i | plus: 1 %} {% endunless %} {% endfor %}
{{ product.title }}
{% if settings.product_flash_sold_enable %}
sold in last hours
{% endif %}
{% if settings.enable_product_progressbar and product.available %}
{% endif %} {% assign display = 'true' %} {% for tag in product.tags %} {% if tag == "display-shipping-countdown" %} {% assign display = 'false' %} {% endif %} {% endfor %} {% if display == "true" %} {% if settings.enable_delivery_option %}
{% endif %} {% endif %} {% if settings.visitor_counter_enable %} {% include 'visitor-counter' %} {% endif %} {% if settings.enable_countdown_timer %} {% if display_countdown %} {% if settings.timer_model == "timer_model_1" %}
{% if settings.enable_progressbar_text %}
{{ settings.enable_progressbar_text_value }}
{% endif %} {% assign inventory_quantity = 0 %} {% for variant in product.variants %} {% capture inventory_quantity %} {{ inventory_quantity | plus: variant.inventory_quantity }} {% endcapture %} {% endfor %} {% if quantity == 0 %} {% assign quantity = 100 %} {% else %} {% assign quantity = quantity | times: 1 %} {% endif %} {% if qty_sold == 0 %} {% assign defaultSold = quantity | times: 80 | divided_by: 100 %} {% assign totalSold = inventory_quantity | plus: defaultSold %} {% if totalSold >= quantity %} {% assign defaultSold = quantity | times: 60 | divided_by: 100 %} {% assign totalSold = inventory_quantity | plus: defaultSold %} {% if totalSold >= quantity %} {% assign defaultSold = quantity | times: 40 | divided_by: 100 %} {% assign totalSold = inventory_quantity | plus: defaultSold %} {% if totalSold >= quantity %} {% assign defaultSold = quantity | times: 20 | divided_by: 100 %} {% assign totalSold = inventory_quantity | plus: defaultSold %} {% if totalSold >= quantity %} {% assign totalSold = inventory_quantity | times: 1 %} {% if totalSold >= quantity %} {% assign lastTwo = totalSold | slice: -2, 2 %} {% assign remaining = totalSold | replace: lastTwo, '' %} {% if lastTwo != '00' %} {% assign remaining = remaining | plus: 1 %} {% assign remaining = remaining | append: '00' %} {% assign quantity = remaining | times: 1 %} {% else %} {% assign quantity = quantity | plus: totalSold | times: 1 %} {% endif %} {% endif %} {% endif %} {% endif %} {% endif %} {% endif %} {% else %} {% assign defaultSold = qty_sold | times: 1 %} {% if settings.display_quantity_count_real %} {% assign totalSold = inventory_quantity | plus: defaultSold %} {% else %} {% assign totalSold = defaultSold %} {% endif %} {% if totalSold >= quantity %} {% assign plus_qty = totalSold | minus: quantity | plus: 3 %} {% assign quantity = quantity | plus: plus_qty %} {% endif %} {% endif %} {% if display_limited %} {% assign displayquantity = displayquantity | times: 1 %} {% if displayquantity > 0 %} {% assign quantity = displayquantity | plus: 100 %} {% assign totalSold = displayquantity | plus: 100 | minus: displayquantity %} {% endif %} {% unless product.available %} {% assign totalSold = quantity %} {% endunless %} {% assign qtyleft = quantity | minus: totalSold %}
{{ 'products.progress_bar.limited_edition' | t }}: {{ 'products.progress_bar.only' | t }} {% if qtyleft > 0 %}{{ qtyleft }}{% else %}{{ limited_default }}{% endif %} {{ 'products.progress_bar.left' | t }}.
{% else %} {% unless product.available %} {% assign totalSold = quantity %} {% endunless %}{{ totalSold }}{% if settings.enable_total_quantity %} of {{ quantity }}{% endif %} {{ 'products.progress_bar.sold' | t }}
{% endif %}Order in the next
to get it by
{% if settings.countdown_timer_text != "" %}
{% endif %} {% if settings.timer_model == "timer_model_2" %}
{{ settings.countdown_timer_text }}
{% endif %}
{% if settings.countdown_timer_text != "" %}
{% endif %} {% endif %} {% endif %} {% if settings.product_hide_motivator_text %}
{{ settings.countdown_timer_text }}
{% endif %}
{{ settings.product_motivator_text }}{% if settings.promotion_display_user_country %} {% endif %}
{% endif %} {% if settings.product_we_ship_fast_hide %} {% if settings.product_we_ship_fast == "" %} {{ 'products.call_to_action.ship_fast_1' | t }} {{ 'products.call_to_action.ship_fast_2' | t }} {% else %} {{ settings.product_we_ship_fast }} {% endif %} {% endif %} {% if settings.topreasons_display %}{% include 'top-reasons' %}{% endif %}{% if custom_tabs %} {{ product.description }} {% else %} {% if settings.enable_product_tabs %} {% assign tab_cur = 0 %}
{% endif %}
{% endif %} {% for i in (1..5) %} {% assign enabled = 'enable_tab_' | append: i %} {% assign text = 'tab_' | append: i | append: '_text' %} {% if settings[enabled] %}
{% endif %}
{% else %} {% unless settings.benifit_bullets %}
{% if settings.enable_description_tab %}
{% endif %} {% if settings.enable_shipping_tab %}
{% endif %}
{% endif %} {% for i in (1..5) %} {% assign enabled = 'enable_tab_' | append: i %} {% assign heading = 'tab_' | append: i | append: '_heading' %} {% assign text = 'tab_' | append: i | append: '_text' %} {% if settings[enabled] %}
{% endif %} {% endfor %} {% if settings.enable_product_review %}
{% endif %}
{% if settings.shipping_tab_header != "" %}{{ settings.shipping_tab_header }}{% else %} {% endif %}
{% if settings.shipping_text != "" %}{{ settings.shipping_text }} {% endif %} {% if settings.enable_country_flag %} {% endif %}
{% if settings.enable_delivery_option %}
{% if settings.delivery_text != "" %}{{ settings.delivery_text }}{% else %} {% endif %}
{% if settings.delivery_text_1 != "" %}{{ settings.delivery_text_1 }} {% endif %} and
{% if settings.delivery_info_text != "" %}{{ settings.delivery_info_text }}{% endif %}{{ settings[text] }}
- {% if settings.enable_description_tab %}
- {{ settings.product_description_tab_heading }} {% endif %} {% if settings.enable_shipping_tab %}
- {{ settings.shipping_tab_header }} {% endif %} {% for i in (1..5) %} {% assign enabled = 'enable_tab_' | append: i %} {% assign heading = 'tab_' | append: i | append: '_heading' %} {% if settings[enabled] %}
- {{ settings[heading] }} {% endif %} {% endfor %} {% if settings.enable_product_review %}
- {{ settings.product_review_tab_heading }} {% endif %}
{% unless settings.benifit_bullets %} {{ product.description }} {% else %} {{ product.description | replace: '
{% endif %} {% if settings.enable_shipping_tab %}
- ', '
- ', '
- ' }} {% endunless %} {% if settings.product_description %} {% endif %}
- ' | replace: '
{% if settings.shipping_tab_header != "" %}{{ settings.shipping_tab_header }}{% else %} {% endif %}
{% if settings.shipping_text != "" %}{{ settings.shipping_text }} {% endif %} {% if settings.enable_country_flag %} {% endif %}
{% if settings.enable_delivery_option %}
{% if settings.delivery_text != "" %}{{ settings.delivery_text }}{% else %} {% endif %}
{% if settings.delivery_text_1 != "" %}{{ settings.delivery_text_1 }} {% endif %} and
{% if settings.delivery_info_text != "" %}{{ settings.delivery_info_text }}{% endif %}{{ settings[text] }}
{% endif %} {% endfor %} {% if settings.enable_product_review %}
{{ product.metafields.spr.reviews }}
{{ product.description }}
{% else %}
{{ product.description | replace: '
{% endunless %} {% if settings.product_description %}
{% endif %} {% if settings.enable_product_review %}
- ', '
- ', '
- ' }}
- ' | replace: '
{{ product.metafields.spr.reviews }}
{% endif %} {% endif%} {% endif%}
×
{{ 'products.general.size_chart_title' | t }}
{{ pages[size_chart_page].content }}
{{ 'products.general.related_products_title' | t }}
{% if section.settings.use_cross_sell == true %} {% include 'cross-sell' %} {% else %}{% assign count = 0 %} {% assign type = "r" %} {% assign curr_title = product.title %} {% for collection in product.collections %} {% for product in collections[collection.handle].products %} {% if product.title != curr_title %} {% if count < 5 %} {% assign count = count | plus: 1 %} {% include 'product-grid-item' with type %} {% else %} {% break %} {% endif %} {% endif %} {% endfor %} {% if count >= 5 %} {% break %} {% endif %} {% endfor %}
{% endif %}{% include 'recently-viewed' %} {% endif %}{% schema %} { "name": "Product Page Settings", "settings": [ { "type": "checkbox", "id": "use_cross_sell", "label": "Enable Cross-Sell App for Related Products", "default": false } ], "presets": [ { "name": "Product page Section", "category": "General" } ] } {% endschema %}
{{ product.metafields.loox.reviews }}