templates/Shop/includes/relatedproducts.html.twig line 1

Open in your IDE?
  1. <!-- ******* PRODUCTOS RELACIONADOS START ************************ -->
  2. {% set relatedProducts = app_product_related_products(product) %}
  3. {% if relatedProducts | length > 0 %}
  4.     {% set defaultPresentation = "relatedproductlist.html.twig" %}
  5.     {%  if product.getProperty("presentationRelatedProducts") is not empty and
  6.         product.getProperty("presentationRelatedProducts") == "carusel" %}
  7.         {% set defaultPresentation = "relatedproductcarusel.html.twig" %}
  8.     {% endif %}
  9.     {% set defaultPresentation = "relatedproductcarusel.html.twig" %}
  10.     {% set defaultPresentation = "newRelatedProductCarusel.html.twig" %}
  11.     <div class="product-related-products" style="clear:both;"><div class="clear"></div></div>
  12.     <div class="upsell-products" style="margin-top:40px;">
  13.         {% include ('Shop/includes/' ~ defaultPresentation) %}
  14.     </div>
  15. {%  endif %}
  16. <!-- ******* PRODUCTOS RELACIONADOS START ************************ -->