commercetools-8.x-1.2-alpha1/modules/commercetools_content/templates/commercetools-add-to-cart-form.html.twig

modules/commercetools_content/templates/commercetools-add-to-cart-form.html.twig
{#
/**
 * @file
 * Default theme implementation for a 'form' element.
 *
 * Available variables
 * - attributes: A list of HTML attributes for the wrapper element.
 * - children: The child elements of the form.
 *
 * @see template_preprocess_form()
 *
 * @ingroup themeable
 */
#}
{{ attach_library('commercetools/commercetools.bootstrap_checker') }}

<form{{ attributes }}>
  {% set add_to_cart %}

    <div class="attributes border-top border-bottom pt-4 pb-4 mt-4 mb-4">
      {{ form.product_attributes }}
    </div>

    {{ form|without("product_display", "product_attributes") }}
  {% endset %}
  {{ form.product_display|merge({"#add_to_cart": add_to_cart}) }}
</form>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc