Enjoy Free Shipping when you spend $299+. Use Code   FREESHIP299  
Icon Logo
Icon Cart 0 items - $0.00
Home

testttttttttt

Sazerac

Sazerac Rye Whiskey (3 Pack) Bundle #034

750 ml | 45% ABV
Whiskey

Cockspur

Cockspur Fine Rum

750 ml | 40% ABV
Rum

Straw Boys

Straw Boys Irish Vodka

750 ml | 40% ABV
Vodka

Straw Boys

Straw Boys Irish Poitin

750 ml | 45% ABV
Whiskey | Moonshine

Conncullin

Conncullin Irish Gin

750 ml | 40% ABV
Gin

Rodenbach

Rodenbach Caractere Rouge

750 ml | 7% ABV
Wine

Buffalo Trace

Buffalo Trace Distillery (3 Pack) Bundle #038

750 ml | 45% ABV
Whiskey

Ole Smoky

Ole Smoky Chocolate Cherries Moonshine

750 ml | 50% ABV
Whiskey | Moonshine

Tyrconnell

The Tyrconnell 16 Year Single Malt Irish Whiskey

750 ml | 46% ABV
Whiskey | Irish

Tyrconnell

The Tyrconnell 15 Year Madeira Cask Finish

750 ml | 40% ABV
Whiskey | Irish

Connemara

Connemara 12 Year Old Peated Single Malt Irish Whiskey

750 ml | 40% ABV
Whiskey | Irish

Johnnie Walker

Johnnie Walker Black Label Scotch whisky

750 ml | 40% ABV
Whiskey | Scotch

Cloudy Bay

Cloudy Bay Sauvignon Blanc Vintage 2019

750 ml | 13% ABV
Wine

Casamigos

Casamigos Mezcal Joven

750 ml | 40% ABV
Mezcal

The Glenlivet

The Glenlivet Code

750 ml | 40% ABV
Whiskey | Single Malt

Ballyhoo

Ballyhoo Irish Whiskey

750 ml | 43% ABV
Whiskey | Irish

I am over the age of 21 and agree to the terms of use for this site.

Your Cart is Empty

add to cart

Sazerac

Sazerac Rye Whiskey (3 Pack) Bundle #034

750 ml | 45% ABV
Whiskey

Cockspur

Cockspur Fine Rum

750 ml | 40% ABV
Rum

Straw Boys

Straw Boys Irish Vodka

750 ml | 40% ABV
Vodka

Straw Boys

Straw Boys Irish Poitin

750 ml | 45% ABV
Whiskey | Moonshine

Conncullin

Conncullin Irish Gin

750 ml | 40% ABV
Gin

Rodenbach

Rodenbach Caractere Rouge

750 ml | 7% ABV
Wine

Buffalo Trace

Buffalo Trace Distillery (3 Pack) Bundle #038

750 ml | 45% ABV
Whiskey

Ole Smoky

Ole Smoky Chocolate Cherries Moonshine

750 ml | 50% ABV
Whiskey | Moonshine

Tyrconnell

The Tyrconnell 16 Year Single Malt Irish Whiskey

750 ml | 46% ABV
Whiskey | Irish

Tyrconnell

The Tyrconnell 15 Year Madeira Cask Finish

750 ml | 40% ABV
Whiskey | Irish

Connemara

Connemara 12 Year Old Peated Single Malt Irish Whiskey

750 ml | 40% ABV
Whiskey | Irish

Johnnie Walker

Johnnie Walker Black Label Scotch whisky

750 ml | 40% ABV
Whiskey | Scotch

Cloudy Bay

Cloudy Bay Sauvignon Blanc Vintage 2019

750 ml | 13% ABV
Wine

Casamigos

Casamigos Mezcal Joven

750 ml | 40% ABV
Mezcal

The Glenlivet

The Glenlivet Code

750 ml | 40% ABV
Whiskey | Single Malt

Ballyhoo

Ballyhoo Irish Whiskey

750 ml | 43% ABV
Whiskey | Irish
= .children('.js-order-summary-content'); if (!
Home

testttttttttt

Sazerac

Sazerac Rye Whiskey (3 Pack) Bundle #034

750 ml | 45% ABV
Whiskey

Cockspur

Cockspur Fine Rum

750 ml | 40% ABV
Rum

Straw Boys

Straw Boys Irish Vodka

750 ml | 40% ABV
Vodka

Straw Boys

Straw Boys Irish Poitin

750 ml | 45% ABV
Whiskey | Moonshine

Conncullin

Conncullin Irish Gin

750 ml | 40% ABV
Gin

Rodenbach

Rodenbach Caractere Rouge

750 ml | 7% ABV
Wine

Buffalo Trace

Buffalo Trace Distillery (3 Pack) Bundle #038

750 ml | 45% ABV
Whiskey

Ole Smoky

Ole Smoky Chocolate Cherries Moonshine

750 ml | 50% ABV
Whiskey | Moonshine

Tyrconnell

The Tyrconnell 16 Year Single Malt Irish Whiskey

750 ml | 46% ABV
Whiskey | Irish

Tyrconnell

The Tyrconnell 15 Year Madeira Cask Finish

750 ml | 40% ABV
Whiskey | Irish

Connemara

Connemara 12 Year Old Peated Single Malt Irish Whiskey

750 ml | 40% ABV
Whiskey | Irish

Johnnie Walker

Johnnie Walker Black Label Scotch whisky

750 ml | 40% ABV
Whiskey | Scotch

Cloudy Bay

Cloudy Bay Sauvignon Blanc Vintage 2019

750 ml | 13% ABV
Wine

Casamigos

Casamigos Mezcal Joven

750 ml | 40% ABV
Mezcal

The Glenlivet

The Glenlivet Code

750 ml | 40% ABV
Whiskey | Single Malt

Ballyhoo

Ballyhoo Irish Whiskey

750 ml | 43% ABV
Whiskey | Irish
.length) {
Home

testttttttttt

Sazerac

Sazerac Rye Whiskey (3 Pack) Bundle #034

750 ml | 45% ABV
Whiskey

Cockspur

Cockspur Fine Rum

750 ml | 40% ABV
Rum

Straw Boys

Straw Boys Irish Vodka

750 ml | 40% ABV
Vodka

Straw Boys

Straw Boys Irish Poitin

750 ml | 45% ABV
Whiskey | Moonshine

Conncullin

Conncullin Irish Gin

750 ml | 40% ABV
Gin

Rodenbach

Rodenbach Caractere Rouge

750 ml | 7% ABV
Wine

Buffalo Trace

Buffalo Trace Distillery (3 Pack) Bundle #038

750 ml | 45% ABV
Whiskey

Ole Smoky

Ole Smoky Chocolate Cherries Moonshine

750 ml | 50% ABV
Whiskey | Moonshine

Tyrconnell

The Tyrconnell 16 Year Single Malt Irish Whiskey

750 ml | 46% ABV
Whiskey | Irish

Tyrconnell

The Tyrconnell 15 Year Madeira Cask Finish

750 ml | 40% ABV
Whiskey | Irish

Connemara

Connemara 12 Year Old Peated Single Malt Irish Whiskey

750 ml | 40% ABV
Whiskey | Irish

Johnnie Walker

Johnnie Walker Black Label Scotch whisky

750 ml | 40% ABV
Whiskey | Scotch

Cloudy Bay

Cloudy Bay Sauvignon Blanc Vintage 2019

750 ml | 13% ABV
Wine

Casamigos

Casamigos Mezcal Joven

750 ml | 40% ABV
Mezcal

The Glenlivet

The Glenlivet Code

750 ml | 40% ABV
Whiskey | Single Malt

Ballyhoo

Ballyhoo Irish Whiskey

750 ml | 43% ABV
Whiskey | Irish
= .find('.js-order-summary-content').first(); } var = $(this).find('.js-order-summary-icon');
Home

testttttttttt

Sazerac

Sazerac Rye Whiskey (3 Pack) Bundle #034

750 ml | 45% ABV
Whiskey

Cockspur

Cockspur Fine Rum

750 ml | 40% ABV
Rum

Straw Boys

Straw Boys Irish Vodka

750 ml | 40% ABV
Vodka

Straw Boys

Straw Boys Irish Poitin

750 ml | 45% ABV
Whiskey | Moonshine

Conncullin

Conncullin Irish Gin

750 ml | 40% ABV
Gin

Rodenbach

Rodenbach Caractere Rouge

750 ml | 7% ABV
Wine

Buffalo Trace

Buffalo Trace Distillery (3 Pack) Bundle #038

750 ml | 45% ABV
Whiskey

Ole Smoky

Ole Smoky Chocolate Cherries Moonshine

750 ml | 50% ABV
Whiskey | Moonshine

Tyrconnell

The Tyrconnell 16 Year Single Malt Irish Whiskey

750 ml | 46% ABV
Whiskey | Irish

Tyrconnell

The Tyrconnell 15 Year Madeira Cask Finish

750 ml | 40% ABV
Whiskey | Irish

Connemara

Connemara 12 Year Old Peated Single Malt Irish Whiskey

750 ml | 40% ABV
Whiskey | Irish

Johnnie Walker

Johnnie Walker Black Label Scotch whisky

750 ml | 40% ABV
Whiskey | Scotch

Cloudy Bay

Cloudy Bay Sauvignon Blanc Vintage 2019

750 ml | 13% ABV
Wine

Casamigos

Casamigos Mezcal Joven

750 ml | 40% ABV
Mezcal

The Glenlivet

The Glenlivet Code

750 ml | 40% ABV
Whiskey | Single Malt

Ballyhoo

Ballyhoo Irish Whiskey

750 ml | 43% ABV
Whiskey | Irish
.stop(true, true).slideToggle(200); .toggleClass('fa-chevron-down fa-chevron-up'); }); function initCartShipmentTooltips() { try { var = $('.summary-label .etaxes[data-toggle="tooltip"], .summary-label .etaxes[data-bs-toggle="tooltip"]'); if (!.length || typeof $.fn.tooltip !== 'function') { return; } .each(function () { var = $(this); try { .tooltip('dispose'); } catch (err) { try { .tooltip('destroy'); } catch (err2) {} } .tooltip({ container: 'body' }); }); } catch (err) {} } initCartShipmentTooltips(); $(document).on('pjax:complete', function() { updateMinusButtons(); initCartShipmentTooltips(); }); $(document).on('click', '.plus-pop-up' ,function() { console.log("...plus-pop-up"); $('.cart-sidebar-popup').addClass('disabled'); var input = $(this).parent().find('input'); input.next('.input-spinner').removeClass('d-none'); input.addClass('loading'); var currentCartCount = parseInt($('.js-count-cart').first().text().replace(/[^\d]/g,''), 10) || 0; var total = parseFloat($("#js-cart-cost").text().replace('$', '').replace(',', '')) + parseFloat(input.eq(0).data('price')); $("#checkout").attr("href", "/shop/cart/information"); if("0" == 1){ if($.inArray(parseInt($(this)[0].previousElementSibling.previousElementSibling.dataset.id), ids) !== -1) alert("This will increase only product quantity not engraving..."); } let max = $(this).parent().find('input').data('max'); console.log("max", max); console.log("input.val()", input.val()); if(currentCartCount < 24){ console.log("currentCartCount iffffff"); if(max != input.val()){ console.log("IFFFFFFFF max != input.val() "); if(currentCartQty == 24){ alert("You can order a maximum of 24 bottles only.") setTimeout(function () { input.removeClass('loading'); }, 4000); } if(currentCartQty != 24){ input.val(parseInt(input.val()) + 1); currentCartQty++; } input.change(); return false; }else{ console.log("ELSEEEEEEEEEEE max != input.val() "); console.log("mainnn---You have exceeded the limited stock"); alert("You have exceeded the limited stock"); $('.cart-sidebar-popup').removeClass('disabled'); input.next('.input-spinner').addClass('d-none'); input.removeClass('loading'); return } }else{ console.log("currentCartCount elseeee"); alert("You can order a maximum of 24 bottles only."); $('.cart-sidebar-popup').removeClass('disabled'); input.next('.input-spinner').addClass('d-none'); input.removeClass('loading'); return } }); $(document).on('click', '.minus-pop-up' ,function() { $('.cart-sidebar-popup').addClass('disabled'); var input = $(this).parent().find('input') input.next('.input-spinner').removeClass('d-none'); input.addClass('loading'); setTimeout(function () { input.removeClass('loading'); }, 4000); var total = parseFloat($("#js-cart-cost").text().replace('$', '').replace(',', '')) - parseFloat(input.eq(0).data('price')); $("#checkout").attr("href", "/shop/cart/information"); var count = parseInt(input.val()) - 1; count = count < 1 ? 1 : count; currentCartQty --; input.val(count); input.change(); return false; }); $(document).on('change','.js-cart-item-update',function() { let valObj = $(this); let val = $(this).val() let id = $(this).data('id') let price = $(this).data('price') let max = $(this).data('max') let item_price = Number(val) * Number(price) if(val <= max){ $(this).parent().next().children().text('$'+item_price.toFixed(2)) } $('.minus-pop-up, .plus-pop-up').addClass('disabled'); $.post({ url:'/shop/cart/cart-update', data:{id:id,val:val}, success:function(res) { $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) $('.js-cart-cost').text(res.cost) if(res.success == false){ $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) $('.js-cart-cost').text(res.cost) $(valObj).parent().next().children().text('$'+(valObj.data('max')* Number(price)).toFixed(2)); alert(res.msg); valObj.val(valObj.data('max')) } $.pjax.reload({container: "#cart-pop-up", timeout: false}) .done(function() { if ($('#js-container-cart').length > 0) { $.pjax.reload({container: "#js-container-cart", timeout: false}) .done(function() { $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); }) .fail(function() { $.pjax.reload({container: "#js-cart", timeout: false}) }); }else{ $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(); }, 500); } }) .fail(function() { if ($('#js-container-cart').length > 0) { $.pjax.reload({container: "#js-container-cart", timeout: false}) .done(function() { $.pjax.reload({container: "#js-cart", timeout: false}) }) .fail(function() { $.pjax.reload({container: "#js-cart", timeout: false}) }); }else{ $.pjax.reload({container: "#js-cart", timeout: false}) } }); function finalizeUI() { valObj.next('.input-spinner').addClass('d-none'); valObj.removeClass('loading'); $('.minus-pop-up, .plus-pop-up').removeClass('disabled'); $('.cart-sidebar-popup').removeClass('disabled'); $('.checkout-sidebar').removeClass('disabled'); } } }) }) function triggerDrawerCouponCheck(activeCoupon) { var couponToCheck = activeCoupon || $('.js-drawer-promo-input').val() || $('#drawer-promo-code').val() || $('.js-coupon-name').val() || $('#js-coupon-name').data('coupon'); if (couponToCheck && couponToCheck.trim() !== '') { if ($('.js-drawer-apply-promo').length > 0) { $('.js-drawer-promo-input').val(couponToCheck.trim()); $('.js-drawer-apply-promo').trigger('click'); } else if ($('.js-coupon-apply').length > 0) { $('.js-coupon-name').val(couponToCheck.trim()); $('.js-coupon-apply').trigger('click'); } } } $(document).on('click','.js-cart-pop-up-item-delete',function() { $('.cart-sidebar-popup').addClass('disabled loading'); ids = []; var id; let coupon2 = $('.js-coupon-name').val() || $('.js-drawer-promo-input').val() || $('#drawer-promo-code').val(); if($(this)[0].parentNode.parentElement.nextElementSibling.classList.contains('combo-remove')){ ids.push($(this).data('id')) do{ ids.push($(this)[0].parentNode.parentElement.nextElementSibling.dataset.id) $(this)[0].parentNode.parentElement.nextElementSibling.remove() }while($(this)[0].parentNode.parentElement.nextElementSibling.classList.contains('combo-remove')) }else{ id = $(this).data('id') } $('.pr_pop_up_envaring_'+id).each((index,element) => { $(element).click(); }); $.post({ url:'/shop/cart/cart-item-delete', data:{id:id,ids:ids}, success:function(res) { let coupon = $('.js-drawer-promo-input').val() || $('#drawer-promo-code').val() || $('.js-coupon-name').val(); var get_tr_element = $('.tr-'+id).next(); if($(get_tr_element).hasClass('tr-engraving')){ $(get_tr_element).find('.js-cart-pop-up-engraving-delete').click(); } $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) $.pjax.reload({container: "#cart-pop-up", timeout: false}) .done(function() { $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) if(res.count == 0){ $('.cart-sidebar-popup').removeClass('disabled'); alert("Sorry your cart is empty...") if(!("")){ //brand-owner theme code window.location.href = "/"; //brand-owner theme code start }else{ window.location.href = '/site/brand-owner'; } //brand-owner theme code end } setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); $('.cart-sidebar-popup').removeClass('disabled'); $('.minus-pop-up, .plus-pop-up').removeClass('disabled'); }) .fail(function() { $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) $('.minus-pop-up, .plus-pop-up').removeClass('disabled'); if(res.count == 0){ alert("Sorry your cart is empty...") if(!("")){ //brand-owner theme code window.location.href = "/"; //brand-owner theme code start }else{ window.location.href = '/site/brand-owner'; } //brand-owner theme code end } setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); }) .done(function() { $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) if ($('#js-container-cart').length > 0) { $.pjax.reload({container: "#js-container-cart", timeout: false}) .done(function() { $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); }) .fail(function() { $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); }); }else{ $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); } $('.minus-pop-up, .plus-pop-up').removeClass('disabled'); }) .fail(function() { $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) if ($('#js-container-cart').length > 0) { $.pjax.reload({container: "#js-container-cart", timeout: false}) .done(function() { $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); }) .fail(function() { $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); }); }else{ $.pjax.reload({container: "#js-cart", timeout: false}) setTimeout(function(){ triggerDrawerCouponCheck(coupon || coupon2); $("#payment-btn").removeClass('disabled'); $("#submit-btn").removeClass('disabled'); }, 500); } $('.minus-pop-up, .plus-pop-up').removeClass('disabled'); }); } }) }) function shippingButtons(){ // if(parseFloat($("#cart_pop_up_total").text().replace('$', '').replace(',', '')) < 35.99){ //club code // $("#shipping").prop('disabled',true); // $("#submit-btn").prop('disabled',true); // $("#payment-btn").prop('disabled',true); // $("#shiping-btn").append('
'); // $("#shiping-btn-1").append('
'); // }else if(parseFloat($("#cart_pop_up_total").text().replace('$', '').replace(',', '')) >= 35.99) { $("#shipping").prop('disabled',false); $("#submit-btn").prop('disabled',false); $("#payment-btn").prop('disabled',false); $('.disable-shipping').remove(); // } // $(document).on('click', '#disable-shipping,#disable-shipping-1', function() { // if(parseFloat($(".js-cost-cart").text().replace('$', '').replace(',', '')) < 35.99 && "0" != 1){ //club code){ // alert("You have not reached the $35.99 minimum cart value."); // } // }); } $(document).on('click','.js-cart-pop-up-engraving-delete',function() { let id = $(this).data('id') $.post({ url:'/shop/cart/delete-engraving', data:{id:id}, success:function(res) { $('.js-count-cart').text(res.count); $('.js-cost-cart').text(res.cost) $.pjax.reload({container: "#cart-pop-up", timeout: false}) .done(function() { if ($('#js-container-cart').length > 0) { $.pjax.reload({container: "#js-container-cart", timeout: false}) .done(function() { $.pjax.reload({container: "#js-cart", timeout: false}) }) .fail(function() { $.pjax.reload({container: "#js-cart", timeout: false}) }); }else{ $.pjax.reload({container: "#js-cart", timeout: false}) } }) .fail(function() { if ($('#js-container-cart').length > 0) { $.pjax.reload({container: "#js-container-cart", timeout: false}) .done(function() { $.pjax.reload({container: "#js-cart", timeout: false}) }) .fail(function() { $.pjax.reload({container: "#js-cart", timeout: false}) }); }else{ $.pjax.reload({container: "#js-cart", timeout: false}) } }); } }) }) // Order Summary expand/collapse is bound earlier (click.orderSummaryToggle) function reloadAllCartPjaxContainers(callback) { $.pjax.reload({container: "#cart-pop-up", timeout: false}).done(function() { if ($('#js-container-cart').length > 0) { $.pjax.reload({container: "#js-container-cart", timeout: false}).done(function() { if ($('#js-cart').length > 0) { $.pjax.reload({container: "#js-cart", timeout: false}).done(function() { if (typeof callback === 'function') callback(); }).fail(function() { if (typeof callback === 'function') callback(); }); } else { if (typeof callback === 'function') callback(); } }).fail(function() { if (typeof callback === 'function') callback(); }); } else if ($('#js-cart').length > 0) { $.pjax.reload({container: "#js-cart", timeout: false}).done(function() { if (typeof callback === 'function') callback(); }).fail(function() { if (typeof callback === 'function') callback(); }); } else { if (typeof callback === 'function') callback(); } }).fail(function() { if (typeof callback === 'function') callback(); }); } $(document).on('click', '.js-drawer-apply-promo', function(e) { e.preventDefault(); var coupon = $('.js-drawer-promo-input').val().trim().toUpperCase(); var msgBox = $('.js-drawer-promo-msg'); msgBox.html('Applying...'); $.post('/shop/coupon/apply-coupon', { coupon: coupon }, function(res) { if (res.status === 'Error') { reloadAllCartPjaxContainers(function() { if (coupon !== '') { $('.js-drawer-promo-input').val(coupon); $('.js-drawer-promo-msg').html('' + (res.message || 'Coupon is invalid or empty') + ''); } else { $('.js-drawer-promo-input').val(''); $('.js-drawer-promo-msg').html(''); } }); } else if (res.status === 'pendingVerification') { $("#cardnumber").val(coupon); if (res.remaining_discount) { $("#remaining_discount").html('$ ' + (res.remaining_discount.toFixed(2))); } $('#giftcardVerification').modal('show'); $('.js-drawer-promo-msg').html(''); } else { reloadAllCartPjaxContainers(function() { $('.js-drawer-promo-input').val(coupon); $('.js-drawer-promo-msg').html('Promo code applied!'); }); } }, 'json').fail(function() { $('.js-drawer-promo-msg').html('Error applying promo code'); }); }); $(document).on('click','#cart-pop-up-checkout',function() { if($("#pop-up-cart-count").text() == 0){ alert("Sorry your cart is empty..."); return false; } setTimeout(function(){ if($("#cart_pop_up_total").text().replace('$', '').replace(',', '') < 35.99 && $("#pop-up-cart-count").text() != 0 && "0" != 1){ //club code alert("You have not reached the $35.99 minimum cart value."); } if($("#cart_pop_up_total").text().replace('$', '').replace(',', '') >= 35.99 && $("#pop-up-cart-count").text() != 0){ window.location.href = "/shop/cart/information"; } },700) let flag = "0"; if(flag == 1){ alert("Bundle discount will be added at checkout..") } }) $(document).on('click','.edit-gift',function() { window.location.href = $(this).attr('href'); }) // chat bot js const chat = document.getElementById("chatbot-chat"); $(".chatbot-open-container2").click(function(){ $("#chatbot-open-container").trigger("click"); }); $("#chatbot-open-container").click(function(){ $("#open-chat-button").toggle(200); $("#close-chat-button").toggle(200); $("#chatbot-container").fadeToggle(200); $.ajax({ url: '/bot/clear', }) }); document.getElementById("chatbot-new-message-send-button").addEventListener("click", newInput); document.getElementById("chatbot-input").addEventListener('keypress', function (e) { if (e.key === 'Enter') { newInput(); } }); $(".pre-question").on("click", function() { $(".chat-bot-box").removeClass('d-none') $(".option-chat-box").addClass('d-none') newText = $(this).text(); if (newText != ""){ document.getElementById("chatbot-input").value = ""; addMessage("sent", newText); generateResponse(newText); $("#chatbot-input").removeAttr("disabled"); } }); $(".back-question").on("click", function() { $(".chat-bot-box").addClass('d-none') $(".option-chat-box").removeClass('d-none') }) $(".back-chat").on("click", function() { $(".chat-bot-box").removeClass('d-none') $(".option-chat-box").addClass('d-none') }) function newInput(){ newText = document.getElementById("chatbot-input").value; if(document.getElementById("chatbot-zip-input")){ newEmail = document.getElementById("chatbot-zip-input").value; } if(typeof(newEmail) !== "undefined"){ if (newText != "" && newEmail != ""){ $("#chatbot-input").css('border','') $("#chatbot-zip-input").css('border','') document.getElementById("chatbot-input").value = ""; if(document.getElementById("chatbot-zip-input")){ generateResponse(newText,newEmail); addMessage("sent", 'Order Id:- '+newText +'
Zip Code:- '+newEmail); }else{ generateResponse(newText); addMessage("sent", newText); } }else{ if(newText == "" && newEmail == ""){ $("#chatbot-input").css('border','2px solid red') $("#chatbot-zip-input").css('border','2px solid red') }else if(newText == ""){ $("#chatbot-input").css('border','2px solid red') if(newEmail != ""){ $("#chatbot-zip-input").css('border','') } }else if(newEmail == ""){ if(newText != ""){ $("#chatbot-input").css('border','') } $("#chatbot-zip-input").css('border','2px solid red') }else{ $("#chatbot-input").css('border','') $("#chatbot-zip-input").css('border','') } } }else{ generateResponse(newText); addMessage("sent", newText); document.getElementById("chatbot-input").value = ""; } } function addMessage(type, text){ let messageDiv = document.createElement("div"); let responseText = document.createElement("p"); // responseText.appendChild(document.createTextNode(text)); responseText.innerHTML = text; if (type == "sent"){ messageDiv.classList.add("chatbot-messages", "chatbot-sent-messages"); } else if (type == "received"){ messageDiv.classList.add("chatbot-messages", "chatbot-received-messages"); } messageDiv.appendChild(responseText); chat.prepend(messageDiv); } function generateResponse(prompt,zipPrompt = null){ $.ajax({ url: '/bot/chat', data: {message:prompt, zip:zipPrompt}, method: 'POST', success:function(res) { $('#chatbot-chat').animate({ scrollTop: 0 }, '300'); if(prompt.trim() === "What is my order status?"){ $('#chatbot-input').attr('type', 'number'); $('#chatbot-input').attr('placeholder', 'Enter the order number...'); $('#chatbot-input-container').append('') }else{ if(document.getElementById("chatbot-zip-input")){ document.getElementById("chatbot-zip-input").value = ""; if(!res.orderfield || res.orderfield != "order_status"){ // $('#chatbot-container').css('height', ''); $('#chatbot-input').attr('type', 'text'); $('#chatbot-input').attr('placeholder', 'Type a command here...'); $('#chatbot-zip-input').remove() } } } addMessage("received", res.message); } }) } $(document).click(function(event) { var chatContainer = $('#chatbot-container'); var openButton = $('#chatbot-open-container'); var openButton2 = $('.chatbot-open-container2'); if (!chatContainer.is(event.target) && chatContainer.has(event.target).length === 0 && !openButton.is(event.target) && openButton.has(event.target).length === 0 && !openButton2.is(event.target) && openButton2.has(event.target).length === 0 && chatContainer.is(':visible')) { $("#open-chat-button").toggle(200); $("#close-chat-button").toggle(200); $("#chatbot-container").fadeToggle(200); } }); $(document).ready(function() { $('#mySelectedBrand').on('select2:open select2:select select2:close', function() { $('#select2-mySelectedBrand-container').attr('aria-label', 'Shop by Brand'); }); $('#select2-mySelectedBrand-container').attr('aria-label', 'Shop by Brand'); if (window.RBWishlist) { if (RB_IS_LOGGED_IN) { window.RBWishlist.syncFromServer(); } else { var wishlist = (typeof Cookies !== 'undefined') ? Cookies.get('wishList') : null; if (wishlist && wishlist.trim() !== '' && wishlist !== 'null' && wishlist !== '[]') { $('.active-wishList').addClass('active'); $('.whishlist-popup').removeClass('d-none'); } } } }); });