Inc
0208-432-4757
0 Subtotal: £
View WishList
0£0
Reviews 2 Review For Blue Dress For Woman
Alea Brooks March 5, 2018
Lorem Ipsumin gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat ipsum, nec sagittis sem nibh id elit. Duis sed odio sit amet nibh vulputate
q
Grace Wong June 17, 2018
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters
Add a review
Item Added to Your Basket : There are some essential items which we recommend you may need.
Notify Me : There are some essential items which we recommend you may need.
'; //alert('4'); var host = window.location.host; var divBroucher = '
'; //alert('5'); $('#txtProductData').html(divVideo + divBroucher); //$('#txtProductTitle11').text("AKW U-Shaped Shower Curtain Rail 700mm x 1300mm x 700mm"); $('#txtProductTitle11').html("AKW U-Shaped Shower Curtain Rail 700mm x 1300mm x 700mm"); $('#txtPrice11').text('£' + (IsExcluding ?GetExcludingVAT("74.98"):"74.98")); $('#txtVAT11').text(IsExcluding ?'Excl. VAT' : 'Incl. VAT'); $('#txtRrpPrice11').text("103.00"); $('#txtDiscount111').text("27" + "% Off"); var prdHtml1 = ''; var prdHtml2 = ''; var prdHtml3 = ''; var prdHtml4 = ''; var prdHtml5 = ''; if("" != '') { var tmpImgUrl1 = '/Uploads/TagsImage/' + ""; prdHtml1 = '
'; $('#divTag').append(prdHtml1); } if("" != '') { var tmpImgUrl2 = '/Uploads/TagsImage/' + ""; prdHtml2 = '
'; $('#divTag').append(prdHtml2); } if("" != '') { var tmpImgUrl3 = '/Uploads/TagsImage/' + ""; prdHtml3 = '
'; $('#divTag').append(prdHtml3); } if("" != '') { var tmpImgUrl4 = '/Uploads/TagsImage/' + ""; prdHtml4 = '
'; $('#divTag').append(prdHtml4); } if("" != '') { var tmpImgUrl5 = '/Uploads/TagsImage/' + ""; prdHtml5 = '
'; $('#divTag').append(prdHtml5); } displayHierarchy("AKWCR37"); //alert('6'); //DisplayUpsale(); DisplayProductByColor(); // DisplayProductByVariance(); //DisplayUpsaleSlider(); var prd = ''; //$.each(json.List, function (key, value) { $('[data-toggle="tooltip"]').tooltip({ trigger: 'hover', }); //alert('7'); if("AKWCR01,AKWCR02,AKWCR03,AKWCR04,AKWCR05,AKWCR07,AKWCR08,AKWCR14,AKWCR15,AKWCR16,AKWCR19,AKWCR20,AKWCR22,AKWCR23,AKWCR24,AKWCR25" != '') { DisplayProductByVariance(); } //alert('8'); DisplayUpsaleSlider(); //alert('9'); //DisplayTags("AKWCR37"); //alert('10'); $("select.variation").change(function () { var selectedVariant = $(this).children("option:selected").val(); //alert("You have selected the country - " + selectedVariant); var host = window.location.host; // var url = 'https://' + host + '/product/product/ProductPage?product_refrence=' + selectedVariant; var url = 'https://' + host + '/' + selectedVariant; //window.open('https://www.codexworld.com', '_blank'); if (selectedVariant != undefined && selectedVariant != "") { window.open(url, '_blank'); } }); //slick_slider(); }); function ApplyQty() { if ($("#txtQuantity").val() == "0") { alert("Please enter valid quantity"); $("#txtQuantity").focus(); return false; } } function DisplayTags(prdref) { debugger; $.ajax({ type: "POST", url: '/Product/Product/GetTags', traditional: true, data: JSON.stringify({ "product_reference": prdref }), contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. //debugger; var rowDataSet = []; var i = 0; var prdHtml1 = ''; var prdHtml2 = ''; var prdHtml3 = ''; var prdHtml4 = ''; var prdHtml5 = ''; $.each(json.List, function (key, value) { //product_reference //debugger if (json.List[i].tag_1 != "" && json.List[i].tag_1 != undefined) { var tmpImgUrl1 = '/Uploads/TagsImage/' + json.List[i].tag_1; prdHtml1 = '
'; $('#divTag').append(prdHtml1); } if (json.List[i].tag_2 != "" && json.List[i].tag_2 != undefined) { var tmpImgUrl2 = '/Uploads/TagsImage/' + json.List[i].tag_2; prdHtml2 = '
'; $('#divTag').append(prdHtml2); } if (json.List[i].tag_3 != "" && json.List[i].tag_3 != undefined) { var tmpImgUrl3 = '/Uploads/TagsImage/' + json.List[i].tag_3; prdHtml3 = '
'; $('#divTag').append(prdHtml3); } if (json.List[i].tag_4 != "" && json.List[i].tag_4 != undefined) { var tmpImgUrl4 = '/Uploads/TagsImage/' + json.List[i].tag_4; prdHtml4 = '
'; $('#divTag').append(prdHtml4); } if (json.List[i].tag_5 != "" && json.List[i].tag_5 != undefined) { var tmpImgUrl5 = '/Uploads/TagsImage/' + json.List[i].tag_5; prdHtml5 = '
'; $('#divTag').append(prdHtml5); } i++; }); } } }); } function ApplyQtyPlus(prdcode) { var qty = $("#txtQuantity").val(); $("#txtQuantity11").val(parseInt(parseInt(qty) + 1)); var stock_available = "1000"; if (parseInt(stock_available) < parseInt(parseInt(qty)+1)) { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'none'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'block'; //$("#btnAddToCart").text('Notify Me'); $("#btnAddToCart").html('
Notify Me'); // $("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart'); $("#btnAddToCart11").html('
Notify Me'); } else { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'block'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'none'; //$("#btnAddToCart").text('Add To Cart'); $("#btnAddToCart").html('
Add To Cart'); // $("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart'); //$("#btnAddToCart").attr('class', 'icon-basket-loaded'); $("#btnAddToCart11").html('
Add To Cart'); } } function ApplyQtyPlus11(prdcode) { var qty = $("#txtQuantity11").val(); $("#txtQuantity").val(parseInt(parseInt(qty) + 1)); var stock_available = "1000"; if (parseInt(stock_available) < parseInt(parseInt(qty) + 1)) { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'none'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'block'; //$("#btnAddToCart").text('Notify Me'); $("#btnAddToCart11").html('
Notify Me'); // $("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart'); $("#btnAddToCart").html('
Notify Me'); } else { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'block'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'none'; //$("#btnAddToCart").text('Add To Cart'); $("#btnAddToCart11").html('
Add To Cart'); // $("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart'); //$("#btnAddToCart").attr('class', 'icon-basket-loaded'); $("#btnAddToCart").html('
Add To Cart'); } } function ApplyQtyMinus(prdcode) { var qty = $("#txtQuantity").val(); $("#txtQuantity11").val(parseInt(parseInt(qty) - 1)); var stock_available = "1000"; if (parseInt(stock_available) < parseInt(parseInt(qty) - 1)) { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'none'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'block'; //$("#btnAddToCart").text('Notify Me'); $("#btnAddToCart").html('
Notify Me'); //$("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart'); $("#btnAddToCart11").html('
Notify Me'); } else { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'block'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'none'; //$("#btnAddToCart").text('Add To Cart'); if (qty == 1 && stock_available == 0) { $("#btnAddToCart").html('
Notify Me'); $("#btnAddToCart11").html('
Notify Me'); } else { $("#btnAddToCart").html('
Add To Cart'); $("#btnAddToCart11").html('
Add To Cart'); } //$("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart icon-basket-loaded'); // btn btn-fill-out btn-addtocart } } function ApplyQtyMinus11(prdcode) { var qty = $("#txtQuantity11").val(); $("#txtQuantity").val(parseInt(parseInt(qty) - 1)); var stock_available = "1000"; if (parseInt(stock_available) < parseInt(parseInt(qty) - 1)) { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'none'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'block'; //$("#btnAddToCart").text('Notify Me'); $("#btnAddToCart11").html('
Notify Me'); //$("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart'); $("#btnAddToCart").html('
Notify Me'); } else { //var y = document.getElementById('btnAddToCart'); //y.style.display = 'block'; //var x = document.getElementById('btnNotifyMe'); //x.style.display = 'none'; //$("#btnAddToCart").text('Add To Cart'); if (qty == 1 && stock_available == 0) { $("#btnAddToCart11").html('
Notify Me'); $("#btnAddToCart").html('
Notify Me'); } else { $("#btnAddToCart11").html('
Add To Cart'); $("#btnAddToCart").html('
Add To Cart'); } //$("#btnAddToCart").attr('class', 'btn btn-fill-out btn-addtocart icon-basket-loaded'); // btn btn-fill-out btn-addtocart } } function Compare(prdref) { //,technical_table,product_name debugger; var flag = "add"; $.ajax({ url: '/Product/Product/CompareProd', type: "POST", dataType: "json", traditional: true, contentType: 'application/json; charset=utf-8', data: JSON.stringify({ "product_reference": prdref, "flag": flag }), success: function (json) { if (json) { //fetch all records from JSON result and make row data set. window.location.href = '/Product/Product/Compare'; } } }); } function RedirectToCartpopup(prd_ref) { //debugger; window.location.href = '/Product/Product/ProductPage?product_refrence=' + prd_ref; } function SaveNotify() { var emailid = $('#txtnotifyemail').val(); var product_refrence = "AKWCR37"; $.ajax({ type: "POST", url: '/Product/Product/SaveNotify', traditional: true, data: JSON.stringify({ product_refrence:product_refrence, email: emailid }), contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { alert(json.msg); } } }); } function NotifyMe() { $('#NotifyMeModal').modal("show"); $.ajax({ type: "POST", url: '/Product/Product/Upsale_Choices_ByProduct?product_refrence=AKWCR37', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. //debugger; var rowDataSet = []; var i = 0; var prdHtml = ''; if (json.List == '') { } // .html(''); //for (var i = 0; i < $('.item').length; i++) { // $(".edit-manage-carousel").trigger('remove.owl.carousel', [i]) // .trigger('refresh.owl.carousel'); //} //var length = $('.item').length; //for (var i = 0; i < length; i++) { // $(".edit-manage-carousel").trigger('remove.owl.carousel', [i]) // .trigger('refresh.owl.carousel'); //} if ($('#notifypopupsaleheading1').length > 0) { //alert('Element exists!'); $('#notifypopupsaleheading1').empty(); // document.getElementById('popupsaleheading1').innerHTML = ""; //$("popupsaleheading1").empty(); } if ($('#notifypopupsaleslider1').length > 0) { //document.getElementById('popupsaleslider1').innerHTML = ""; $("notifypopupsaleslider1").empty(); //$("#popupsaleslider1").remove(); } if ($('#notifypopupsaleheading2').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading2').innerHTML = ""; } if ($('#notifypopupsaleslider2').length > 0) { //document.getElementById('popupsaleslider2').innerHTML = ""; //$("popupsaleslider2").empty(); //$("#popupsaleslider2").remove(); } if ($('#notifypopupsaleheading3').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading3').innerHTML = ""; } if ($('#notifypopupsaleheading4').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading4').innerHTML = ""; } if ($('#notifypopupsaleheading5').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading5').innerHTML = ""; } if ($('#notifypopupsaleheading6').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading6').innerHTML = ""; } if ($('#notifypopupsaleheading7').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading7').innerHTML = ""; } if ($('#notifypopupsaleheading8').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading8').innerHTML = ""; } if ($('#notifypopupsaleheading9').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading9').innerHTML = ""; } if ($('#notifypopupsaleheading10').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading10').innerHTML = ""; } if ($('#notifypopupsaleheading11').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading11').innerHTML = ""; } if ($('#notifypopupsaleheading12').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading12').innerHTML = ""; } if ($('#notifypopupsaleheading13').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading13').innerHTML = ""; } if ($('#notifypopupsaleheading14').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading14').innerHTML = ""; } if ($('#notifypopupsaleheading15').length > 0) { //alert('Element exists!'); document.getElementById('notifypopupsaleheading15').innerHTML = ""; } var prdItemsHtml = ''; var prdSliderHtml = ''; var prdHeadingHtml = ''; var headflag1 = 0; var headflag2 = 0; var headflag3 = 0; var headflag4 = 0; var headflag5 = 0; var headflag6 = 0; var headflag7 = 0; var headflag8 = 0; var headflag9 = 0; var headflag10 = 0; var headflag11 = 0; var headflag12 = 0; var headflag13 = 0; var headflag14 = 0; var headflag15 = 0; //alert(json.List[0][0]); $.each(json.List, function (key, value) { //product_reference //debugger var heading1 = json.List[i].heading_number; var choice1 = json.List[i].choice_number; //alert(json.List[i].heading_number); var tmpImgUrl = ("/Areas/Product/ProductImages/{0}/{1}").format(json.List[i].brand, json.List[i].main_image_1); tmpImgUrl = tmpImgUrl.replace(/ /gi, '%20'); var tmpRedirectUrl = '/Product/Product/ProductPage?product_refrence=' + json.List[i].product_reference; //alert(tmpImgUrl); var slidersection = json.List[i].heading; if (headflag1 == 0 && json.List[i].heading_number == "heading1") { if (json.List[i].heading_number == "heading1") { prdHeadingHtml = //'
'+ // '
'+ '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; // $('#upsaleslider1').append(prdHeadingHtml); $('#notifypopupsaleheading1').append(prdHeadingHtml); headflag1 = 1; var x = document.getElementById("notifypopupsaleslider1"); var y = document.getElementById("notifypopupsaleheading1"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice1") { prdSliderHtml = '
' + '
' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?'Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + //class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + '
'; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider1').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { //headflag1 = 0; var x = document.getElementById("notifypopupsaleslider1"); var y = document.getElementById("notifypopupsaleheading1"); if (headflag1 == 0) { x.style.display = "none"; y.style.display = "none"; } //if (x.style.display === "none") { // x.style.display = "block"; //} else { // x.style.display = "none"; //} } //heading 2 if (headflag2 == 0 && json.List[i].heading_number == "heading2") { if (json.List[i].heading_number == "heading2") { prdHeadingHtml = //'
' + //'' + //'
' + // '
' + '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading2').append(prdHeadingHtml); headflag2 = 1; var x = document.getElementById("notifypopupsaleslider2"); var y = document.getElementById("notifypopupsaleheading2"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice2") { prdSliderHtml = // '
'+ // '
' + '
' + '
' + '
' + '' + '' + //'' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" // '' + //Add to Cart '
' + '
' + '
' + '
'; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider2').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider2"); var y = document.getElementById("notifypopupsaleheading2"); if (headflag2 == 0) { x.style.display = "none"; y.style.display = "none"; } //else //{ // x.style.display = "block"; // y.style.display = "block"; //} } //heading 3 if (headflag3 == 0 && json.List[i].heading_number == "heading3") { if (json.List[i].heading_number == "heading3") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading3').append(prdHeadingHtml); headflag3 = 1; var x = document.getElementById("notifypopupsaleslider3"); var y = document.getElementById("notifypopupsaleheading3"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice3") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //' ' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider3').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider3"); var y = document.getElementById("notifypopupsaleheading3"); if (headflag3 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 4 if (headflag4 == 0 && json.List[i].heading_number == "heading4") { if (json.List[i].heading_number == "heading4") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading4').append(prdHeadingHtml); headflag4 = 1; var x = document.getElementById("notifypopupsaleslider4"); var y = document.getElementById("notifypopupsaleheading4"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice4") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider4').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider4"); var y = document.getElementById("notifypopupsaleheading4"); if (headflag4 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 5 if (headflag5 == 0 && json.List[i].heading_number == "heading5") { if (json.List[i].heading_number == "heading5") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading5').append(prdHeadingHtml); headflag5 = 1; var x = document.getElementById("notifypopupsaleslider5"); var y = document.getElementById("notifypopupsaleheading5"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice5") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider5').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider5"); var y = document.getElementById("notifypopupsaleheading5"); if (headflag5 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 6 if (headflag6 == 0 && json.List[i].heading_number == "heading6") { if (json.List[i].heading_number == "heading6") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading6').append(prdHeadingHtml); headflag6 = 1; var x = document.getElementById("notifypopupsaleslider6"); var y = document.getElementById("notifypopupsaleheading6"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice6") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider6').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider6"); var y = document.getElementById("notifypopupsaleheading6"); if (headflag6 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 7 if (headflag7 == 0 && json.List[i].heading_number == "heading7") { if (json.List[i].heading_number == "heading7") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading7').append(prdHeadingHtml); headflag7 = 1; var x = document.getElementById("notifypopupsaleslider7"); var y = document.getElementById("notifypopupsaleheading7"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice7") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider7').append(prdSliderHtml); $('#notifypopupsaleslider7').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider7"); var y = document.getElementById("notifypopupsaleheading7"); if (headflag7 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 8 if (headflag8 == 0 && json.List[i].heading_number == "heading8") { if (json.List[i].heading_number == "heading8") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading8').append(prdHeadingHtml); headflag8 = 1; var x = document.getElementById("notifypopupsaleslider8"); var y = document.getElementById("notifypopupsaleheading8"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice8") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider8').append(prdSliderHtml); $('#notifypopupsaleslider8').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider8"); var y = document.getElementById("notifypopupsaleheading8"); if (headflag8 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 9 if (headflag9 == 0 && json.List[i].heading_number == "heading9") { if (json.List[i].heading_number == "heading9") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading9').append(prdHeadingHtml); headflag9 = 1; var x = document.getElementById("notifypopupsaleslider9"); var y = document.getElementById("notifypopupsaleheading9"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice9") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' +//Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider9').append(prdSliderHtml); $('#notifypopupsaleslider9').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider9"); var y = document.getElementById("notifypopupsaleheading9"); if (headflag9 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 10 if (headflag10 == 0 && json.List[i].heading_number == "heading10") { if (json.List[i].heading_number == "heading10") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading10').append(prdHeadingHtml); headflag10 = 1; var x = document.getElementById("notifypopupsaleslider10"); var y = document.getElementById("notifypopupsaleheading10"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice10") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider10').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider10"); var y = document.getElementById("notifypopupsaleheading10"); if (headflag10 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 11 if (headflag11 == 0 && json.List[i].heading_number == "heading11") { if (json.List[i].heading_number == "heading11") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading11').append(prdHeadingHtml); headflag11 = 1; var x = document.getElementById("notifypopupsaleslider11"); var y = document.getElementById("notifypopupsaleheading11"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice11") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price)+ ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider11').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider11"); var y = document.getElementById("notifypopupsaleheading11"); if (headflag11 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 12 if (headflag12 == 0 && json.List[i].heading_number == "heading12") { if (json.List[i].heading_number == "heading12") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading12').append(prdHeadingHtml); headflag12 = 1; var x = document.getElementById("notifypopupsaleslider12"); var y = document.getElementById("notifypopupsaleheading12"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice12") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider12').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider12"); var y = document.getElementById("notifypopupsaleheading12"); if (headflag12 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 13 if (headflag13 == 0 && json.List[i].heading_number == "heading13") { if (json.List[i].heading_number == "heading13") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading13').append(prdHeadingHtml); headflag13 = 1; var x = document.getElementById("notifypopupsaleslider13"); var y = document.getElementById("notifypopupsaleheading13"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice13") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider13').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider13"); var y = document.getElementById("notifypopupsaleheading13"); if (headflag13 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 14 if (headflag14 == 0 && json.List[i].heading_number == "heading14") { if (json.List[i].heading_number == "heading14") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading14').append(prdHeadingHtml); headflag14 = 1; var x = document.getElementById("notifypopupsaleslider14"); var y = document.getElementById("notifypopupsaleheading14"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice14") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider14').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider14"); var y = document.getElementById("notifypopupsaleheading14"); if (headflag14 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 15 if (headflag15 == 0 && json.List[i].heading_number == "heading15") { if (json.List[i].heading_number == "heading15") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#notifypopupsaleheading15').append(prdHeadingHtml); headflag15 = 1; var x = document.getElementById("notifypopupsaleslider15"); var y = document.getElementById("notifypopupsaleheading15"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice15") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + // class="pr_desc" '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //' Check This for Adding to Cart' + //onclick="AddToCart()" //'' + //Add to Cart '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#notifypopupsaleslider15').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { var x = document.getElementById("notifypopupsaleslider15"); var y = document.getElementById("notifypopupsaleheading15"); if (headflag15 == 0) { x.style.display = "none"; y.style.display = "none"; } } }); } }, error: function (json) { alert("Error " + json) } }); } function DisplayProductByColor() { $.ajax({ type: "POST", url: '/Product/Product/ProductByColor?product_refrence=AKWCR37', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. var rowDataSet = []; var i = 0; var prd = ''; $.each(json.List, function (key, value) { var colorcode = json.List[i].color_code.split(','); var colorname = json.List[i].color_name.split(','); var colorprdcode = json.List[i].color_product_codes.split(','); //var variationcode = json.List[i].variation_code.split(','); //var variationheading = json.List[i].variation_heading.split(','); //if (variationcode.length > 0) { // for (var k = 0; k < variationcode.length; k++) { // var newOption = $('
' + variationheading[k] + ' '); // $('#ddlABC').append(newOption); // } //} //else { // $('#ddlABC').css("display", "none"); //} var bgcolor = ""; if (colorcode.length > 0) { for (var j = 0; j < colorcode.length; j++) { if (colorname[j] == "Brown") { bgcolor = "style=" + '"background-color: rgb(135, 85, 75);"'; } //style = "background-color: rgb(51, 51, 51);" if (colorname[j] == "Gray") { bgcolor = "style=" + '"background-color: rgb(51, 51, 51);"'; } //style = "background-color: rgb(218, 50, 63);" if (colorname[j] == "Red") { bgcolor = "style=" + '"background-color: rgb(218, 50, 63);"'; } prd = '
' + ' '; //prd = '
' + //' '; //prd = '
' + //' '; $('#productbycolor').append(prd); } } else { $('#productbycolor').css("display", "none"); } //var nameArr = names.split(','); //prd = '
' + // ' '; // $('#productbycolor').append(prd); i++; }); if (json.List.length == 0) { $('#divColor').css("display", "none"); } else { $('#divColor').css("display", ""); } $('[data-toggle="tooltip"]').tooltip({ trigger: 'hover', }); $('.product_color_switch span').each(function() { var get_color = $(this).attr('data-color'); $(this).css("background-color", get_color); }); } }, error: function (json) { alert("Error " + json) } }); } function DisplayProductByVariance() { $('#ddlABC').empty(); //debugger; $.ajax({ type: "POST", url: '/Product/Product/ProductByVariation?product_refrence=AKWCR37', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. var rowDataSet = []; var i = 0; var prd = ''; $('#ddlABC').append('
-- '); $.each(json.List, function (key, value) { var variationcode = json.List[i].variation_code; var variationheading = json.List[i].product_name; var variationurl=json.List[i].product_url; var newOption = $('
' + variationheading + ' '); $('#ddlABC').append(newOption); // $('#ddlABC').css("display", "none"); i++; }); $('[data-toggle="tooltip"]').tooltip({ trigger: 'hover', }); if (json.List.length == 0) { $('#divVariation').css("display", "none"); } else { $('#lblVariationHeading').text(json.List[0].variation_heading); $('#divVariation').css("display", ""); } } }, error: function (json) { alert("Error " + json) } }); } function RedirectToCart(prdref) { var host = window.location.host; //debugger; $.ajax({ type: "POST", url: 'https://' + host + '/product/product/GetProductUrl', traditional: true, data: JSON.stringify({ product_refrence: prdref }), contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. window.location.href = 'https://'+host+'/' + json.product_url; } }, error: function (json) { } }); } //function openForm() { // document.getElementById("myModal").style.display = "block"; // Clear(); //} function SaveFormInquiry() { var isValid = true; $('.formrequired').each(function () { if ($.trim($(this).val()) == '') { isValid = false; $(this).addClass('is-invalid'); } else { $(this).removeClass('is-invalid'); } }); if (!change) { alert("Invalid Mobile No"); $("#txtMobileNo").focus(); } if (isValid && change) { // alert("test"); if ($('#exampleCheckbox2').is(':not(:checked)')) { alert('Please checked terms and condition'); } else { $.ajax({ url: '/Product/Product/Inquiry_SaveForm', type: "POST", dataType: "json", data: JSON.stringify({ id: $("#hdntxtid").val(), name: $("#txtname").val(), email: $("#txtemail").val(), mobile_no: $("#txtMobileNo").val(), question: $("#txtquestion").val() }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { // display(); Clear(); } bootbox.alert(data.message); }); } } } function Clear() { $("#txtname").val(""); $("#txtemail").val(""); $("#txtMobileNo").val(""); $("#txtquestion").val(""); // display(); } //$('.checkbox').each(function () { // var id = $(this).attr('#exampleCheckbox2'); // if ($('#exampleCheckbox2').is(':not(:checked)')) // { // alert($('#exampleCheckbox2').val() + 'is not checked'); // } //}); function RelatedProducts() { } function DisplayUpsaleSlider() { $.ajax({ type: "POST", url: '/Product/Product/Upsale_Choices_ByProduct?product_refrence=AKWCR37', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. //debugger; var rowDataSet = []; var i = 0; var prdHtml = ''; if (json.List == '') { } if ($('#upsaleslider').length > 0) { //alert('Element exists!'); //document.getElementById('upsaleslider').innerHTML = ""; } var prdItemsHtml = ''; var prdSliderHtml = ''; var prdHeadingHtml = ''; var headflag1 = 0; var headflag2 = 0; var headflag3 = 0; var headflag4 = 0; var headflag5 = 0; var headflag6 = 0; var headflag7 = 0; var headflag8 = 0; var headflag9 = 0; var headflag10 = 0; var headflag11 = 0; var headflag12 = 0; var headflag13 = 0; var headflag14 = 0; var headflag15 = 0; if(json.List.length == 0) { $("#divUpsaleProducts").css("display", "none"); } $.each(json.List, function (key, value) { //product_reference //debugger var heading1 = json.List[i].heading_number; var choice1 = json.List[i].choice_number; var tmpImgUrl = ("/Areas/Product/ProductImages/{0}/{1}").format(json.List[i].brand, json.List[i].main_image_1); tmpImgUrl = tmpImgUrl.replace(/ /gi, '%20'); var tmpRedirectUrl = '/Product/Product/ProductPage?product_refrence=' + json.List[i].product_reference; // alert(tmpImgUrl); var slidersection = json.List[i].heading; if (headflag1 == 0 && json.List[i].heading_number == "heading1") { if (json.List[i].heading_number == "heading1") { prdHeadingHtml = //'
'+ // '
'+ '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; // $('#upsaleslider1').append(prdHeadingHtml); $('#upsaleheading1').append(prdHeadingHtml); headflag1 = 1; var x = document.getElementById("upsaleslider1"); var y = document.getElementById("upsaleheading1"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice1") { prdSliderHtml = '
' + '
' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price)+ ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + '
'; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider1').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { //headflag1 = 0; var x = document.getElementById("upsaleslider1"); var y = document.getElementById("upsaleheading1"); if (headflag1 == 0) { x.style.display = "none"; y.style.display = "none"; } //if (x.style.display === "none") { // x.style.display = "block"; //} else { // x.style.display = "none"; //} } //heading 2 if (headflag2 == 0 && json.List[i].heading_number == "heading2") { if (json.List[i].heading_number == "heading2") { prdHeadingHtml = //'
' + //'' + //'
' + // '
' + '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading2').append(prdHeadingHtml); headflag2 = 1; var x = document.getElementById("upsaleslider2"); var y = document.getElementById("upsaleheading2"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice2") { prdSliderHtml = // '
'+ // '
' + '
' + '
' + '
' + '' + '' + //'' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + '
'; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider2').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider2"); var y = document.getElementById("upsaleheading2"); if (headflag2 == 0) { x.style.display = "none"; y.style.display = "none"; } //else //{ // x.style.display = "block"; // y.style.display = "block"; //} } //heading 3 if (headflag3 == 0 && json.List[i].heading_number == "heading3") { if (json.List[i].heading_number == "heading3") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading3').append(prdHeadingHtml); headflag3 = 1; var x = document.getElementById("upsaleslider3"); var y = document.getElementById("upsaleheading3"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice3") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider3').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider3"); var y = document.getElementById("upsaleheading3"); if (headflag3 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 4 if (headflag4 == 0 && json.List[i].heading_number == "heading4") { if (json.List[i].heading_number == "heading4") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading4').append(prdHeadingHtml); headflag4 = 1; var x = document.getElementById("upsaleslider4"); var y = document.getElementById("upsaleheading4"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice4") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider4').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider4"); var y = document.getElementById("upsaleheading4"); if (headflag4 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 5 if (headflag5 == 0 && json.List[i].heading_number == "heading5") { if (json.List[i].heading_number == "heading5") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading5').append(prdHeadingHtml); headflag5 = 1; var x = document.getElementById("upsaleslider5"); var y = document.getElementById("upsaleheading5"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice5") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
'; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider5').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider5"); var y = document.getElementById("upsaleheading5"); if (headflag5 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 6 if (headflag6 == 0 && json.List[i].heading_number == "heading6") { if (json.List[i].heading_number == "heading6") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading6').append(prdHeadingHtml); headflag6 = 1; var x = document.getElementById("upsaleslider6"); var y = document.getElementById("upsaleheading6"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice6") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider6').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider6"); var y = document.getElementById("upsaleheading6"); if (headflag6 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 7 if (headflag7 == 0 && json.List[i].heading_number == "heading7") { if (json.List[i].heading_number == "heading7") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading7').append(prdHeadingHtml); headflag7 = 1; var x = document.getElementById("upsaleslider7"); var y = document.getElementById("upsaleheading7"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice7") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider7').append(prdSliderHtml); $('#upsaleslider7').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider7"); var y = document.getElementById("upsaleheading7"); if (headflag7 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 8 if (headflag8 == 0 && json.List[i].heading_number == "heading8") { if (json.List[i].heading_number == "heading8") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading8').append(prdHeadingHtml); headflag8 = 1; var x = document.getElementById("upsaleslider8"); var y = document.getElementById("upsaleheading8"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice8") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
'; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider8').append(prdSliderHtml); $('#upsaleslider8').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider8"); var y = document.getElementById("upsaleheading8"); if (headflag8 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 9 if (headflag9 == 0 && json.List[i].heading_number == "heading9") { if (json.List[i].heading_number == "heading9") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading9').append(prdHeadingHtml); headflag9 = 1; var x = document.getElementById("upsaleslider9"); var y = document.getElementById("upsaleheading9"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice9") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider9').append(prdSliderHtml); $('#upsaleslider9').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider9"); var y = document.getElementById("upsaleheading9"); if (headflag9 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 10 if (headflag10 == 0 && json.List[i].heading_number == "heading10") { if (json.List[i].heading_number == "heading10") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading10').append(prdHeadingHtml); headflag10 = 1; var x = document.getElementById("upsaleslider10"); var y = document.getElementById("upsaleheading10"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice10") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider10').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider10"); var y = document.getElementById("upsaleheading10"); if (headflag10 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 11 if (headflag11 == 0 && json.List[i].heading_number == "heading11") { if (json.List[i].heading_number == "heading11") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading11').append(prdHeadingHtml); headflag11 = 1; var x = document.getElementById("upsaleslider11"); var y = document.getElementById("upsaleheading11"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice11") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider11').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider11"); var y = document.getElementById("upsaleheading11"); if (headflag11 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 12 if (headflag12 == 0 && json.List[i].heading_number == "heading12") { if (json.List[i].heading_number == "heading12") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading12').append(prdHeadingHtml); headflag12 = 1; var x = document.getElementById("upsaleslider12"); var y = document.getElementById("upsaleheading12"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice12") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider12').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider12"); var y = document.getElementById("upsaleheading12"); if (headflag12 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 13 if (headflag13 == 0 && json.List[i].heading_number == "heading13") { if (json.List[i].heading_number == "heading13") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading13').append(prdHeadingHtml); headflag13 = 1; var x = document.getElementById("upsaleslider13"); var y = document.getElementById("upsaleheading13"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice13") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider13').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider13"); var y = document.getElementById("upsaleheading13"); if (headflag13 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 14 if (headflag14 == 0 && json.List[i].heading_number == "heading14") { if (json.List[i].heading_number == "heading14") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading14').append(prdHeadingHtml); headflag14 = 1; var x = document.getElementById("upsaleslider14"); var y = document.getElementById("upsaleheading14"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice14") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider14').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider14"); var y = document.getElementById("upsaleheading14"); if (headflag14 == 0) { x.style.display = "none"; y.style.display = "none"; } } //heading 15 if (headflag15 == 0 && json.List[i].heading_number == "heading15") { if (json.List[i].heading_number == "heading15") { prdHeadingHtml = '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; $('#upsaleheading15').append(prdHeadingHtml); headflag15 = 1; var x = document.getElementById("upsaleslider15"); var y = document.getElementById("upsaleheading15"); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice15") { prdSliderHtml = // ''+ // '' + '
' + '
' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + //'
' + // '
' + // '(21) ' + //'
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' ; if (parseInt(json.List[i].stock_available) != 0) { prdSliderHtml+= '' + //onclick="AddToCart()" ' Add to Cart' ; } else prdSliderHtml+= '' ; prdSliderHtml+= '
' + '
' + '
' + ''; //''; //$('#upsaleslider').append(prdSliderHtml); $('#upsaleslider15').trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); //i++; } else { var x = document.getElementById("upsaleslider15"); var y = document.getElementById("upsaleheading15"); if (headflag15 == 0) { x.style.display = "none"; y.style.display = "none"; } } i++; }); } }, error: function (json) { alert("Error " + json) } }); } function DisplayUpsale() { $.ajax({ type: "POST", url: '/Product/Product/Upsale_Product?product_refrence=AKWCR37', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. var rowDataSet = []; var i = 0; var prdHtml = ''; if (json.List == '') { } if ($('#upsaleProduct').length > 0) { //alert('Element exists!'); document.getElementById('upsaleProduct').innerHTML = ""; } var prdItemGallaryHtml = ''; var prdImg2Html = ''; $.each(json.List, function (key, value) { //product_reference //debugger var tmpImgUrl = ("/Areas/Product/ProductImages/{0}/{1}").format(json.List[i].brand_name, json.List[i].main_image_1); tmpImgUrl = tmpImgUrl.replace(/ /gi, '%20'); var tmpRedirectUrl = '/Product/Product/ProductPage?product_refrence=' + json.List[i].product_reference; //alert(tmpImgUrl); prdImg2Html = //'
' + //'
' + '' + // style="border-style: solid; border-color: light-black;" '' + '' + //class="item" //'
' + //data-zoom-image="' + tmpImgUrl + '" //''+ //'' + //'' + '' + //'' + //''+ //'
'+ '
' + ' ' + '' + '' + '
' + '' + json.List[i].product_reference + ' ' + '
' + '
' + '' + json.List[i].product_name + '
' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + '
' + '
' + ' ' + ' ' + '' + '' + // //'' + // 'Add to cart' + // '
' + //''+ '' + //onclick="AddToCart()" ' Check This for Adding to Cart' + //onclick="AddToCart()" ' ' + //'' + //' ' + ' '; //'
'+ //'
'; $('#upsaleProduct').append(prdImg2Html); i++; }); } }, error: function (json) { alert("Error " + json) } }); } function CheckAddThisToCart(prdref, prdname, net_price) { //debugger; //var chkid = "chek_" + prdref; // if ($(chkid).is(':ch // elseecked')) { // alert('checked'); // } // alert('unchecked'); var rowCount = $('#upsaleProduct tr').length; for (var i = 1; i <= $('#upsaleProduct tr').length; i++) { if (i % 2 == 0) { if ($('#upsaleProduct').find('tr').eq(i - 1).find('input[type="checkbox"]').prop('checked') == true) { //alert("checked"); //productcode[upsalecnt] = prdref; productcode[i] = prdref; prdnetprice[i] = net_price; //upsalecnt = upsalecnt + 1; } else { //alert("unchecked"); delete productcode[i]; delete prdnetprice[i]; } } } //if ($('#upsaleProduct').find('tr').eq(1).find('input[type="checkbox"]').prop('checked') == true) { // alert("checked"); //} //else { // alert("unchecked"); //} //orderdetailid[i] = ordrDtlId; } function CheckAddThisToCartSlider(prdref, prdname, net_price) { debugger var flag = 0; for (var i = 0; i < productcodeslider.length; i++) { if (productcodeslider[i] == prdref) { delete productcodeslider[i]; delete prdnetpriceslider[i]; flag = 1; } } if (flag == 0) { productcodeslider[upsalecnt] = prdref; prdnetpriceslider[upsalecnt] = net_price; upsalecnt = upsalecnt + 1; } } function CheckAddThisToCartSliderPopup(prdref, prdname, net_price) { var flag = 0; for (var i = 0; i < productcodesliderpopup.length; i++) { if (productcodesliderpopup[i] == prdref) { delete productcodesliderpopup[i]; delete prdnetpricesliderpopup[i]; flag = 1; } } if (flag == 0) { productcodesliderpopup[upsalecntpopup] = prdref; prdnetpricesliderpopup[upsalecntpopup] = net_price; upsalecntpopup = upsalecntpopup + 1; } } function display2() { $.ajax({ type: "POST", url: '/Product/Product/Related_Product?product_refrence=AKWCR37', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. var rowDataSet = []; var i = 0; var ddlCount = 0; var j = 1; var prdHtml = ''; var heading = ''; var Prevheading = ''; if (json.List == '') { $('#divRelatedProducts').hide(); } else { //
heading = json.List[i].Heading + '*'; prdHtml = '
' + heading + '
'; prdHtml = prdHtml + 'Not Required '; $.each(json.List, function (key, value) { j++; heading = json.List[i].Heading + '*'; //alert(heading); if(Prevheading != '' && Prevheading != heading) { ddlCount++; prdHtml = prdHtml + ' '; prdHtml = prdHtml + '
' + heading + '
'; $('#divRelatedProducts').append(prdHtml); } $('.dropdown-menu label').click(function(e) { e.stopPropagation(); }); } }, error: function (json) { alert("Error " + json) } }); } String.prototype.format = function () { var formatted = this; for (var i = 0; i < arguments.length; i++) { var regexp = new RegExp('\\{' + i + '\\}', 'gi'); formatted = formatted.replace(regexp, arguments[i]); } return formatted; }; function displayRecentlyViewed() { $.ajax({ type: "POST", //url: '/Product/Product/Recently_Viewed?product_refrence=AKWCR37', url: '/Product/Product/Recently_Viewed', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. var rowDataSet = []; var i = 0; var prdHtml = ''; if (json.List == '') { $('#heading_RecentlyViewed').hide(); } $.each(json.List, function (key, value) { //product_reference var tmpImgUrl = ("/Areas/Product/ProductImages/{0}/{1}").format(json.List[i].brand_name, json.List[i].main_image_1); tmpImgUrl = tmpImgUrl.replace(/ /gi, '%20'); //var tmpImgUrl = "/Areas/Product/ProductImages/" + json.List[i].product_reference + "_1.jpg"; var tmpRedirectUrl = '/Product/Product/ProductPage?product_refrence=' + json.List[i].product_reference; //alert(tmpImgUrl); prdHtml = '
' + '
' + '
' + '' + ' ' + ' ' + '
' + '
' + /*' Add To Cart ' +*/ '' + /* ' ' +*/ '' + ' ' + '
' + '
' + '
' + '
' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ''+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' ' '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount + '% Off ' + '
' + '
' + '
' + //'
' + // '
' + // ' ' + // ' ' + // ' ' + // '
' + //'
' + '
' + '
' + '
'; $('#divRecentlyViewed').trigger('add.owl.carousel', [prdHtml]).trigger('refresh.owl.carousel'); i++; }); //$('#divRecentlyViewed').append(prdHtml); //json.List[i].product_rating //json.List[i].product_rating_count } }, error: function (json) { alert("Error " + json) } }); } function displayHierarchy(product_reference) { var host = window.location.host; // alert("test"); $.ajax({ type: "POST", url: 'https://' + host + '/product/product/HyrarchyDisplay', traditional: true, data: JSON.stringify({ product_reference: product_reference }), contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //debugger //fetch all records from JSON result and make row data set. var rowDataSet = []; var i = 0; // var host = window.location.host; var prdHtml = ''; if (json.List == '') { $('#').hide(); } $.each(json.List, function (key, value) { //debugger if(i>2) { return false; } //var tmpImgUrl = "/Areas/Brand/BrandImages/" + json.List[i].brand_logo; //var tmpRedirectUrl = '/Brand/Brand/BrandList?Brand_Name=' + json.List[i].Brand_Name; prdHtml = '' + //'
Home ' + '
' + json.List[i].category_name + ' '; //'
Product Detail '; $('#hierarchy').append(prdHtml); i++; }); } }, error: function (json) { alert("Error " + json) } }); } function AddToCartWishlist(po_prd_ref, pop_prd_name, pop_net_price, pop_rrp_price, pop_discount, brand_name, main_image_1) { //var dtDtl = $('#upsaleProduct').DataTable(); // alert("inside"); // debugger var finalmsg = ''; //for (var i = 1; i <= productcode.length; i++) { var prdreference = po_prd_ref; var netprice = pop_net_price; var qty = $("#txtQuantity").val(); // if (productcode[i] != undefined && prdnetprice[i] != undefined) { for (var i = 0; i < productcodeslider.length; i++) { if (productcodeslider[i] != undefined && prdnetpriceslider[i] != undefined) { $.ajax({ url: '/Product/Product/AddToCartScreenWishlist', //'/Product/Product/AddToCartScreenWishlist', type: "POST", dataType: "json", data: JSON.stringify({ //product_refrence: $("#txtProductTitle").val(), //product_refrence: productcode[i], product_refrence: productcodeslider[i], qty: 1, net_price: prdnetpriceslider[i] }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { if (data.msg == "") { finalmsg = "Added to Wishlist"; } else { finalmsg = data.msg; } //alert(data.msg); //alert("Added to Cart"); // display(); Clear(); //if (i == productcode.length) { // alert(finalmsg); // FillCart(); //} if (i == productcodeslider.length) { alert(finalmsg); FillCartWishlist(); } } //bootbox.alert(data.message); }); } } for (var i = 0; i < productcodesliderpopup.length; i++) { if (productcodesliderpopup[i] != undefined && prdnetpricesliderpopup[i] != undefined) { $.ajax({ url: '/Product/Product/AddToCartScreenWishlist', //'/Product/Product/AddToCartScreenWishlist', type: "POST", dataType: "json", data: JSON.stringify({ //product_refrence: $("#txtProductTitle").val(), //product_refrence: productcode[i], product_refrence: productcodesliderpopup[i], qty: 1, net_price: prdnetpricesliderpopup[i] }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { if (data.msg == "") { finalmsg = "Added to Cart"; } else { finalmsg = data.msg; } //alert(data.msg); //alert("Added to Cart"); // display(); Clear(); //if (i == productcode.length) { // alert(finalmsg); // FillCart(); //} if (i == productcodesliderpopup.length) { alert(finalmsg); FillCart(); } } //bootbox.alert(data.message); }); } } //document.getElementById(".check").checked = false; $(".check").attr("checked", false); productcodeslider = []; prdnetpriceslider = []; productcodesliderpopup = []; prdnetpricesliderpopup = []; //debugger; var prdreference = "AKWCR37"; var netprice = "74.98"; $.ajax({ url: '/Product/Product/AddToCartScreenWishlist', //'/Product/Product/AddToCartScreenWishlist', type: "POST", dataType: "json", data: JSON.stringify({ //product_refrence: $("#txtProductTitle").val(), product_refrence: prdreference, qty: $("#txtQuantity").val(), net_price: netprice,//$('#txtPrice').val(), }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { if (data.msg == "") { alert("Added to Wishlist"); } else { alert(data.msg); } //alert(data.msg); //alert("Added to Cart"); FillCartWishlist(); // display(); Clear(); } //bootbox.alert(data.message); }); } function AddToCart() { //var dtDtl = $('#upsaleProduct').DataTable(); ////alert("inside"); //debugger var finalmsg = ''; //for (var i = 1; i <= productcode.length; i++) { // if (productcode[i] != undefined && prdnetprice[i] != undefined) { for (var i = 0; i < productcodeslider.length; i++) { if (productcodeslider[i] != undefined && prdnetpriceslider[i] != undefined) { $.ajax({ url: '/Product/Product/AddToCartScreen', //'/Product/Product/AddToCartScreen', type: "POST", dataType: "json", data: JSON.stringify({ //product_refrence: $("#txtProductTitle").val(), //product_refrence: productcode[i], product_refrence: productcodeslider[i], qty: 1, net_price: prdnetpriceslider[i] }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { if (data.msg == "") { finalmsg = "Added to Cart"; } else { finalmsg = data.msg; } //alert(data.msg); //alert("Added to Cart"); // display(); Clear(); //if (i == productcode.length) { // alert(finalmsg); // FillCart(); //} if (i == productcodeslider.length) { alert(finalmsg); FillCart(); } } //bootbox.alert(data.message); }); } } for (var i = 0; i < productcodesliderpopup.length; i++) { if (productcodesliderpopup[i] != undefined && prdnetpricesliderpopup[i] != undefined) { $.ajax({ url: '/Product/Product/AddToCartScreen', //'/Product/Product/AddToCartScreen', type: "POST", dataType: "json", data: JSON.stringify({ //product_refrence: $("#txtProductTitle").val(), //product_refrence: productcode[i], product_refrence: productcodesliderpopup[i], qty: 1, net_price: prdnetpricesliderpopup[i] }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { if (data.msg == "") { finalmsg = "Added to Cart"; } else { finalmsg = data.msg; } //alert(data.msg); //alert("Added to Cart"); // display(); Clear(); //if (i == productcode.length) { // alert(finalmsg); // FillCart(); //} if (i == productcodesliderpopup.length) { alert(finalmsg); FillCart(); } } //bootbox.alert(data.message); }); } } //document.getElementById(".check").checked = false; $(".check").attr("checked", false); productcodeslider = []; prdnetpriceslider = []; productcodesliderpopup = []; prdnetpricesliderpopup = []; //debugger; var prdreference = "AKWCR37"; var netprice = "74.98"; $.ajax({ url: '/Product/Product/AddToCartScreen', //'/Product/Product/AddToCartScreen', type: "POST", dataType: "json", data: JSON.stringify({ //product_refrence: $("#txtProductTitle").val(), product_refrence: prdreference, qty: $("#txtQuantity").val(), net_price: netprice,//$('#txtPrice').val(), }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { if (data.msg == "") { alert("Added to Cart"); } else { alert(data.msg); } //alert(data.msg); //alert("Added to Cart"); FillCart(); // display(); Clear(); } //bootbox.alert(data.message); }); } function AddToCartPopup(po_prd_ref, pop_prd_name, pop_net_price, pop_rrp_price, pop_discount, brand_name,main_image_1) { //var dtDtl = $('#upsaleProduct').DataTable(); ////alert("inside"); if ($("#txtQuantity").val() == "0") { alert("Please enter valid quantity"); $("#txtQuantity").focus(); return false; } var btntext = $("#btnAddToCart").text(); if ($("#btnAddToCart").text() == "Notify Me") { NotifyMe(); } else{ var finalmsg = ''; //alert($('#ddlRelatedProducts' + i).length); //$('#divRelatedProducts > div > ul > li > a > input') for (var i = 0; i < 15; i++) { if($('#ddlRelatedProducts' + i).length > 0) { if($('#ddlRelatedProducts' + i + ' > ul > li > a > input:checked').length == 0) { alert("Please select atleast one product or select 'Not Required'"); return false; } } } //.attr("id") for (var i = 0; i < 15; i++) { if($('#ddlRelatedProducts' + i).length > 0) { //$('#ddlRelatedProducts' + i + '> option:selected').each(function() { $('#ddlRelatedProducts' + i + ' > ul > li > a > input:checked').each(function() { if($(this).attr("id") != "action") { //alert($(this).attr("id")); //alert($(this).parent("a").children("label").text().split('£')[1]); $.ajax({ url: '/Product/Product/AddToCartScreen', //'/Product/Product/AddToCartScreen', type: "POST", async:false, dataType: "json", data: JSON.stringify({ product_refrence: $(this).attr("id"), qty: 1, net_price: $(this).parent("a").children("label").text().split('£')[1] }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { } }); } }); } } //debugger; var prdreference = po_prd_ref; var netprice = pop_net_price; var qty = $("#txtQuantity").val(); // alert(qty); $.ajax({ url: '/Product/Product/AddToCartScreen', //'/Product/Product/AddToCartScreen', type: "POST", async:false, dataType: "json", data: JSON.stringify({ //product_refrence: $("#txtProductTitle").val(), product_refrence: prdreference, qty: qty, //$("#txtQuantity").val(), net_price: netprice,//$('#txtPrice').val(), }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { for (var i = 0; i < productcodeslider.length; i++) { if (productcodeslider[i] != undefined && prdnetpriceslider[i] != undefined) { $.ajax({ url: '/Product/Product/AddToCartScreen', //'/Product/Product/AddToCartScreen', type: "POST", dataType: "json", async:false, data: JSON.stringify({ product_refrence: productcodeslider[i], qty: 1, net_price: prdnetpriceslider[i] }), contentType: "application/json; charset=utf-8" }).done(function (data) { if (data.success) { } }); } } if (data.msg == "") { //alert("Added to Cart"); $('#AddToCartModal').modal("show"); if ($('#prdimgpop').length > 0) { //alert('Element exists!'); document.getElementById('prdimgpop').innerHTML = ""; } var tmpImgUrl = ("/Areas/Product/ProductImages/{0}/{1}").format(brand_name, main_image_1); tmpImgUrl = tmpImgUrl.replace(/ /gi, '%20'); var prdHtml = '
' + //'' + '' + //width="100" height="100" //' ' + '
'; $('#prdimgpop').append(prdHtml); $('#txtProductTitle1').text(pop_prd_name); $('#txtPrice1').text('£' + (IsExcluding ? GetExcludingVAT(pop_net_price) : pop_net_price)); $('#txtVAT1').text(IsExcluding ?'Excl. VAT' : 'Incl. VAT'); $('#txtRrpPrice1').text(pop_rrp_price); $('#txtDiscount11').text(pop_discount + "% Off"); DisplayUpsaleSliderPopup(); } else { //alert(data.msg); $('#AddToCartModal').modal("show"); if ($('#prdimgpop').length > 0) { //alert('Element exists!'); document.getElementById('prdimgpop').innerHTML = ""; } var tmpImgUrl = ("/Areas/Product/ProductImages/{0}/{1}").format(brand_name, main_image_1); tmpImgUrl = tmpImgUrl.replace(/ /gi, '%20'); var prdHtml = '
' + //'' + '' + //width="100" height="100" //' ' + '
'; $('#prdimgpop').append(prdHtml); $('#txtProductTitle1').text(pop_prd_name); $('#txtPrice1').text('£' + (IsExcluding ?GetExcludingVAT(pop_net_price) : pop_net_price)); $('#txtVAT1').text(IsExcluding ?'Excl. VAT' : 'Incl. VAT'); $('#txtRrpPrice1').text(pop_rrp_price); $('#txtDiscount11').text(pop_discount + "% Off"); DisplayUpsaleSliderPopup(); } //alert(data.msg); //alert("Added to Cart"); FillCart(); // display(); //Clear(); } //bootbox.alert(data.message); }); } } function DisplayUpsaleSliderPopup() { $.ajax({ type: "POST", url: '/Product/Product/Upsale_Choices_ByProduct?product_refrence=AKWCR37', traditional: true, contentType: 'application/json; charset=utf-8', success: function (json) { if (json) { //fetch all records from JSON result and make row data set. //debugger; var rowDataSet = []; var i = 0; var prdHtml = ''; if (json.List == '') { // return; } var j; for (j = 1; j < 15; j++) { if ($('#popupsaleheading' + j).length > 0) { $('#popupsaleheading' + j).empty(); document.getElementById('popupsaleheading' + j).innerHTML = ""; } var k; for (k = 0; k < $('#popupsaleslider' + j + ' .item').length; k++) { $("#popupsaleslider" + j + "").trigger('remove.owl.carousel', k).trigger('refresh.owl.carousel'); } var x = document.getElementById("popupsaleslider" + j); var y = document.getElementById("popupsaleheading" + j); x.style.display = "none"; y.style.display = "none"; } var prdItemsHtml = ''; var prdSliderHtml = ''; var prdHeadingHtml = ''; var headflag1 = 0; debugger var PrevHeader; $.each(json.List, function (key, value) { //product_reference debugger var heading1 = json.List[i].heading_number; var choice1 = json.List[i].choice_number; var CurHeader = heading1.replace("heading", ""); var tmpImgUrl = ("/Areas/Product/ProductImages/{0}/{1}").format(json.List[i].brand, json.List[i].main_image_1); tmpImgUrl = tmpImgUrl.replace(/ /gi, '%20'); var tmpRedirectUrl = '/Product/Product/ProductPage?product_refrence=' + json.List[i].product_reference; //alert(tmpImgUrl); var slidersection = json.List[i].heading; if (CurHeader != PrevHeader) { headflag1 = 0; } if (headflag1==0 && json.List[i].heading_number == "heading" + CurHeader) { if (json.List[i].heading_number == "heading" + CurHeader) { prdHeadingHtml = //'
'+ // '
'+ '
' + '
' + json.List[i].heading_value + ' ' + '
'; //'
' + json.List[i].heading_value + '
'; // $('#upsaleslider1').append(prdHeadingHtml); $('#popupsaleheading' + CurHeader).append(prdHeadingHtml); headflag1 = 1; var x = document.getElementById("popupsaleslider" + CurHeader); var y = document.getElementById("popupsaleheading" + CurHeader); x.style.display = "block"; y.style.display = "block"; } } if (json.List[i].choice_number == "choice" + CurHeader) { prdSliderHtml = '
' + '
' + '
' + '
' + '
' + json.List[i].product_reference + ' ' + '
' + '£' + (IsExcluding ? GetExcludingVAT(json.List[i].net_price) : json.List[i].net_price) + ' ' + ' '+(IsExcluding ?' Excl. VAT' : 'Incl. VAT')+' '+ '' + json.List[i].rrp_price + '' + '
' + '' + json.List[i].discount_1 + '% Off ' + '
' + '
' + '
' + '
' + json.List[i].product_name + '
' + '
' + '
' + '
' + '' + //Add to Cart '
' + '
' + '
' + '
'; $('#popupsaleslider' + CurHeader).trigger('add.owl.carousel', [prdSliderHtml]).trigger('refresh.owl.carousel'); i++; } else { //headflag1 = 0; var x = document.getElementById("popupsaleslider" + CurHeader); var y = document.getElementById("popupsaleheading" + CurHeader); if (headflag1 == 0) { x.style.display = "none"; y.style.display = "none"; } } PrevHeader = CurHeader; }); } // } }, error: function (json) { alert("Error " + json) } }); } $('.dropdown-menu label').click(function(e) { e.stopPropagation(); });