{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@buy-addons.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    Buy-addons    <contact@buy-addons.com>
* @copyright 2007-2020 Buy-addons
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<script language="javascript" type="text/javascript">
    var token_askaquotemodule = "{$token_askaquotemodule|escape:'htmlall':'UTF-8'}";
    var option_show_captcha = "{$option_show_captcha|escape:'htmlall':'UTF-8'}";
    var check_id_customer = "{$check_id_customer|escape:'htmlall':'UTF-8'}";
    var ss_id = "{$ss_id|escape:'htmlall':'UTF-8'}";
    var url_php = "{$url_php|escape:'htmlall':'UTF-8'}";
    var sign_currency = "{$sign_currency|escape:'htmlall':'UTF-8'}";
    var option_addtocart = "{$option_addtocart|escape:'htmlall':'UTF-8'}";
    var success = "{l s='Su solicitud de cotización está completa, Gracias.' mod='askforaquotemodul'}";
    var quote_l = "{l s='Quotes' mod='askforaquotemodul'}";
    var empty_l = "{l s='(empty)' mod='askforaquotemodul'}";
    var product_l = "{l s='product' mod='askforaquotemodul'}";
    var products_l = "{l s='products' mod='askforaquotemodul'}";
    var cart_total_l = "{l s='Cart total:' mod='askforaquotemodul'}";
    var table_header_sku = "{l s='SKU:' mod='askforaquotemodul'}";
    var table_header_Total_2 = "{l s='Total:' mod='askforaquotemodul'}";
    var x_l = "{l s='x' mod='askforaquotemodul'}";
    var success_message = "{l s='Your message has been successfully sent to our team.' mod='askforaquotemodul'}";
    var click_ask_success = "{l s='Product successfully added to your quote cart!' mod='askforaquotemodul'}";
    var no_product_in_quote = "{l s='No product in your quote' mod='askforaquotemodul'}";
    var check_vs = "{$check_vs|escape:'htmlall':'UTF-8'}";
</script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:600" rel="stylesheet">
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">

<div class="ask_quote td_quote_top {if $hook} {$hook|escape:'htmlall':'UTF-8'}{/if}">
	<div class = "td_ask_quote">
		<div class = "quotes" >
			<a  href = "{$link_quote_seo|escape:'htmlall':'UTF-8'}" style = "font-size:17px;cursor:pointer;" class="td_cart_quote" >
				<i id="bag" class="ion-bag"></i>
			</a>
			{if $num_total['number'] > 0 &&   $num_total['number'] < 2}
				<span style = "font-size:11px;cursor:pointer;" class = "number_product_dbboo td_number_product_dbboo" id= "{$num_total['number']|escape:'htmlall':'UTF-8'}">{$num_total['number']|escape:'htmlall':'UTF-8'}</span>
				{else if $num_total['number'] >= 2}
					<span style = "font-size:11px;cursor:pointer;" class = "number_product_dbboo td_number_product_dbboo" id= "{$num_total['number']|escape:'htmlall':'UTF-8'}">{$num_total['number']|escape:'htmlall':'UTF-8'}</span>
				{else}
					<span style = "font-size:11px;cursor:pointer;" class = "number_product_dbboo td_number_product_dbboo" id= "{$num_total['number']|escape:'htmlall':'UTF-8'}">0</span>
			{/if}
		
		</div>
	<span class = "block_quotes td_block_quotes">
		<div class="quotes_cart_block td_quotes_cart_block" id="box-body" {if $num_total['number'] == 0 } style="display:none" {/if} >
    		<div class = "quote_body td_quote_body">
    			{foreach from=$details_product key=key item=item}
    					<div class = "quote_list td_quote_list">
    						<a class="cart-images" href="{$item->link_pro|escape:'htmlall':'UTF-8'}" title="{$item->name|escape:'htmlall':'UTF-8'}">
                    			<img src="{$item->img_doubleboo|escape:'htmlall':'UTF-8'}" alt="{$item->name|escape:'htmlall':'UTF-8'}" style="width:80px;height:80px">
                			</a>
                			<div class="cart_info_product td_cart_info_product">
	                			<a href="{$item->link_pro|escape:'htmlall':'UTF-8'}"><p class="td_name_quote">{$item->name|escape:'htmlall':'UTF-8'}</p></a>
	                			{if !isset($item->attr_dbboo)}
	                				<small>   </small>
	                				{elseif isset($item->attr_dbboo)}
	                					<small class="td_attr_quote">{$item->attr_dbboo|escape:'htmlall':'UTF-8'}</small>
	                			{/if}
								<div class="price_cart_product td_price_cart_product">
									{if $option_price_total == 1}
										<span>
											{$item->price_full|escape:'htmlall':'UTF-8'}
										</span>
										</br>
										{else}
										<span style="display:none;">
											{$item->price_full|escape:'htmlall':'UTF-8'}
										</span>											
									{/if}
								</div>
								<div class="">
									<span class = "td_count_product">x{$details_product[$key]->so_luong_sp[0]['count_product']|escape:'htmlall':'UTF-8'}</span>
									<div class="remove-wrap td_remove-wrap check_box">
										<a class = "remove_btn" fun_delete="1" data-id-rm = "{$item->id|escape:'htmlall':'UTF-8'}" data-id-cb="{$item->id_combi_dbboo|escape:'htmlall':'UTF-8'}" href="javascript:void(0);" rel="1_1">
											<i style="font-size:15px !important;" class="fa fa-trash" aria-hidden="true"></i>
										</a>
									</div>
								</div>
	                		</div>
    					</div>
    			{/foreach}
				
    			{if $option_price_total == 1}
					<div class="td_quotes-cart-prices quotes-cart-prices">
						<span class="td_total" style="float: left;width: 50px;font-weight: 700;">{l s='Total: ' mod='askforaquotemodul'}</span>
						<span class="quotes-cart-total td_total" style = "float:right;">
							{$num_total['total_price_full']|escape:'htmlall':'UTF-8'}
						</span>
					</div>
	                {else}
						<div class="td_quotes-cart-prices quotes-cart-prices" style="display:none;">
							<span class="td_total" style="float: left;width:50px;font-weight: 700;">{l s='Total: ' mod='askforaquotemodul'}</span>
							<span class="quotes-cart-total td_total" style = "float:right;">
								{$num_total['total_price_full']|escape:'htmlall':'UTF-8'}
							</span>
						</div>
	            {/if}
				
    		</div>
    		<div class = "quote_button check_box td_quote_button">
				<div class = "btn_quote check_box td_btn_quote">
					<a class = "btn btn-default_mine td_view_list" href= "{$link_quote_seo|escape:'htmlall':'UTF-8'}" >
						{l s='View list' mod='askforaquotemodul'}
					</a>
				</div>
			</div>
    	</div>
		
    </span>
	</div>
</div>
	