Advertisement
customfiy

skip redirect customify

Apr 4th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. {% assign show_single_variant_details = true %}
  2.  
  3. {% capture url %}{% if collection %}{{ product.url | within: collection }}{% else %}{{ product.url }}{% endif %}{% endcapture %}
  4.  
  5. {% assign max_cols = section.settings.products_per_row | default: 4 %}
  6.  
  7.  
  8. {% comment %} Un-comment the following lines to show larger product images on the homepage. Can be 2, 3, 4, 6. {% endcomment %}
  9. {% comment %}
  10. {% if template contains 'index' %}
  11. {% assign max_cols = 2 %}
  12. {% endif %}
  13. {% endcomment %}
  14.  
  15. <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">
  16. <div class="image">
  17. <div class="inner">
  18. {% if collection.title == 'Create Your Own' %}
  19. <a href='{{ shop.url }}/apps/customify/view/{{ product.handle }}/{{ product.id }}'>
  20. {% else %}
  21. <a href="{{ url }}">
  22. {% endif %}
  23. {% include 'responsive-image', image: product.featured_image %}
  24. </a>
  25.  
  26. {% if settings.prod_quick_buy_show %}
  27. <div class="quick-buy-wrap pos-{{ settings.prod_quick_buy_pos }}">
  28. <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>
  29. </div>
  30.  
  31. {% include 'quick-buy-placeholder' %}
  32. {% endif %}
  33. </div>
  34.  
  35. {% include 'product-label' %}
  36. </div>
  37. <div class="{% if settings.prod_block_layout contains 'beside' %}ft ftw ft-nm{% endif %}">
  38. <div class="ftr">
  39. {% if collection.title == 'Create Your Own' %}
  40. <a href='{{ shop.url }}/apps/customify/view/{{ product.handle }}/{{ product.id }}'>{{ product.title }}</a>
  41.  
  42. {% else %}
  43. <a class="title ftc" href="{{ url }}">{{ product.title }}</a>
  44. {% endif %}
  45. <div class="price ftc {% if product.compare_at_price > product.price %}on-sale{% endif %}">
  46. {% if product.price_varies %}
  47. <span class="from">{{ 'products.general.from' | t }}</span>
  48. {% endif %}
  49. <span class="amount theme-money">{{ product.price | money }}</span>
  50. {% if product.compare_at_price > product.price %}
  51. <del><span class="theme-money">{{ product.compare_at_price | money }}</span></del>
  52. {% endif %}
  53. </div>
  54. </div>
  55. </div>
  56.  
  57. <div class="themed-product-reviews">
  58. <span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>
  59. </div>
  60. </div>
  61. {% assign forloop_index = false %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement