Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. <form action="/cart/add" data-productid="{{product.id}}" method="post" enctype="multipart/form-data" id="AddToCartForm" class="form-vertical product-form product-form-{{ section.id }}" data-section="{{ section.id }}">
  2.  
  3. {% if product.available %}{% include 'subscription-product' %}{% endif %}<br>
  4.  
  5.  
  6. <div class="product-title">
  7. <h1 itemprop="name">{{ product.title }}</h1>
  8. {% if section.settings.show_vendors %}
  9. <span class="vendor">{{ product.vendor | link_to_vendor }}</span>
  10. {% endif %}
  11. </div>
  12.  
  13. <div class="selection-wrapper price product-single__price-{{ section.id }}">
  14. <span class="money" id="ProductPrice-{{ section.id }}" itemprop="price" content="{{ current_variant.price | money_without_currency | remove: ',' }}">{{ current_variant.price | money }}</span>
  15. {% if current_variant.compare_at_price > current_variant.price %}
  16. <p id="ComparePrice-{{ section.id }}" style="display:block;">
  17. {{ 'products.product.compare_at' | t }} <span class="money">{{ current_variant.compare_at_price | money }}</span>
  18. </p>
  19. {% else %}
  20. <p id="ComparePrice-{{ section.id }}" style="display:none;">
  21. {{ 'products.product.compare_at' | t }} <span class="money">{{ current_variant.compare_at_price | money }}</span>
  22. </p>
  23. {% endif %}
  24. </div>
  25.  
  26. {% comment %}
  27. Collection of variant options
  28. {% endcomment %}
  29. {% unless product.options.size == 1 and product.variants[0].title == 'Default Title' %}
  30. <div class="selection-wrapper variant js">
  31. <div class="variant-grid">
  32. {% for option in product.options_with_values %}
  33. <div class="selector-wrapper">
  34. <label {% if option.name == 'default' %}class="label-hidden"{% endif %} for="SingleOptionSelector-{{ forloop.index0 }}">
  35. {{ option.name }}
  36. </label>
  37.  
  38. <select class="single-option-selector single-option-selector-{{ section.id }}" id="SingleOptionSelector-{{ forloop.index0 }}" data-name="{{ option.name }}" data-index="option{{ forloop.index }}">
  39. {% for value in option.values %}
  40. <option value="{{ value | escape }}" {% if option.selected_value == value %}selected="selected"{% endif %}>
  41. {{ value }}
  42. </option>
  43. {% endfor %}
  44. </select>
  45. </div>
  46. {% endfor %}
  47. </div>
  48. </div>
  49. {% endunless %}
  50.  
  51. {% comment %}
  52. Primary variant select controlled JS
  53. {% endcomment %}
  54. <div class="selection-wrapper variant no-js">
  55. <div class="selector-wrapper full-width">
  56. <select name="id" data-productid="{{product.id }}" id="ProductSelect-{{ section.id }}" data-section="{{ section.id }}" class="product-form__variants no-js">
  57. {% for variant in product.variants %}
  58.  
  59. <option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} value="{{ variant.id }}" data-sku="{{ variant.sku }}">
  60. {{ variant.price | money_with_currency }}
  61. </option>
  62.  
  63. {% endfor %}
  64. </select>
  65. </div>
  66. </div>
  67.  
  68.  
  69. <div class="error cart-error cart-error-{{ section.id }}"></div>
  70. <div class="selection-wrapper cart">
  71.  
  72. <div class="button-wrapper">
  73. <button type="submit" name="add" id="AddToCart-{{ section.id }}" class="button solid " >
  74. <span id="AddToCartText-{{ section.id }}">
  75.  
  76. Add To Cart
  77.  
  78. </span>
  79. </button>
  80.  
  81. </div>
  82.  
  83. </div>
  84.  
  85. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement