{** block-description:required_products **}

{if $product.required_products}

	{if $settings.abt__ut2.products.addon_required_products.list_type[$settings.ab__device] === "grid_list"}
	
		{$tmpl='products_multicolumns'}
		{$columns=$settings.abt__ut2.products.addon_required_products.item_quantity[$settings.ab__device]}

		{include file="blocks/list_templates/grid_list.tpl"
			products=$product.required_products
			columns=$columns
			details_page=false
			show_name=true
			show_sku=$settings.abt__ut2.product_list.$tmpl.show_sku[$settings.ab__device] === "YesNo::YES"|enum
			show_rating=true
			show_rating_num=true
			show_old_price=true
			show_price=true
			show_clean_price=true
			show_list_discount=$settings.abt__ut2.product_list.show_you_save[$settings.ab__device] !== "none"
			show_discount_label=false
        	show_shipping_label=false
			show_product_amount=false
			show_product_options=false
			show_qty=$settings.abt__ut2.product_list.$tmpl.show_qty[$settings.ab__device] === "YesNo::YES"|enum
			hide_qty_label=true
			show_min_qty=false
			show_add_to_cart=$settings.abt__ut2.product_list.$tmpl.show_button_add_to_cart[$settings.ab__device] !== "none"
			show_features=$settings.abt__ut2.product_list.$tmpl.grid_item_bottom_content[$settings.ab__device] === "features"
			show_descr=$settings.abt__ut2.product_list.$tmpl.grid_item_bottom_content[$settings.ab__device] === "description"
            show_brand_logo=$settings.abt__ut2.product_list.$tmpl.show_brand_logo[$settings.ab__device] === "YesNo::YES"|enum
			show_list_buttons=false
			show_custom_class="ut2-rp__grid"
			but_role="action"
			no_pagination=true
			no_sorting=true
			obj_prefix="required_products"
		}

	{elseif $settings.abt__ut2.products.addon_required_products.list_type[$settings.ab__device] === "product_list"}
		{$tmpl='products_without_options'}
		{include file="blocks/list_templates/products_list.tpl"
			products=$product.required_products
			show_product_status="YesNo::YES"|enum
			details_page=false
			show_name=true
			show_sku=$settings.abt__ut2.product_list.$tmpl.show_sku[$settings.ab__device] === "YesNo::YES"|enum
			show_rating=true 
			show_features=true 
			show_prod_descr=true 
			show_descr=true 
			show_old_price=true 
			show_price=true 
			show_clean_price=true 
			show_list_discount=false 
			show_discount_label=true
        	show_shipping_label=false
			show_product_amount=$settings.abt__ut2.product_list.$tmpl.show_amount[$settings.ab__device] === "YesNo::YES"|enum
			show_product_options=$settings.abt__ut2.product_list.$tmpl.show_options[$settings.ab__device] === "YesNo::YES"|enum
			show_qty=$settings.abt__ut2.product_list.$tmpl.show_options[$settings.ab__device] === "YesNo::YES"|enum
			show_min_qty=true 
			show_product_edp=true 
			show_add_to_cart=true 
			show_list_buttons=false 
			show_custom_class="ut2-rp__products"
			but_role="action" 
			no_pagination=true 
			no_sorting=true 
			obj_prefix="required_products" 
		}

	{elseif $settings.abt__ut2.products.addon_required_products.list_type[$settings.ab__device] === "compact_list"}
		{$tmpl='short_list'}
		{include file="blocks/list_templates/compact_list.tpl" 
			products=$product.required_products 
			show_product_status="YesNo::YES"|enum
			details_page=false 
			show_name=true 
			show_sku=$settings.abt__ut2.product_list.$tmpl.show_sku[$settings.ab__device] === "YesNo::YES"|enum
			show_rating=true 
			show_price=true 
			show_old_price=true 
			show_clean_price=false 
			show_qty=$settings.abt__ut2.product_list.$tmpl.show_qty[$settings.ab__device] === "YesNo::YES"|enum
			hide_qty_label=true
        	show_shipping_label=false
			show_product_options=false
			show_add_to_cart=$settings.abt__ut2.product_list.$tmpl.show_button[$settings.ab__device] === "YesNo::YES"|enum
			show_list_buttons=false
			but_role="action" 
			hide_form=true 
			show_custom_class="ut2-rp__compact"
			no_pagination=true 
			no_sorting=true 
			obj_prefix="required_products" 
		}	
	{/if}
{/if}
