Andrei | fix free delivery tab

pull/36/head
Антон 1 month ago
parent c0b10e8a0e
commit 559fc35e07
  1. 8
      wp-content/themes/cosmopet/modules/shop/components/single-product/assets/css/gp-style-core.css
  2. 14
      wp-content/themes/cosmopet/templates/_pages/shop/product-single.twig

@ -505,3 +505,11 @@ input:checked + .subscription-option-details::before, input:checked + .wcsatt-op
.detail__catalot .product__item{
flex-grow: 1;
}
.toggle__title{
text-transform: uppercase;
}
.toggle__text p:not(:last-child) {
margin-bottom: 1em;
}

@ -325,6 +325,20 @@
</div>
</div>
{% endif %}
{% if fn('get_field', 'free_delivery_active', 'options') %}
<div class="toggle">
<p class="toggle__title">
{{ function('pll_e', 'Бесплатная доставка') }}
</p>
<div class="toggle__block-content">
<div class="toggle__content">
<div class="toggle__text">{{ function('get_field', 'free_delivery_field', 'options') }}</div>
</div>
</div>
</div>
{% endif %}
</div>
{# End | Табы с информацией #}

Loading…
Cancel
Save