Przeglądaj źródła

add carrousell single page

cedric 2 lat temu
rodzic
commit
5655878ece
1 zmienionych plików z 13 dodań i 0 usunięć
  1. 13 0
      views/templates/front/single.tpl

+ 13 - 0
views/templates/front/single.tpl

@@ -68,6 +68,7 @@
 						{if isset($chpost.related_products)}
 							<section class="featured-products clearfix">
 								{*<h2>{l s='Viewed products' d='Modules.Viewedproduct.Shop'}</h2>*}
+								{*
 								{assign var="larg" value=$chpost.related_products|@count}
 								<div class="products">
 						
@@ -77,6 +78,18 @@
 										</div>
 									{/foreach}
 								</div>
+								*}
+								<div class="pos_content row">
+										<div class="product_accessoriesslide owl-carousel">
+										{foreach from=$chpost.related_products item="product"}
+												{block name='product_miniature'}
+													<div class="item-product">
+														{include file='catalog/_partials/miniatures/product.tpl' product=$product}
+													</div>
+												{/block}
+											{/foreach}
+										</div>
+									</div>
 							</section>
 						{/if}
 					<!-- <div class="trait dernier"></div> -->