|
|
@ -96,10 +96,16 @@ |
|
|
|
{% if siblings %} |
|
|
|
{% if siblings %} |
|
|
|
<div class="detail-block-form__item detail-block-form__item--radio radio-button"> |
|
|
|
<div class="detail-block-form__item detail-block-form__item--radio radio-button"> |
|
|
|
{% for sibling in siblings %} |
|
|
|
{% for sibling in siblings %} |
|
|
|
{% set weight = sibling.post_title|split(', ')|last %} |
|
|
|
{% set weight = function('get_product_info', sibling.ID, 'weight') %} |
|
|
|
{% set current_weight = function('get_product_info', product.id, 'weight') %} |
|
|
|
{% set current_weight = function('get_product_info', product.id, 'weight') %} |
|
|
|
{% set class = weight == current_weight ? 'active' : '' %} |
|
|
|
{% set class = weight == current_weight ? 'active' : '' %} |
|
|
|
<a href="{{ function('get_permalink', sibling.ID) }}" class="button button--white button--red-48-px {{ class }}" data-product_id="{{ sibling.ID }}" data-product_price="{{ function('get_product_info', sibling.ID, 'price') }}"> |
|
|
|
|
|
|
|
|
|
|
|
<a |
|
|
|
|
|
|
|
href="{{ function('get_permalink', sibling.ID) }}" |
|
|
|
|
|
|
|
class="button button--white button--red-48-px {{ class }}" |
|
|
|
|
|
|
|
data-product_id="{{ sibling.ID }}" |
|
|
|
|
|
|
|
data-product_price="{{ function('get_product_info', sibling.ID, 'price') }}" |
|
|
|
|
|
|
|
> |
|
|
|
{{ weight|upper }} |
|
|
|
{{ weight|upper }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|