Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="block2">
- {% assign product_created_at = product.created_at | date: '%s' %}
- {% assign time_ago = 'now' | date: '%s' | minus: product_created_at | divided_by: 86400 %}
- {% assign product_new_time = settings.product_new_time | times: 1 %}
- <div class="block2-img wrap-pic-w of-hidden pos-relative
- {% if time_ago < product_new_time %}block2-labelnew{% endif %}
- {% if on_sale %} block2-labelsale{% endif %}">
- <a href="{{ product.url | within: collection }}">
- <img class="" src="{{ product.featured_image.src | img_url: img_size }}" alt="{{ product.featured_image.alt | escape }}">
- </a>
- </div>
- </div>
- <div class="block2-txt p-t-20">
- <a href="{{ product.url | within: collection }}" class="block2-name dis-block s-text3 p-b-5">
- {{ product.title }}
- </a>
- {% if product.compare_at_price > product.price %}
- <span class="block2-oldprice m-text7 p-r-5"> {{ product.compare_at_price_max | money }} </span> <span class="block2-newprice m-text8 p-r-5"> {{ product.price | money }} </span>
- {% else %}
- <span class="block2-price m-text6 p-r-5"> {{ product.price | money }} </span>
- {% endif %}
- </div>
Add Comment
Please, Sign In to add comment