custom/plugins/HuebertAccessoriesDirectly/src/Resources/views/storefront/page/product-detail/hueb-accessories-accordion.html.twig line 1

Open in your IDE?
  1. {% block hueb_accessories_accordion_content %}
  2.     {% sw_include '@HuebertAccessoriesDirectlyBundling/storefront/page/product-detail/hueb-bundle-view.html.twig' ignore missing %}
  3.     <div class="huebert-direct-accessories-block my-4" data-add-accessory="true">
  4.         {% block hueb_accessories_accordion_head %}
  5.             {% if page.crossSellings.elements|length > 0 %}
  6.                 {% for crossSelling in page.crossSellings.elements %}{% if not break %}
  7.                     {% if crossSelling.crossSelling.display == "everywhere" or crossSelling.crossSelling.display == "pluginOnly" or not crossSelling.crossSelling.display %}
  8.                         <div class="h3">
  9.                             {% if page.product.customFields.huebert_accessory_directly_title %}
  10.                                 {{ page.product.translated.customFields.huebert_accessory_directly_title|sw_sanitize }}
  11.                             {% elseif not page.HuebertAccessoriesDirectly.config.showHeadline %}
  12.                                 {{ "huebert-acessories-directly.product-detail.accessory-headline"|trans|sw_sanitize }}
  13.                             {% endif %}
  14.                         </div>
  15.                         <p>
  16.                             {% if page.product.customFields.huebert_accessory_directly_subtitle %}
  17.                                 {{ page.product.translated.customFields.huebert_accessory_directly_subtitle|sw_sanitize }}
  18.                             {% elseif not page.HuebertAccessoriesDirectly.config.showDescription %}
  19.                                 {{ "huebert-acessories-directly.product-detail.accessory-text"|trans|sw_sanitize }}
  20.                             {% endif %}
  21.                         </p>
  22.                         {% set break = true %}
  23.                     {% endif %}
  24.                 {% endif %}{% endfor %}
  25.             {% endif %}
  26.         {% endblock %}
  27.         {% block hueb_accessories_accordion_elements %}
  28.             <div class="accordion" id="accessoryAccordion">
  29.                 {% for crossSelling in page.crossSellings.elements %}
  30.                     {% if crossSelling.crossSelling.display == "everywhere" or crossSelling.crossSelling.display == "pluginOnly" or crossSelling.crossSelling.display == "accessoriesOnly" or ( not crossSelling.crossSelling.display and not crossSelling.crossSelling.huebBundle) %}
  31.                         {% set products = crossSelling.products.elements %}
  32.                         <div class="card">
  33.                             {% set sameQuantityAsMainProduct = crossSelling.crossSelling.sameQuantityAsMainProduct %}
  34. {#                            {% if crossSelling.crossSelling.selectableAmount === true %}#}
  35. {#                                {% if sameQuantityAsMainProduct === null or sameQuantityAsMainProduct === false %}#}
  36. {#                                    <input type="hidden" name="same-and-selectable" class="same-and-selectable">#}
  37. {#                                {% else %}#}
  38. {#                                    <input type="hidden" name="same-quantity" class="same-quantity-input" value="1">#}
  39. {#                                    <input type="hidden" name="same-and-selectable" class="same-and-selectable" value="1">#}
  40. {#                                {% endif %}#}
  41. {#                            {% else %}#}
  42. {#                                <input type="hidden" name="accessory-quantity-as-main" class="accessory-quantity-as-main" value="1">#}
  43. {#                                <input type="hidden" name="lineItems[{{ product.id }}][sameQuantity]" value="1">#}
  44. {#                                <input type="hidden" name="same-and-selectable" class="same-and-selectable">#}
  45. {#                            {% endif %}#}
  46.                             {% block hueb_accessories_accordion_card_header %}
  47.                                 <div class="card-header" id="heading-{{ crossSelling.crossSelling.id }}">
  48.                                     <div style="margin-bottom: -10px" class="row">
  49.                                         <div class="col-lg-8">
  50.                                             <div class="h4">
  51.                                                 <button class="btn btn-accordion btn-block text-left collapsed"
  52.                                                         type="button"
  53.                                                         data-toggle="collapse"
  54.                                                         data-target="#accessories-{{ crossSelling.crossSelling.id }}">
  55.                                                     {% sw_icon 'arrow-head-up' %}{% sw_icon 'arrow-head-down' %}&nbsp;{{ crossSelling.crossSelling.name ?: huebert_load_parent_language_name(crossSelling.crossSelling, context.context) }}
  56.                                                 </button>
  57.                                             </div>
  58.                                         </div>
  59.                                         <div class="col-lg-4">
  60.                                             {% block hueb_accessories_accordion_bundling %}
  61.                                                 {% if crossSelling.crossSelling.huebBundle %}
  62.                                                     {% sw_include '@HuebertAccessoriesDirectlyBundling/storefront/page/product-detail/hueb-bundle-header.html.twig' ignore missing %}
  63.                                                 {% endif %}
  64.                                             {% endblock %}
  65.                                         </div>
  66.                                     </div>
  67.                                 </div>
  68.                             {% endblock %}
  69.                             {% block hueb_accessories_accordion_card_body %}
  70.                                 <div id="accessories-{{ crossSelling.crossSelling.id }}" class="collapse {% if page.acessoryOptions.alwaysShow %}show{% endif %}" aria-labelledby="heading-{{ crossSelling.crossSelling.id }}" data-parent="#accessoryAccordion">
  71.                                     <div class="card-body">
  72.                                         {%  for product in products %}
  73.                                             {% set huebQuantity = 0 %}
  74.                                             {% for assignedProduct in crossSelling.crossSelling.assignedProducts %}
  75.                                                 {% if assignedProduct.productId == product.id %}
  76.                                                     {% set huebQuantity = assignedProduct.huebQuantity %}
  77.                                                 {% endif %}
  78.                                             {% endfor %}
  79.                                             {% if product.stock >= 0 or (product.isCloseout === false and product.stock <= 0) or product.productConfigurator|length > 0 %}
  80.                                                 {% set buyable = product.available and product.childCount <= 0 and product.calculatedMaxPurchase > 0 %}
  81.                                                 {% if buyable %}
  82.                                                     {% if product.maxPurchase is null %}
  83.                                                         {% set mp =  100 %}
  84.                                                     {% else %}
  85.                                                         {% set mp =  product.maxPurchase %}
  86.                                                     {% endif %}
  87.                                                     {% set accessoryConfig = {
  88.                                                         accessory: {
  89.                                                             productId: product.id,
  90.                                                             minPurchase: product.minPurchase ,
  91.                                                             maxPurchase: mp,
  92.                                                             purchaseSteps: product.purchaseSteps
  93.                                                         }
  94.                                                     } %}
  95.                                                     {% set pricing = null %}
  96.                                                     {% set pricingTop = null %}
  97.                                                     {% set referencePricing = null %}
  98.                                                     {% set pricing %}
  99.                                                         {#{{% if product.calculatedListingPrice.from.unitPrice != product.calculatedListingPrice.to.unitPrice and product.calculatedPrices|length > 1 %}
  100.                                                 { product.calculatedListingPrice.from.unitPrice|currency }}
  101.                                                     -
  102.                                                     {{ product.calculatedListingPrice.to.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
  103.                                                     {% set pricingTop = product.calculatedListingPrice.to.unitPrice %}
  104.                                                     {% if product.calculatedListingPrice.from.referencePrice.price  %}
  105.                                                         {% set referencePricing %}
  106.                                                             ({{ product.calculatedListingPrice.from.referencePrice.price|currency }}
  107.                                                             -
  108.                                                             {{ product.calculatedListingPrice.to.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }} / {{ product.calculatedListingPrice.from.referencePrice.referenceUnit }} {{ product.calculatedListingPrice.from.referencePrice.unitName }})
  109.                                                         {% endset %}
  110.                                                     {% endif %}#}
  111.                                                         {% if product.calculatedPrices|length > 1 %}
  112.                                                             {% set priceFrom = product.calculatedPrices|last %}
  113.                                                             {% set priceTo = product.calculatedPrices|first %}
  114.                                                             {% set loopPrice = product.calculatedPrices|first.unitPrice %}
  115.                                                             {% for element in product.calculatedPrices %}
  116.                                                                 {% if element.unitPrice <= loopPrice %}
  117.                                                                     {% set priceFrom = element %}
  118.                                                                 {% elseif element.unitPrice > loopPrice %}
  119.                                                                     {% set priceTo = element %}
  120.                                                                 {% endif %}
  121.                                                                 {% set loopPrice = element.unitPrice %}
  122.                                                             {% endfor %}
  123.                                                             {{ priceFrom.unitPrice|currency }}
  124.                                                             -
  125.                                                             {{ priceTo.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
  126.                                                             {% set pricingTop = priceTo.unitPrice|currency %}
  127.                                                             {% if priceFrom.referencePrice.price  %}
  128.                                                                 {% set referencePricing %}
  129.                                                                     ({{ priceFrom.referencePrice.price|currency }}
  130.                                                                     -
  131.                                                                     {{ priceTo.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }} / {{ priceFrom.referencePrice.referenceUnit }} {{ priceFrom.referencePrice.unitName }})
  132.                                                                 {% endset %}
  133.                                                             {% endif %}
  134.                                                         {% elseif product.calculatedPrices|length == 1 %}
  135.                                                             {{ product.calculatedPrices.first.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
  136.                                                             {% set pricingTop = product.calculatedPrices.first.unitPrice %}
  137.                                                             {% if product.calculatedPrices.first.referencePrice.price %}
  138.                                                                 {% set referencePricing %}
  139.                                                                     ({{ product.calculatedPrices.first.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }} / {{ product.calculatedPrices.first.referencePrice.referenceUnit }} {{ product.calculatedPrices.first.referencePrice.unitName }})
  140.                                                                 {% endset %}
  141.                                                             {% endif %}
  142.                                                         {% else %}
  143.                                                             {{ product.calculatedPrice.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
  144.                                                             {#                                                        {% if product.calculatedPrice.listPrice.percentage > 0 %}#}
  145.                                                             {#                                                            <span class="list-price">#}
  146.                                                             {#                                                                        {{ product.calculatedPrice.listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}#}
  147.                                                             {#                                                                    </span>#}
  148.                                                             {#                                                        {% endif %}#}
  149.                                                             {% set pricingTop = product.calculatedPrice.unitPrice %}
  150.                                                             {% if product.calculatedPrice.referencePrice.price %}
  151.                                                                 {% set referencePricing %}
  152.                                                                     ({{ product.calculatedPrice.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }} / {{ product.calculatedPrice.referencePrice.referenceUnit }} {{ product.calculatedPrice.referencePrice.unitName }})
  153.                                                                 {% endset %}
  154.                                                             {% endif %}
  155.                                                         {% endif %}
  156.                                                     {% endset %}
  157.                                                     {% block hueb_accessories_accordion_view %}
  158.                                                         {% set cover = product.cover.media %}
  159.                                                         {% set displayMode = 'minimal' %}
  160.                                                         {% set viewClass = "col-xs-12 col-lg-10" %}
  161.                                                         {% if page.HuebertAccessoriesDirectly.config.accessoryViewStatic %}
  162.                                                             {% set viewClass = "col-xs-12 col-lg-6" %}
  163.                                                             {% if config('HuebertAccessoriesDirectly.config.globalSelectableAmount') == '0' %}
  164.                                                                 {% set viewClass = "col-xs-12 col-lg-" %}
  165.                                                             {% endif %}
  166.                                                         {% else %}
  167.                                                             {% if config('HuebertAccessoriesDirectly.config.globalSelectableAmount') == '0' %}
  168.                                                                 {% set viewClass = "col-xs-12 col-lg-9" %}
  169.                                                             {% endif %}
  170.                                                         {% endif %}
  171.                                                         {% if crossSelling.crossSelling.huebBundle %}
  172.                                                             {% set viewClass = "col-8" %}
  173.                                                         {% endif %}
  174.                                                         {% set selectableAmount = crossSelling.crossSelling.selectableAmount %}
  175.                                                         {% if selectableAmount == 0 %}
  176.                                                             {% set selectableAmount = false %}
  177.                                                             {% set viewClass = "col-xs-12 col-lg-10" %}
  178.                                                         {% endif %}
  179.                                                         {% if selectableAmount == 1 %}
  180.                                                             {% set selectableAmount = true %}
  181.                                                             {% set viewClass = "col-xs-12 col-lg-7" %}
  182.                                                         {% endif %}
  183.                                                         {% if config('HuebertAccessoriesDirectly.config.globalSelectableAmount') == '0' %}
  184.                                                             {% set selectableAmount = false %}
  185.                                                             {% set viewClass = "col-xs-12 col-lg-10" %}
  186.                                                         {% endif %}
  187.                                                         {% if config('HuebertAccessoriesDirectly.config.globalSelectableAmount') == '1' %}
  188.                                                             {% set selectableAmount = true %}
  189.                                                             {% set viewClass = "col-xs-12 col-lg-9" %}
  190.                                                         {% endif %}
  191.                                                         <div class="huebert-accessory {% if selectableAmount %}hue-selectableAmount{% else %}hue-checkbox{% endif %}" data-product-id="{{ product.id }}" data-cross-selling-id="{{ crossSelling.crossSelling.id }}">
  192.                                                             {% block hueb_accessories_accordion_view_hover %}
  193.                                                                 {% if page.HuebertAccessoriesDirectly.config.accessoryViewHover and cover.url %}
  194.                                                                     <div class="huebert-accessory-hover">
  195.                                                                         {% set attributes = {
  196.                                                                             'class': 'product-image is-'~displayMode,
  197.                                                                             'alt': (cover.translated.alt ?: name),
  198.                                                                             'title': (cover.translated.title ?: name)
  199.                                                                         } %}
  200.                                                                         {% if displayMode == 'cover' or displayMode == 'contain' %}
  201.                                                                             {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  202.                                                                         {% endif %}
  203.                                                                         {% sw_thumbnails 'product-image-thumbnails' with {
  204.                                                                             media: cover,
  205.                                                                             sizes: {
  206.                                                                                 'xs': '501px',
  207.                                                                                 'sm': '315px',
  208.                                                                                 'md': '427px',
  209.                                                                                 'lg': '333px',
  210.                                                                                 'xl': '284px'
  211.                                                                             }
  212.                                                                         } %}
  213.                                                                     </div>
  214.                                                                 {% endif %}
  215.                                                             {% endblock %}
  216.                                                             <div class="row my-2">
  217.                                                                 <div class="{% if selectableAmount %}col-lg-3{% else %}col-lg-2{% endif %} p-lg-0">
  218.                                                                     <div class="row">
  219.                                                                         {% if page.HuebertAccessoriesDirectly.config.accessoryViewStatic %}
  220.                                                                             <div style="padding: 0;" class="col-2 viewport-small">
  221.                                                                                 {{ block('hueb_accessories_accordion_view_thumbnail') }}
  222.                                                                             </div>
  223.                                                                         {% endif %}
  224.                                                                         <div class="col-12">
  225.                                                                             {% if selectableAmount == 1 %}
  226.                                                                             <div class="viewport-small">
  227.                                                                                 {{ block('hueb_accessories_accordion_view_product_info') }}
  228.                                                                             </div>
  229.                                                                             {% endif %}
  230.                                                                             <div class="row">
  231.                                                                                 {% block hueb_accessories_accordion_view_amount %}
  232.                                                                                     {% if not crossSelling.crossSelling.huebBundle %}
  233.                                                                                         <div class="{% if selectableAmount %}col-8 col-sm-4 col-lg-12 pr-lg-0 {% else %}checkbox-mobile-wrapper col-lg-12{% endif %}">
  234.                                                                                             <div class="input-group huebert-accessory_input-wrapper {{ not selectableAmount ? 'huebert-checkbox' }}" data-huebert-add-accessory-config="{{ accessoryConfig|json_encode }}" data-huebert-pricing="{{ pricingTop }}">
  235.                                                                                                 {% if selectableAmount %}
  236.                                                                                                     {% if sameQuantityAsMainProduct is same as(null) or sameQuantityAsMainProduct is same as(false) %}
  237.                                                                                                         <div class="input-group-prepend">
  238.                                                                                                             <button type="button"
  239.                                                                                                                     class="input-group-text quantity-dn"
  240.                                                                                                                     name="quantity-down[{{product.id}}]"
  241.                                                                                                             >{% sw_icon 'minus-circle' %}
  242.                                                                                                                 <span class="sr-only">{{ "huebert-acessories-directly.product-detail.button.minus"|trans|sw_sanitize }}</span>
  243.                                                                                                             </button>
  244.                                                                                                         </div>
  245.                                                                                                         <input class="form-control accessory-quantity" type="text" placeholder="0" name="lineItems[{{ product.id }}][quantity]" aria-label="{{ product.translated.name }} quantity" {% if sameQuantityAsMainProduct %}disabled{% endif %}>
  246.                                                                                                         <div class="input-group-append">
  247.                                                                                                             <button type="button"
  248.                                                                                                                     class="input-group-text quantity-up"
  249.                                                                                                                     name="quantity-up[{{product.id}}]"
  250.                                                                                                             >{% sw_icon 'plus-circle' %}
  251.                                                                                                                 <span class="sr-only">{{ "huebert-acessories-directly.product-detail.button.plus"|trans|sw_sanitize }}</span>
  252.                                                                                                             </button>
  253.                                                                                                         </div>
  254.                                                                                                         <input type="hidden" name="same-and-selectable" class="same-and-selectable">
  255.                                                                                                     {% else %}
  256.                                                                                                         <div class="form-control same-quantity border-0"><span class="same-quantity-as-main">1</span> x</div>
  257.                                                                                                         <input type="hidden" name="lineItems[{{ product.id }}][quantity]" class="accessory-quantity">
  258.                                                                                                         <input type="hidden" name="same-quantity" class="same-quantity-input" value="1">
  259.                                                                                                         <input type="hidden" name="same-and-selectable" class="same-and-selectable" value="1">
  260.                                                                                                     {% endif %}
  261.                                                                                                 {% else %}
  262.                                                                                                     <input type="hidden" name="lineItems[{{ product.id }}][quantity]" class="accessory-quantity">
  263.                                                                                                     <input type="checkbox" class="accessory-checkbox">
  264.                                                                                                     <input type="hidden" name="accessory-quantity-as-main" class="accessory-quantity-as-main" value="1">
  265.                                                                                                     <input type="hidden" name="lineItems[{{ product.id }}][sameQuantity]" value="1">
  266.                                                                                                     <input type="hidden" name="same-and-selectable" class="same-and-selectable">
  267.                                                                                                 {% endif %}
  268.                                                                                             </div>
  269.                                                                                         </div>
  270.                                                                                     {% else %}
  271.                                                                                         <div class="col-2">
  272.                                                                                             <div style="width: 50px" class="input-group hueb-accessories-bundle-quantity" data-huebert-add-accessory-config="{{ accessoryConfig|json_encode }}" data-huebert-pricing="{{ pricingTop }}">
  273.                                                                                                 <input readonly="readonly" class="form-control accessory-quantity" value="{{ huebQuantity }}" autocomplete="off" name="lineItems[{{ product.id }}][quantity]" aria-label="{{ product.translated.name }} quantity">
  274.                                                                                             </div>
  275.                                                                                         </div>
  276.                                                                                     {% endif %}
  277.                                                                                 {% endblock %}
  278.                                                                                 {% if selectableAmount == 0 %}
  279.                                                                                     <div class="viewport-small hue-product-title">
  280.                                                                                         {{ block('hueb_accessories_accordion_view_product_info') }}
  281.                                                                                     </div>
  282.                                                                                 {% endif %}
  283.                                                                                 <div class="col-4 viewport-small no-pad hue-price-wrapper">
  284.                                                                                     {{ block('hueb_accessories_accordion_view_product_price') }}
  285.                                                                                 </div>
  286.                                                                             </div>
  287.                                                                         </div>
  288.                                                                     </div>
  289.                                                                 </div>
  290.                                                                 {% block hueb_accessories_accordion_view_product %}
  291.                                                                     <div class="{{ viewClass }} viewport-default hue-title-price">
  292.                                                                         {% block hueb_accessories_accordion_view_product_info %}
  293.                                                                             <a href="{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}" data-modal-class="quickview-modal"
  294.                                                                                class="" data-toggle="modal"
  295.                                                                                data-url="{{ seoUrl('widgets.quickview.minimal', {'productId': product.id}) }}"
  296.                                                                                title="{{ product.translated.name }}"
  297.                                                                             >
  298.                                                                                 {% if product.customFields.huebert_accessory_directly_customtext %}
  299.                                                                                     &nbsp;{{ product.customFields.huebert_accessory_directly_customtext }}
  300.                                                                                 {% else %}
  301.                                                                                     {{ product.translated.name }}
  302.                                                                                 {% endif %}
  303.                                                                             </a>
  304.                                                                             {% if product.productConfigurator|length <=0 or page.acessoryOptions.activateVariants == false or  crossSelling.crossSelling.huebBundle %}
  305.                                                                                 <div class="product-variant-characteristics huebert-accessory_variants">
  306.                                                                                     <div class="product-variant-characteristics-text">
  307.                                                                                         {% for variation in product.variation %}
  308.                                                                                             {{ variation.group }}:
  309.                                                                                             <span class="product-variant-characteristics-option">
  310.                                                                                                             {{ variation.option }}
  311.                                                                                                         </span>
  312.                                                                                             {% if product.variation|last != variation %}
  313.                                                                                                 {{ " | " }}
  314.                                                                                             {% endif %}
  315.                                                                                         {% endfor %}
  316.                                                                                     </div>
  317.                                                                                 </div>
  318.                                                                             {% endif %}
  319.                                                                         {% endblock %}
  320.                                                                         {% block hueb_accessories_accordion_view_product_price %}
  321.                                                                             {% if product.productConfigurator|length <=0 or page.acessoryOptions.activateVariants == false or  crossSelling.crossSelling.huebBundle %}
  322.                                                                                 <div class="product-price huebert-accessory_pricing">
  323.                                                                                     {{ "huebert-acessories-directly.product-detail.accessory-price"|trans(
  324.                                                                                         {'%price%': pricing}
  325.                                                                                     )|sw_sanitize }}
  326.                                                                                 </div>
  327.                                                                                 {% if page.acessoryOptions.showUnits%}
  328.                                                                                     {% if product.purchaseUnit %}
  329.                                                                                         {% block buy_widget_price_unit %}
  330.                                                                                             <div class="product-detail-price-unit">
  331.                                                                                                 {% block buy_widget_price_unit_label %}
  332.                                                                                                     <span class="price-unit-label">
  333.                                                                                 {{ "detail.priceUnitName"|trans|sw_sanitize }}
  334.                                                                             </span>
  335.                                                                                                 {% endblock %}
  336.                                                                                                 {% block buy_widget_price_unit_content %}
  337.                                                                                                     <span class="price-unit-content">
  338.                                                                             {{ product.purchaseUnit }} {{ product.unit.name }} {{ referencePricing }}
  339.                                                                             </span>
  340.                                                                                                 {% endblock %}
  341.                                                                                             </div>
  342.                                                                                         {% endblock %}
  343.                                                                                     {% endif %}
  344.                                                                                 {% endif %}
  345.                                                                                 {% if referencePricing %}
  346. {#                                                                                    <div class="product-detail-price-unit huebert-accessory_pricing-reference">#}
  347. {#                                                                                            <span class="price-unit-label">#}
  348. {#                                                                                                {{ "detail.priceUnitName"|trans|sw_sanitize }}#}
  349. {#                                                                                            </span>#}
  350. {#                                                                                        <span class="price-unit-content">#}
  351. {#                                                                                                {{ product.calculatedPrice.referencePrice.purchaseUnit }} {{ product.calculatedPrice.referencePrice.unitName }}#}
  352. {#                                                                                            </span>#}
  353. {#                                                                                        <span class="price-unit-reference-content">#}
  354. {#                                                                                                {{ referencePricing }}#}
  355. {#                                                                                            </span>#}
  356. {#                                                                                    </div>#}
  357.                                                                                 {% endif %}
  358.                                                                             {% endif %}
  359.                                                                         {% endblock %}
  360.                                                                     </div>
  361.                                                                     {% if (page.HuebertAccessoriesDirectly.config.showDelivery and product.productConfigurator|length <= 0) or (page.acessoryOptions.activateVariants == false and page.HuebertAccessoriesDirectly.config.showDelivery)  %}
  362.                                                                         <div class="{% if selectableAmount %}col-lg-3{% else %}col-lg-2{% endif %}"></div>
  363.                                                                         <div class="{% if selectableAmount %}col-lg-9{% else %}col-lg-10{% endif %} huebert-acessory_deliveryTime">
  364.                                                                             {% if product.availableStock >= product.minPurchase and product.deliveryTime %}
  365.                                                                                 <p class="delivery-information">
  366.                                                                                     <span class="delivery-status-indicator bg-success"></span>
  367.                                                                                     {{ "detail.deliveryTimeAvailable"|trans({
  368.                                                                                         '%name%': product.deliveryTime.translation('name')
  369.                                                                                     })|sw_sanitize }}
  370.                                                                                 </p>
  371.                                                                                 <input type="hidden" class="stock-huebert" value="">
  372.                                                                             {% elseif product.isCloseout and product.availableStock < product.minPurchase %}
  373.                                                                                 <p class="delivery-information">
  374.                                                                                     <span class="delivery-status-indicator bg-danger"></span>
  375.                                                                                     {{ "detail.soldOut"|trans|sw_sanitize }}
  376.                                                                                 </p>
  377.                                                                                 <input type="hidden" class="stock-huebert" value="true">
  378.                                                                             {% elseif product.availableStock < product.minPurchase and product.deliveryTime and product.restockTime %}
  379.                                                                                 <p class="delivery-information">
  380.                                                                                     <span class="delivery-status-indicator bg-warning"></span>
  381.                                                                                     {{ "detail.deliveryTimeRestock"|trans({
  382.                                                                                         '%count%': product.restockTime,
  383.                                                                                         '%restockTime%': product.restockTime,
  384.                                                                                         '%name%': product.deliveryTime.translation('name')
  385.                                                                                     })|sw_sanitize }}
  386.                                                                                 </p>
  387.                                                                                 <input type="hidden" class="stock-huebert" value="">
  388.                                                                             {% endif %}
  389.                                                                         </div>
  390.                                                                     {% endif %}
  391.                                                                 {% endblock %}
  392.                                                                 {% if page.HuebertAccessoriesDirectly.config.accessoryViewStatic %}
  393.                                                                     <div class="col-lg-2 viewport-default thumbnails-view">
  394.                                                                         {% block hueb_accessories_accordion_view_thumbnail %}
  395.                                                                             {% if cover.url %}
  396.                                                                                 {% set attributes = {
  397.                                                                                     'class': 'product-image is-'~displayMode,
  398.                                                                                     'alt': (cover.translated.alt ?: name),
  399.                                                                                     'title': (cover.translated.title ?: name)
  400.                                                                                 } %}
  401.                                                                                 {% if displayMode == 'cover' or displayMode == 'contain' %}
  402.                                                                                     {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  403.                                                                                 {% endif %}
  404.                                                                                 {% sw_thumbnails 'product-image-thumbnails' with {
  405.                                                                                     media: cover,
  406.                                                                                     sizes: {
  407.                                                                                         'xs': '501px',
  408.                                                                                         'sm': '315px',
  409.                                                                                         'md': '427px',
  410.                                                                                         'lg': '333px',
  411.                                                                                         'xl': '284px'
  412.                                                                                     }
  413.                                                                                 } %}
  414.                                                                             {% endif %}
  415.                                                                         {% endblock %}
  416.                                                                     </div>
  417.                                                                 {% endif %}
  418.                                                             </div>
  419.                                                             {% if not crossSelling.crossSelling.huebBundle %}
  420.                                                             <div class="row">
  421.                                                                 <div class="{% if selectableAmount %}col-lg-3{% else %}col-lg-2{% endif %}"></div>
  422.                                                                 <div class="{% if selectableAmount %}col-lg-9{% else %}col-lg-10{% endif %} product-configurator-variants">
  423.                                                                     {% block page_product_detail_configurator_include %}
  424.                                                                         {% if page.acessoryOptions.activateVariants %}
  425.                                                                             {% if product.parentId and product.productConfigurator|length > 0 %}
  426.                                                                                 <div class="product-detail-configurator-container">
  427.                                                                                     {% sw_include '@Storefront/storefront/page/product-detail/configurator-cross-selling.html.twig'
  428.                                                                                     %}
  429.                                                                                 </div>
  430.                                                                             {% endif %}
  431.                                                                         {% endif %}
  432.                                                                     {% endblock %}
  433.                                                                 </div>
  434.                                                             </div>
  435.                                                             {% endif %}
  436.                                                             <input type="hidden" class="generated-variant"value="">
  437.                                                             <input type="hidden" class="stock-huebert" value="">
  438.                                                         </div>
  439.                                                     {% endblock %}
  440.                                                 {% endif %}
  441.                                             {% endif %}
  442.                                         {% endfor %}
  443.                                     </div>
  444.                                 </div>
  445.                             {% endblock %}
  446.                         </div>
  447.                     {% endif %}
  448.                 {% endfor %}
  449.             </div>
  450.         {% endblock %}
  451.     </div>
  452. {% endblock %}