/**
* 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
*/
var requestSent = false;
function ask_quote_quick_view(ob){
        // Có request đang send
        if(requestSent == true) {
            return ;
        }
        requestSent =true;
        var id_product = jQuery(ob).attr("data-id-product");
        var infor_product = jQuery("#product-details").attr("data-product");
        // alert(infor_product);
        var session_id_doubleboo = ss_id;
        var qty_pro_pre = jQuery('#quantity_wanted').val();
        var id_condition = 0;
        var data_attribute = jQuery(".input-color").attr("data-product-attribute");
        var group_size = jQuery("#group_1").val();
        var group_color = $("input[type='radio'][name='group["+ data_attribute +"]']:checked").val();
        var combi_id = jQuery('#idCombination').attr('value');
        if(combi_id == '' || combi_id === undefined){
            combi_id = 0 ;
            if(infor_product == "" || infor_product === undefined){
                infor_product = 0;
                jQuery.ajax({
                    type: 'POST',//phương thức gửi
                    jscrossDomain: window.location.hostname,
                    crossDomain: true,
                    url: askquote_base_url+'index.php?controller=handidproduct&fc=module&module=askforaquotemodul', // lấy link của controller mới
                    data: 'id_product='+id_product + '&data_attribute=' + data_attribute + '&gr_size=' + group_size + '&gr_color=' + group_color + '&session_id=' + session_id_doubleboo + '&id_condition=' + id_condition + '&id_combination=' + combi_id + '&qty_product_pre=' + qty_pro_pre + '&quote_token=' + token_askaquotemodule + '&ajax=1',  // lấy dữ liệu từ id product ở trên định nghĩa
                    dataType:"json",
                    success: function(jsonData,textStatus,jqXHR)
                    {
                        requestSent = false;
                        updateQuote(jsonData);
                        window.parent.$(".td_dp_popup").css("display", "block");
                        window.parent.$(".background_popup").css("display", "block");
                        window.parent.$("#header").css("z-index", "9000");
                        if(num_display * 1000 > 0){
                            setTimeout(function() {
                                $('.td_dp_popup').fadeOut('slow');
                                $('.background_popup').fadeOut('slow'); 
                            }, num_display * 1000);
                        }
                    },
                    error: function(XMLHttpRequest, textStatus, errorThrown)
                    {
                        console.log(errorThrown);
                        requestSent = false;
                    }
                
                });
            } else {
                var parsed = JSON.parse(infor_product);
                var id_product_attribute = parsed.id_product_attribute;
                jQuery.ajax({
                    type: 'POST',//phương thức gửi
                    jscrossDomain: window.location.hostname,
                    crossDomain: true,
                    url: askquote_base_url+'index.php?controller=handidproduct&fc=module&module=askforaquotemodul', // lấy link của controller mới
                    data: 'id_product='+id_product + '&id_product_attribute='+id_product_attribute + '&data_attribute=' + data_attribute + '&gr_size=' + group_size + '&gr_color=' + group_color + '&session_id=' + session_id_doubleboo + '&id_condition=' + id_condition + '&id_combination=' + combi_id + '&qty_product_pre=' + qty_pro_pre + '&quote_token=' + token_askaquotemodule + '&ajax=1',  // lấy dữ liệu từ id product ở trên định nghĩa
                    dataType:"json",
                    success: function(jsonData,textStatus,jqXHR)
                    {
                        requestSent = false;
                        updateQuote(jsonData);
                        window.parent.$(".td_dp_popup").css("display", "block");
                        window.parent.$(".background_popup").css("display", "block");
                        window.parent.$("#header").css("z-index", "9000");
                        if(num_display * 1000 > 0){
                            setTimeout(function() {  
                                $('.td_dp_popup').fadeOut('slow');
                                $('.background_popup').fadeOut('slow'); 
                            }, num_display * 1000);
                        }
                    },
                    error: function(XMLHttpRequest, textStatus, errorThrown)
                    {
                        console.log(errorThrown);
                        requestSent = false;
                    }
                
                });
            }
        }else{
            jQuery.ajax({
                type: 'POST',//phương thức gửi
                jscrossDomain: window.location.hostname,
                crossDomain: true,
                url: askquote_base_url+'index.php?controller=handidproduct&fc=module&module=askforaquotemodul', // lấy link của controller mới
                data: 'id_product='+id_product + '&id_product_attribute='+id_product_attribute + '&gr_size=' + group_size + '&gr_color=' + group_color + '&session_id=' + session_id_doubleboo + '&id_condition=' + id_condition + '&id_combination=' + combi_id + '&qty_product_pre=' + qty_pro_pre + '&quote_token=' + token_askaquotemodule + '&ajax=1',  // lấy dữ liệu từ id product ở trên định nghĩa
                dataType:"json",
                success: function(jsonData,textStatus,jqXHR)
                {
                    requestSent = false;
                    updateQuote(jsonData); 
                    window.parent.$(".td_dp_popup").css("display", "block");
                    window.parent.$("#header").css("z-index", "9000");
                    window.parent.$(".background_popup").css("display", "block");
                    if(num_display * 1000 > 0){
                        setTimeout(function() {  
                            $('.td_dp_popup').fadeOut('slow');
                            $('.background_popup').fadeOut('slow'); 
                        }, num_display * 1000);
                    }
                
                },
                error: function(XMLHttpRequest, textStatus, errorThrown)
                {
                    requestSent = false;
                }
            
            });
        }
 }

function updateQuote(jsonData){
    var html = '';
    var html_count = '';
	html_count+= '<a href = "'+url_php+'index.php?controller=quotes&fc=module&module=askforaquotemodul" style = "font-size:17px;cursor:pointer;" class="td_cart_quote" >';
	html_count+=         '<i id="bag" class="ion-bag"></i>';
	html_count+= '</a>';
	if(jsonData.number > 0 && jsonData.number < 2){
		html_count+= '<span style = "font-size:11px;cursor:pointer;" class = "number_product_dbboo td_number_product_dbboo" id="'+jsonData.number+'">'+jsonData.number+'</span>';
		
	}
	else if (jsonData.number >= 2){
		html_count+= '<span style = "font-size:11px;cursor:pointer;" class = "number_product_dbboo td_number_product_dbboo" id="'+jsonData.number+'">'+jsonData.number+'</span>';
	}
	else{
		html_count+= '<span style = "font-size:11px;cursor:pointer;" class = "number_product_dbboo td_number_product_dbboo" id="'+jsonData.number+'">0</span>';
	}
        
    
    for(i=0;i<jsonData.number;i++){
        html+= '<div class = "quote_list td_quote_list">';
        html+=        '<a class="cart-images" href="'+jsonData[i].link_pro+'">';
        html+=       '<img src="'+jsonData[i].img_doubleboo+'"  alt="'+jsonData[i].name+'" style="width:80px; height:80px">';
        html+=      '</a>';
        html+=  '<div class="cart_info_product td_cart_info_product">';
        html+=     '<a href="'+jsonData[i].link_pro+'"><p class="td_name_quote">'+jsonData[i].name+'</p></a>';;
        if(jsonData[i].attr_dbboo == undefined){
            html+=     '<small>   </small>';
        }else{
        html+=     '<small class="td_attr_quote">'+jsonData[i].attr_dbboo+'</small>';
        }
        html+=     '<div class="price_cart_product td_price_cart_product">';
        if (jsonData.check_opt_price == 1) {
            html += '<span>'+jsonData[i].price_formatted+'</span></br></div>';
        } else {
            html += '<span style="display:none;">' + jsonData[i].price_formatted + '</span></div>';
        } 
        html+=  '<div><span class = "td_count_product count_product">x'+jsonData[i].so_luong_sp[0]['count_product']+'</span>';
        html+=            '<div class="remove-wrap td_remove-wrap" >';
        html+=           '<a type = "submit" class = "remove_btn" fun_delete="1" data-id-rm = "'+jsonData[i].id+'" data-id-cb="'+jsonData[i].id_combi_dbboo+'"  href="javascript:void(0);"" rel="1_1"><i class="fa fa-trash" aria-hidden="true"></i></a>';
        html+=            '</div>'
        html+=     '</div></div>';
        html+=     '</div>';
        
                
    }
	if (jsonData.check_opt_price == 1) {
		html+=     '<div class="quotes-cart-prices td_quotes-cart-prices">';
		html+=        '<span class="col-xs-12 col-lg-6 td_total" style="float:left;width:50px;font-weight: 700;">Total:</span>';
		html+=        '<span class="quotes-cart-total col-xs-12 col-lg-6 td_total" style = "text-align:right;">';
		html+=            jsonData.total_price_formatted;
		html+=        '</span>';
		html+=    '</div>';
	} else {
		html+=     '<div class="quotes-cart-prices td_quotes-cart-prices" style="display:none;">';
		html+=        '<span class="col-xs-12 col-lg-6 td_total" style="float:left;width:50px;font-weight: 700;">Total:</span>';
		 html+=        '<span class="quotes-cart-total col-xs-12 col-lg-6 td_total" style = "text-align:right;display:none;">';
		html+=            jsonData.total_price_formatted;
		html+=        '</span>';
		html+=    '</div>';
	}
    window.parent.$(".quote_body").html(html);
    window.parent.$(".quotes").html(html_count);
    
    var html1 = '';
    for(i=0;i<jsonData.number;i++){
        html1+=        '<tr class = "'+jsonData[i].id_combi_dbboo+'" style="border: none;">';
        html1+=           '<td class = "product_display" style = "width: 120px;border-left: none;border-right: none;">';
        html1+=              '<a href="'+jsonData[i].link_pro+'">';
        html1+=                  '<img src="'+jsonData[i].img_doubleboo+'" style="border: 1px solid #cacaca;border-radius: 6px;width:80px;" alt="'+jsonData[i].name+'">';
        html1+=              '</a>';
        html1+=            '</td>';
        html1+=         '<td class = "product_display" style="border-left: none;border-right: none;">';
        html1+=              '<a href="'+jsonData[i].link_pro+'">';
        html1+=                 '<p>'+jsonData[i].name+'</p>';
        html1+=              '</a>';
        if(typeof jsonData[i].attribute_dbboo !== "undefined"  && jsonData[i].attribute_dbboo != undefined && jsonData[i].attribute_dbboo != ''){
			html1+=            '<small>'+jsonData[i].attribute_dbboo+' </small><br>';
        }
        if (jsonData[i].reference == '') {
        }else{
        html1+=            '<small>'+table_header_sku + ' ' +jsonData[i].reference+' </small><br>';
        }
        html1+=         '</td>';
        if (jsonData.check_opt_price == 1) {
            html1+=            '<td class = "product_display quote_unit_price" style="border-left: none;border-right: none;">';
            html1+=               jsonData[i].price_formatted;         
            html1+=          '</td>';
        } else {
            html1+=            '<td class = "product_display quote_unit_price" style="border-left: none;border-right: none; display:none;">';
            html1+=               jsonData[i].price_formatted;         
            html1+=          '</td>';
        }
        html1+=          '<td class = "product_display" style="border-left: none;border-right: none;width: 20%;">';
        html1+=                '<div>';
        html1+=                     '<div style="width:40px; float:left;height:40px;margin-right: 1px;">';
        html1+=                         '<input class = "count_dbboo'+jsonData[i].id_combi_dbboo+'_'+jsonData[i].id+'" size="3" maxlength="6" type="text" value="'+jsonData[i].so_luong_sp[0]['count_product']+'" style = "border: 1px solid #bdbdbd;border-radius: 3px;text-align: center;width: 100%;height: 100%;" disabled>';
             
        html1+=                     '</div>';
        html1+=                     '<div>';
        html1+=                            '<div>';
        html1+=                              '<a onclick="up_product('+jsonData[i].id_combi_dbboo+','+jsonData[i].id+')" href="javascript:void(0);" class = "btn btn-default up_count" id="'+jsonData[i].id_combi_dbboo+'_'+jsonData[i].id+'" rel="1_1"><i class="icon-plus"></i></a>';
        html1+=                                '<br>'
        html1+=                              '<a onclick="down_product('+jsonData[i].id_combi_dbboo+','+jsonData[i].id+')"href="javascript:void(0);" class = "btn btn-default down_count" id = "'+jsonData[i].id_combi_dbboo+'_'+jsonData[i].id+'" rel="1_1"><i class="icon-minus"></i></a>';
        html1+=                          '</div>';
        html1+=                     '</div>';
        html1+=               '</div>';
        html1+=          '</td>';
        if (jsonData.check_opt_price == 1) {
            html1+=          '<td class = "product_display quote_total_price" style="border-left: none;border-right: none;">';
            html1+=                '<span class = "price'+jsonData[i].id_combi_dbboo+'_'+jsonData[i].id+'" value="'+parseFloat(jsonData[i].price).toFixed(2)+'">'+ jsonData[i].total_price_formatted+'</span> ';
            html1+=          '</td>';
        }else{
            html1+=          '<td class = "product_display quote_total_price" style="border-left: none;border-right: none;display:none;">';
            html1+=                '<span class = "price'+jsonData[i].id_combi_dbboo+'_'+jsonData[i].id+'" value="'+parseFloat(jsonData[i].price).toFixed(2)+'">'+ jsonData[i].total_price_formatted +'</span> ';
            html1+=          '</td>';
        }
        html1+=          '<td class = "product_display" style="border-left: none;border-right: none;">';
        html1+=                '<a onclick="del_product('+jsonData[i].id_combi_dbboo+','+jsonData[i].id+')" class = "del_btn del_btn_pri" id= "del_dboo" fun_delete="1" data-id-rm = "'+jsonData[i].id+'"  data-id-combi="'+jsonData[i].id_combi_dbboo+'" href="javascript:void(0);" rel="1_1" style = "font-size: 20px;display: block;margin: auto;width: 20px;height: 25px;"><i class="icon-trash"></i></a>';
        html1+=             '</td>';
        html1+=      '</tr>';         
    }
    if(jsonData.number == 0){
        window.parent.$(".quotes_cart_block").css("display", "none");
        var html_warning_quote = '';
         html_warning_quote += '<div>';
        html_warning_quote += '<p class="alert alert-warning">' + no_product_in_quote + '</p>'
        html_warning_quote += '</div>';
        jQuery(".quote_body_new_dbboo").html(html_warning_quote);
    }
    if(jsonData.number > 0)
    {
        window.parent.$(".quotes_cart_block").removeAttr("style");
        if (jsonData.check_opt_price == 1) {
            html1+=        '<tr class="total_display" style = "border:none;">';
            html1+=           '<td colspan="4" align="right" style= "text-align: right;border-left: none;border-right: none;"><h5>'+cart_total_l+'</h5></td>';
            html1+=            '<td colspan="2" style="border-left: none;border-right: none;">';
            html1+=                '<span class = "total" value = "' + parseFloat(jsonData.total_price).toFixed(2) +'" id="dbboo"  >' + jsonData.total_price_formatted +'</span>';
            html1+=                '<input type="hidden" name="total_dbboo" value="'+parseFloat(jsonData.total_price).toFixed(2)+'">';
            html1+=             '</td>';
            html1+=        '</tr>';
        }else {
            html1+=        '<tr class="total_display" style = "border:none; display:none;">';
            html1+=           '<td colspan="4" align="right" style= "text-align: right;border-left: none;border-right: none;"><h5>'+cart_total_l+'</h5></td>';
            html1+=            '<td colspan="2" style="border-left: none;border-right: none;">';
            html1+=                '<span class = "total" value = "' + parseFloat(jsonData.total_price).toFixed(2) + '" id="dbboo"  >' + jsonData.total_price_formatted +'</span>';
			html1+=                '<input type="hidden" name="total_dbboo" value="'+parseFloat(jsonData.total_price).toFixed(2)+'">';
            html1+=             '</td>';
            html1+=        '</tr>';
        }
    }
    window.parent.$(".table_body").html(html1);
    var html_pop = '';
    html_pop+=        '<a class="td_popup_image" style="width: 30%;" href="">';
	for(var i = 0; i < jsonData.number; i++){
		if(jsonData.check_id_pro == jsonData[i].id && jsonData.check_id_combi == jsonData[i].id_combi_dbboo){
			html_pop+=       '<img style="width: 100px;" src="'+jsonData[i].img_doubleboo+'"  alt="'+jsonData[i].name+'">';
			html_pop+=      '</a>';
			html_pop +=        '<div style="float:left;padding-left: 15px;width: 65%;"> <h6 class="td_name_popup">' + jsonData[i].name + '</h6><br>';
			if (jsonData.check_opt_price == 1) {
				html_pop +=     '<div class="td_price_pro_popup">' + jsonData[i].price_formatted+ '</div>';
			}else{
				
			}
			if(jsonData[i].attr_dbboo == undefined){
				html_pop+=     '<div>   </div>';
			}else{
				html_pop+=     '<div style="padding-top: 5px;color: #5f5f5f;font-size: 12px;"><strong class="td_attr_popup">Attribute: </strong>'+jsonData[i].attr_dbboo+'</div> </div>';
			} 
		}
	}
    
    window.parent.$(".infor_product").html(html_pop);  
    var html_right_num = '';
	if(jsonData.number > 0 && jsonData.number < 2){
		html_right_num+= ''+jsonData.number+'';
		
	}
	else if (jsonData.number >= 2){
		html_right_num+= ''+jsonData.number+'';
	}
	else{
		html_right_num+= ''+jsonData.number+'';
	}
    window.parent.$(".td_number_items").html(html_right_num);
    var html_right_pop;
	if (jsonData.check_opt_price == 1) {
		html_right_pop = jsonData.total_price_formatted;
	} else {
		html_right_pop = '<span style="display:none">'+jsonData.total_price_formatted+'</span>';
	}  
    window.parent.$(".td_price_popup").html(html_right_pop);             
}

jQuery(document).ready(function(){
	$('#fancybox-frame1520824171945').contents().find('#product').css({
		display: 'none',
		color: 'purple'
	});
    jQuery(".back_shopping").click(function(){
        window.parent.$(".td_dp_popup").removeAttr("style");
        window.parent.$(".background_popup").removeAttr("style");
    });
    $('.td_close').click(function() {
        $(".td_dp_popup").fadeOut();
        window.parent.$(".td_dp_popup").removeAttr("style");
        window.parent.$(".background_popup").removeAttr("style");
    });
    jQuery(".background_popup").click(function(){
        window.parent.$(".td_dp_popup").removeAttr("style");
        window.parent.$(".background_popup").removeAttr("style");
    });

    jQuery(".quote_cart_button").click(function(e){
        if(requestSent == true) {
            return ;
        }
        requestSent = true;
        var id_product = jQuery(this).attr("data-id-product");
        var session_id_doubleboo = ss_id;
        var qty_pro_pre = jQuery('#quantity_wanted').val();
        var id_condition = 0;
        var data_attribute = jQuery(".input-color").attr("data-product-attribute");
        var group_size = jQuery("#group_1").val();
        var group_color = $("input[type='radio'][name='group["+ data_attribute +"]']:checked").val();
        var combi_id = jQuery('#idCombination').attr('value');
        var baseurl = window.location.hostname;
        if(combi_id == '' || combi_id === undefined){
            combi_id = 0 ;
            jQuery.ajax({
                type: 'POST',//phương thức gửi
                jscrossDomain: window.location.hostname,
                crossDomain: true,
                url: askquote_base_url+'index.php?controller=handidproduct&fc=module&module=askforaquotemodul', // lấy link của controller mới
                data: 'id_product='+id_product + '&data_attribute=' + data_attribute + '&gr_size=' + group_size + '&gr_color=' + group_color + '&session_id=' + session_id_doubleboo + '&id_condition=' + id_condition + '&id_combination=' + combi_id + '&qty_product_pre=' + qty_pro_pre + '&quote_token=' + token_askaquotemodule + '&ajax=1',  // lấy dữ liệu từ id product ở trên định nghĩa
                dataType:"json",
                success: function(jsonData,textStatus,jqXHR)
                {
                    requestSent = false;
                    updateQuote(jsonData);
                    window.parent.$(".td_dp_popup").css("display", "block");
                    window.parent.$(".background_popup").css("display", "block");
                    window.parent.$("#header").css("z-index", "9000");
                    if(num_display * 1000 > 0){
                        setTimeout(function() {  
                            $('.td_dp_popup').fadeOut('slow');
                            $('.background_popup').fadeOut('slow'); 
                        }, num_display * 1000);
                    }
                },
                error: function(XMLHttpRequest, textStatus, errorThrown)
                {
                    requestSent = false;
                }
            
            });
        }else{
            jQuery.ajax({
                type: 'POST',//phương thức gửi
                jscrossDomain: window.location.hostname,
                crossDomain: true,
                url: askquote_base_url + 'index.php?controller=handidproduct&fc=module&module=askforaquotemodul', // lấy link của controller mới
                data: 'id_product='+id_product + '&gr_size=' + group_size + '&gr_color=' + group_color + '&session_id=' + session_id_doubleboo + '&id_condition=' + id_condition + '&id_combination=' + combi_id + '&qty_product_pre=' + qty_pro_pre + '&quote_token=' + token_askaquotemodule + '&ajax=1',  // lấy dữ liệu từ id product ở trên định nghĩa
                dataType:"json",
                success: function(jsonData,textStatus,jqXHR)
                {
                    updateQuote(jsonData);
                    parent.jQuery.fancybox.close();
                    window.parent.$(".td_dp_popup").css("display", "block");
                    window.parent.$(".background_popup").css("display", "block");
                    window.parent.$("#header").css("z-index", "9000");
                    if(num_display * 1000 > 0){
                        setTimeout(function() {  
                            $('.td_dp_popup').fadeOut('slow');
                            $('.background_popup').fadeOut('slow'); 
                        }, num_display * 1000);
                    }
                
                },
                error: function(XMLHttpRequest, textStatus, errorThrown)
                {
                
                }
            
            });
        }
    });
    jQuery(document).on('click','a.remove_btn',function(){
        var id_product_rm = jQuery(this).attr("data-id-rm");
        var id_condition = jQuery(this).attr("fun_delete");
        var session_id_doubleboo = ss_id;
        var qty_pro_pre = jQuery('#quantity_wanted').val();
        var id_combi_del = jQuery(this).attr("data-id-cb");
        var baseurl = window.location.hostname;
        jQuery.ajax({
            type: 'POST',//phương thức gửi
            jscrossDomain: window.location.hostname,
            crossDomain: true,
            url: 'index.php?controller=handidproduct&fc=module&module=askforaquotemodul', // lấy link của controller mới
            data:'session_id=' + session_id_doubleboo + '&id_product_remove='+id_product_rm + '&id_condition=' + id_condition +'&id_combination_rm=' + id_combi_del + '&qty_product_pre=' + qty_pro_pre + '&quote_token=' + token_askaquotemodule + '&ajax=1',  // lấy dữ liệu từ id product ở trên định nghĩa
            dataType:"json",
            success: function(jsonData,textStatus,jqXHR)
            {
                updateQuote(jsonData); 
            }
        });
    });
    
});
$(document).ready(function () {
    var myVar;
    myVar = setInterval(function () {
        var width = $(window).width();
        var width_content_style = $(".td_dp_popup").outerWidth(false);
        var left = (parseFloat(width) - parseFloat(width_content_style)) / 2;
        $(".td_dp_popup").css("left", parseInt(left) + "px");
        var height = jQuery(window).height();
        var height_content_style = $(".td_dp_popup").outerHeight(false);
        var top = (parseFloat(height) - parseFloat(height_content_style)) / 2;
        $(".td_dp_popup").css("top", parseInt(top) + "px");
    }, 100);
    
});
/** since 1.0.38+ convert a Cart into a Quote extend code from templates/front/convert_cart.tpl **/
 $(document).ready(function(){
	if (typeof askforaquotemodul_convert_btn !== "undefined") {
		// for 1.6.x Cart page
		$("p.cart_navigation").append(askforaquotemodul_convert_btn);
		// for 1.7+ in Cart page
		$(".cart-grid-body, .checkout.cart-detailed-actions .text-sm-center").append(askforaquotemodul_convert_btn);
		// for 1.7 in checkout page
		$("#js-checkout-summary .cart-summary-totals").append(askforaquotemodul_convert_btn);
	}
});