Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% assign show_single_variant_details = true %}
- {% capture url %}{% if collection %}{{ product.url | within: collection }}{% else %}{{ product.url }}{% endif %}{% endcapture %}
- {% assign max_cols = section.settings.products_per_row | default: 4 %}
- {% comment %} Un-comment the following lines to show larger product images on the homepage. Can be 2, 3, 4, 6. {% endcomment %}
- {% comment %}
- {% if template contains 'index' %}
- {% assign max_cols = 2 %}
- {% endif %}
- {% endcomment %}
- <div class="product-block {% if settings.label_soldout_show and product.available == false %}sold-out {% endif %}{{ product-block | default: 'flex column' }} max-cols-{{ max_cols }} min-cols-2">
- <div class="image">
- <div class="inner">
- {% if collection.title == 'Create Your Own' %}
- <a href='{{ shop.url }}/apps/customify/view/{{ product.handle }}/{{ product.id }}'>
- {% else %}
- <a href="{{ url }}">
- {% endif %}
- {% include 'responsive-image', image: product.featured_image %}
- </a>
- {% if settings.prod_quick_buy_show %}
- <div class="quick-buy-wrap pos-{{ settings.prod_quick_buy_pos }}">
- <a class="quick-buy {% if settings.prod_quick_buy_pos == 'middle' %}giant{% else %}big{% endif %}-round-button" href="{{ url }}">{{ 'products.general.quick_buy_html' | t }}</a>
- </div>
- {% include 'quick-buy-placeholder' %}
- {% endif %}
- </div>
- {% include 'product-label' %}
- </div>
- <div class="{% if settings.prod_block_layout contains 'beside' %}ft ftw ft-nm{% endif %}">
- <div class="ftr">
- {% if collection.title == 'Create Your Own' %}
- <a href='{{ shop.url }}/apps/customify/view/{{ product.handle }}/{{ product.id }}'>{{ product.title }}</a>
- {% else %}
- <a class="title ftc" href="{{ url }}">{{ product.title }}</a>
- {% endif %}
- <div class="price ftc {% if product.compare_at_price > product.price %}on-sale{% endif %}">
- {% if product.price_varies %}
- <span class="from">{{ 'products.general.from' | t }}</span>
- {% endif %}
- <span class="amount theme-money">{{ product.price | money }}</span>
- {% if product.compare_at_price > product.price %}
- <del><span class="theme-money">{{ product.compare_at_price | money }}</span></del>
- {% endif %}
- </div>
- </div>
- </div>
- <div class="themed-product-reviews">
- <span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>
- </div>
- </div>
- {% assign forloop_index = false %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement