
{if isset($placement) AND $placement == 2}
<section class="page-product-box pdproductattributeslist">
{/if}

{if $block_heading}
<h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3>
{/if}

<div id="pdproductattributeslist_grid">
	{if $product_combinations}
		<section id="products-list" class="clearfix mt-3">

			<div class="products product_content grid">
				{foreach from=$product_combinations item=combination}
					<div class="product-miniature js-product-miniature col-xs-12 col-sm-6 col-md-4 col-lg-4">
						<article class="product-miniature js-product-miniature" data-id-product="{$combination.id_product}" data-id-product-attribute="{$combination.id_product_attribute}" >
							<div class="thumbnail-container">

								<div class="thumbnail-top option_image">
									{foreach from=$combination.images item=$img}
										<a href="{$img.large_default}" rel="group_{$combination.id_product_attribute}" class="thumbnail product-thumbnail {if ($img@index > 0)}hidden {/if}fancybox">
											<img width="{$homeSize.width}" height="{$homeSize.height}" class="img img-fluid img-responsive" src="{$img.home_default}" alt="{$combination.attribute_name}" title="{$combination.attribute_name}" />
										</a>
									{/foreach}

									<div class="highlighted-informations no-variants">
							            <a class="quick-view js-quick-view" href="#" data-link-action="quickview">
							              <i class="material-icons search"></i> Szybki podgląd
							            </a>
							        </div>
       							 </div>
								<div class="product-description">
		       						<h1 class="h3 product-title">
		       							<a href="{$combination.combination_link}" title="{$combination.attribute_name}" class="product_name">{$combination.attribute_name}</a>
		       						</h1>

		       						{if $configuration.show_prices}
		                  			<div class="product-price-and-shipping">
		              					<span class="price">{Tools::displayPrice($combination.price)}</span>
		              					{if $combination.price != $combination.price_old}
			            					<span class="regular-price">
												{Tools::displayPrice($combination.price_old)}
											</span>
										{/if}
		          					</div>
		          					{/if}
								</div>
								{if !$configuration.is_catalog}
								<form action="{$urls.pages.cart}" method="post" class="add-to-cart-or-refresh">
									<input type="hidden" name="token" value="{$static_token}">
				  					<input type="hidden" name="id_product" value="{$combination.id_product|intval}">
				  					<input type="hidden" name="id_product_attribute" value="{$combination.id_product_attribute|intval}">
									<div class="extra-small-gutters product-quantity">
										<input type="number" name="qty" inputmode="numeric" pattern="[0-9]*" class="quantity qtyfield input-group form-control" min="{if isset($combination.minimal_quantity) && $combination.minimal_quantity > 1}{$combination.minimal_quantity|intval}{else}{if isset($combination.minimal_quantity)}{$combination.minimal_quantity|intval}{else}1{/if}{/if}" value="{if isset($combination.minimal_quantity) && $combination.minimal_quantity > 1}{$combination.minimal_quantity|intval}{else}{if isset($combination.minimal_quantity)}{$combination.minimal_quantity|intval}{else}1{/if}{/if}" max="{$combination.quantity}"/>
									</div>
									<div class="add">
										<button class="btn btn-primary add-to-cart"
											type="submit"
											data-button-action="add-to-cart">
											{l s='Add to cart' mod='pdproductattributeslist'}
										</button>
									</div>
								</form>
								{/if}
								{include file='catalog/_partials/product-flags.tpl'}
							</div>
						</article>

					</div>
				{/foreach}
			</div>
		</section>
	{/if}
</div>

{if isset($placement) AND $placement == 2}
</section>
{/if}
