orange_ecom_starter-2.0.x-dev/templates/commerce/commerce-product-variation.html.twig

templates/commerce/commerce-product-variation.html.twig
{#
/**
 * @file
 *
 * Product Variation template.
 *
 * Available variables:
 * - attributes: HTML attributes for the wrapper.
 * - product_variation: The rendered product variation fields.
 *   Use 'product_variation' to print them all, or print a subset such as
 *   'product_variation.title'. Use the following code to exclude the
 *   printing of a given field:
 *   @code
 *   {{ product_variation|without('title') }}
 *   @endcode
 * - product_variation_entity: The product variation entity.
 * - url: The product URL.
 *
 * @ingroup themeable
 */
#}
{%
  set classes = [
    'product-variation',
    'product-variation--type-' ~ product_variation_entity.bundle|clean_class,
    view_mode ? 'product-variation--view-mode-' ~ view_mode|clean_class,
  ]
%}
<div{{ attributes.addClass(classes) }}>
  {{- product_variation -}}
</div>

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

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