optimize cart drawer
parent
dd9f48eb89
commit
38dfc509fc
|
@ -227,7 +227,7 @@
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.354.646a.5.5 0 00-.708 0L5 4.293 1.354.646a.5.5 0 00-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 000-.708z" fill="currentColor">
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.354.646a.5.5 0 00-.708 0L5 4.293 1.354.646a.5.5 0 00-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 000-.708z" fill="currentColor">
|
||||||
</path></svg>
|
</path></svg>
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
<div class="accordion__content rte" id="CollapsibleAccordion-collapsible_row_4Mjp9U-template--22918251282708__collapsible_content_6VWmhQ" role="region" aria-labelledby="Summary-collapsible_row_4Mjp9U-template--22918251282708__collapsible_content_6VWmhQ">
|
<div class="accordion__content rte" id="CollapsibleAccordion-collapsible_row_4Mjp9U-template--22918251282708__collapsible_content_6VWmhQ" role="region" aria-labelledby="Summary-collapsible_row_4Mjp9U-template--22918251282708__collapsible_content_6VWmhQ">
|
||||||
{%- for property in item.properties -%}
|
{%- for property in item.properties -%}
|
||||||
{%- assign property_first_char = property.first | slice: 0 -%}
|
{%- assign property_first_char = property.first | slice: 0 -%}
|
||||||
|
@ -253,44 +253,44 @@
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
{% endif %}
|
{% else %}
|
||||||
|
<dl>
|
||||||
<dl>
|
{%- if item.product.has_only_default_variant == false -%}
|
||||||
{%- if item.product.has_only_default_variant == false -%}
|
{%- for option in item.options_with_values -%}
|
||||||
{%- for option in item.options_with_values -%}
|
<div class="product-option">
|
||||||
<div class="product-option">
|
<dt>{{ option.name }}:</dt>
|
||||||
<dt>{{ option.name }}:</dt>
|
<dd>
|
||||||
<dd>
|
{{ option.value -}}
|
||||||
{{ option.value -}}
|
{%- unless forloop.last %}, {% endunless %}
|
||||||
{%- unless forloop.last %}, {% endunless %}
|
</dd>
|
||||||
</dd>
|
</div>
|
||||||
</div>
|
{%- endfor -%}
|
||||||
{%- endfor -%}
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{%- for property in item.properties -%}
|
|
||||||
{%- assign property_first_char = property.first | slice: 0 -%}
|
|
||||||
{%- if property.last != blank and property_first_char != '_' -%}
|
|
||||||
<div class="product-option">
|
|
||||||
<dt>{{ property.first }}:</dt>
|
|
||||||
<dd>
|
|
||||||
{%- if property.last contains '/uploads/' -%}
|
|
||||||
<a
|
|
||||||
href="{{ property.last }}"
|
|
||||||
class="link"
|
|
||||||
target="_blank"
|
|
||||||
aria-describedby="a11y-new-window-message"
|
|
||||||
>
|
|
||||||
{{ property.last | split: '/' | last }}
|
|
||||||
</a>
|
|
||||||
{%- else -%}
|
|
||||||
{{ property.last }}
|
|
||||||
{%- endif -%}
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
|
||||||
</dl>
|
{%- for property in item.properties -%}
|
||||||
|
{%- assign property_first_char = property.first | slice: 0 -%}
|
||||||
|
{%- if property.last != blank and property_first_char != '_' -%}
|
||||||
|
<div class="product-option">
|
||||||
|
<dt>{{ property.first }}:</dt>
|
||||||
|
<dd>
|
||||||
|
{%- if property.last contains '/uploads/' -%}
|
||||||
|
<a
|
||||||
|
href="{{ property.last }}"
|
||||||
|
class="link"
|
||||||
|
target="_blank"
|
||||||
|
aria-describedby="a11y-new-window-message"
|
||||||
|
>
|
||||||
|
{{ property.last | split: '/' | last }}
|
||||||
|
</a>
|
||||||
|
{%- else -%}
|
||||||
|
{{ property.last }}
|
||||||
|
{%- endif -%}
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
</dl>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p class="product-option">{{ item.selling_plan_allocation.selling_plan.name }}</p>
|
<p class="product-option">{{ item.selling_plan_allocation.selling_plan.name }}</p>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
Loading…
Reference in New Issue