Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. line 3:
  2. <div class="flex">
  3. <p class="price{%- unless product.price_varies %} productPrice{%- endunless -%}">
  4. {%- if linklists[product.handle].links.size == 0 -%}
  5. {%- if product.price_varies -%}
  6. {{ product.price_min | money }}–{{ product.price_max | money }}
  7. {%- elsif on_sale -%}<ins id="product-price">{{ current_variant.price | money }}</ins><del id="old-product-price">{{ product.selected_or_first_available_variant.compare_at_price | money }}</del>
  8. {%- else -%}
  9. <span id="product-price">{{ current_variant.price | money }}</span>
  10. {%- endif -%}
  11. {%- else -%}
  12. {%- if on_sale -%}
  13. {{ product.price | money }}–{{ product.compare_at_price | money }}
  14. {%- else -%}
  15. {{ product.price | money }}
  16. {%- endif -%}
  17. {%- endif -%}
  18. </p>
  19. </div>
  20. {%- else -%}
  21. <div class="price-stock flex between-xs middle-xs mt__15 pb__15 mb__20" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
  22. <div>
  23. <p class="price{%- unless product.price_varies %} productPrice{%- endunless -%}">
  24. {%- if linklists[product.handle].links.size == 0 -%}
  25. {%- if product.price_varies -%}
  26. {{ product.price_min | money }}–{{ product.price_max | money }}
  27. {%- elsif on_sale -%}<ins id="product-price">{{ current_variant.price | money }}</ins><del id="old-product-price">{{ product.selected_or_first_available_variant.compare_at_price | money }}</del>
  28. {%- else -%}
  29. <span id="product-price">{{ current_variant.price | money }}</span>
  30. {%- endif -%}
  31. {%- else -%}
  32. {%- if on_sale -%}
  33. {{ product.price | money }}–{{ product.compare_at_price | money }}
  34. {%- else -%}
  35. {{ product.price | money }}
  36. {%- endif -%}
  37. {%- endif -%}
  38. </p>
  39. </div>
  40. <div class="availability{%- if sold_out %} value_out{%- else %} value_in{%- endif -%}" id="product-available{%- if quick_review == 'quick_review' -%}_quick{%- endif -%}">{%- if sold_out -%}{{ 'products.product.outofstock' | t }}{%- else -%}{{ 'products.product.in_stock' | t }}{%- endif -%}</div>
  41. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement