Acacia Wood and Glass Bath Accessories, Toothbrush Holder (2024)

Acacia Wood and Glass Bath Accessories, Toothbrush Holder (1)

hover/touch above image to zoom Acacia Wood and Glass Bath Accessories, Toothbrush Holder (2)

Acacia Wood and Glass Bath Accessories, Toothbrush Holder

$22

"); notev6808025956424.addClass("error-class"); notev6808025956424.css({ padding: "2px 0px 0px 0px" }); $(".6808025956424notify-me-button").hide(); $("#6808025956424atcbutton").hide(); $("#6808025956424disabled-button").hide(); $("#6808025956424disabled-btn-message").hide(); $("#6808025956424discontinued-button").show(); return; } function productclosureFnVar(s){ var storedVariable = s; // <-- storing the variable here return function(index, element){ // This function gets called by the jQuery // .each() function and can still access storedVariable var m = $(element).attr("variants").search(storedVariable); if (m > -1) { $(element).parent().click() } } } function selectCallbackSubfunction6808025956424(variant, selector){ var pricev6808025956424 = $('.feature-descrip .price'); var totalv6808025956424 = $('#6808025956424total'); var namev6808025956424 = $(".6808025956424prod_name"); var cpricev6808025956424 = $('.feature-descrip .strikeprice'); //remove the Max Quantity message $('#6808025956424quantity-error').hide(); //updated code below for variant image selection in the cloudzoom (rather than the thumbnail). //only if the product has the nova tag. if it doesnt, better to leave cloudzoom alone. if (selector){ //check if all the variant image positions are the same (do they share the same image) var varImgPositions = []; var varShareImg = false; for (i=0; i

val === arr[0] ); if (variant && variant.featured_image && varShareImg == false){ var cursku = variant.sku; /* get the current sku find the cloudzoom gallery image with the variants attribute including the sku click it */ var galleryimg = $(".cloudzoom-gallery").find("img").each(productclosureFnVar(cursku)); } else { //default } } //change the add to cart image if (variant){ if (variant.featured_image != null) { var currentImage = $("#6808025956424popimg1"); var newImagesrc = variant.featured_image.src; currentImage.attr('src',newImagesrc); } } //lets check if in stock. var nosellall6808025956424 = false; var availableqty = 0; if (variant && variant.inventory_management != null) { availableqty = variant.inventory_quantity; if (availableqty > 0) {nosellall6808025956424 = false;} else {nosellall6808025956424 = true;} } else if (variant) { availableqty = 10; if (availableqty > 0) {nosellall6808025956424 = false;} else {nosellall6808025956424 = true;} } $('#6808025956424qtyselect').attr('invqty',availableqty); //next lets actually do the quantity check. lets see if we selected too many if (variant) { var selectedtoomany6808025956424 = (parseInt($('#6808025956424qtyselect').val()) > availableqty); } $("#6808025956424qtyselect").parent().css("color", ""); // at this point we have the following: // selectedtoomany6808025956424 = is the selected more than we have // availableqty = how many we have // nosellall6808025956424 = do we have more than 0 or not (true means dont sell) //pull the hidden note var oosnote = ""; var setdesciption = ""; var descriptionnote = ""; var setdesciption = ""; if ($(".Combonote")[0]){ descriptionnote = $(".Combonote").html(); } if (setdesciption.length != 0 && descriptionnote.length != 0) { oosnote = setdesciption+" "+descriptionnote; } else { oosnote = setdesciption+descriptionnote; } if ( nosellall6808025956424 ) { // variant sold out OOS6808025956424(variant,selector,"

This item is currently out of stock. Click the NOTIFY ME button to be emailed when it is in!

"); } else if (variant && variant.available == true) { //selected a valid variant //ALL is good and for sale InStock6808025956424(variant,selector,""); } else { // havent chosen a valid selection yet. (or it doesnt exist, but we should have taken care of those already) if($("#6808025956424prodlow").attr("value") == $("#6808025956424prodhigh").attr("value")) { pricev6808025956424.html(Shopify.formatMoney($("#6808025956424prodlow").attr("value"), "${{amount_no_decimals}}")+" each"); // update price field $("#6808025956424total").html(Shopify.formatMoney($("#6808025956424qtyselect").val()*$("#6808025956424prodlow").attr("value"), "${{amount_no_decimals}}")+" total"); } else { pricev6808025956424.html(Shopify.formatMoney($("#6808025956424prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808025956424prodhigh").attr("value"), "${{amount_no_decimals}}")+ " each"); // update price field $("#6808025956424total").html(Shopify.formatMoney($("#6808025956424qtyselect").val()*$("#6808025956424prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808025956424qtyselect").val()*$("#6808025956424prodhigh").attr("value"), "${{amount_no_decimals}}")+" total"); } namev6808025956424.html(namev6808025956424.attr("name")); namev6808025956424.css({ color: "" }); namev6808025956424.removeClass("error-class"); namev6808025956424.css({ padding: "0px 0px 0px 0px" }); $(".6808025956424notify-me-button").hide(); $("#6808025956424atcbutton").hide(); $("#6808025956424disabled-button").show(); $("#6808025956424discontinued-button").hide(); } //next lets change the selected quantity if we selected too many. if (variant && selectedtoomany6808025956424 && nosellall6808025956424 == false) { toomanytrigger(); $("#6808025956424qtyselect").parent().css("color", "#FF0000"); $("#6808025956424qtyselect").val(availableqty); $("#6808025956424quantity-error").show(); } }// end selectcallback sub function var selectCallback6808025956424 = function(variant, selector) { selectCallbackSubfunction6808025956424(variant, selector); } //selectcallback //BEGINNING OF JS FOR OPTIONS var currentproduct6808025956424 = {"id":6808025956424,"title":"Acacia Wood and Glass Bath Accessories, Toothbrush Holder","handle":"acacia-wood-and-glass-bath-accessories-toothbrush-holder","description":"\u003cdiv id=\"overview\"\u003e\n\u003cp\u003eBeautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eMade from acacia wood and glass\u003c\/li\u003e\n\u003cli\u003eColor: Brown.\u003c\/li\u003e\n\u003cli\u003eImported.\u003c\/li\u003e\n\u003cli\u003eSoap\/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv id=\"dimensionsandcare\" class=\"hide\"\u003e\n\u003cdiv class=\"sub\"\u003eDimensions:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eSoap\/Lotion Pump: 3\" X 3\" X 7.25\"\u003c\/li\u003e\n\u003cli\u003eToothbrush Holder: 3\" X 3\" X 5\"\u003c\/li\u003e\n\u003cli\u003eSoap Dish:5.5\" X 4\" X 1\"\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\n\u003cdiv class=\"sub\"\u003eCare:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eWipe with soft, damp cloth. Avoid bleach and household cleaners.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"subvideo\" style=\"display: none;\"\u003e\u003c\/div\u003e","published_at":"2024-02-14T11:46:59-08:00","created_at":"2024-02-08T13:14:13-08:00","vendor":"CC Bath Collection","type":"Bath Accessory","tags":["bath-accessory","primary","size-one-size","ws"],"price":2200,"price_min":2200,"price_max":2200,"available":true,"price_varies":false,"compare_at_price":2200,"compare_at_price_min":2200,"compare_at_price_max":2200,"compare_at_price_varies":false,"variants":[{"id":40093941137480,"title":"ONE SIZE","option1":"ONE SIZE","option2":null,"option3":null,"sku":"T0BV0047","requires_shipping":true,"taxable":true,"featured_image":{"id":30222205190216,"product_id":6808025956424,"position":1,"created_at":"2024-02-14T11:41:22-08:00","updated_at":"2024-02-14T11:41:37-08:00","alt":null,"width":1024,"height":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_767b6558-1a0b-42a8-a6a8-2a686ad98c42.jpg?v=1707939697","variant_ids":[40093941137480]},"available":true,"name":"Acacia Wood and Glass Bath Accessories, Toothbrush Holder - ONE SIZE","public_title":"ONE SIZE","options":["ONE SIZE"],"price":2200,"weight":454,"compare_at_price":2200,"inventory_quantity":6,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22589610754120,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_767b6558-1a0b-42a8-a6a8-2a686ad98c42.jpg?v=1707939697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_767b6558-1a0b-42a8-a6a8-2a686ad98c42.jpg?v=1707939697","\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_cc595a47-c643-42d2-877c-be48f9011b67.jpg?v=1707939697"],"featured_image":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_767b6558-1a0b-42a8-a6a8-2a686ad98c42.jpg?v=1707939697","options":["Size"],"media":[{"alt":null,"id":22589610754120,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_767b6558-1a0b-42a8-a6a8-2a686ad98c42.jpg?v=1707939697"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_767b6558-1a0b-42a8-a6a8-2a686ad98c42.jpg?v=1707939697","width":1024},{"alt":null,"id":22589610721352,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_cc595a47-c643-42d2-877c-be48f9011b67.jpg?v=1707939697"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_cc595a47-c643-42d2-877c-be48f9011b67.jpg?v=1707939697","width":1024}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cdiv id=\"overview\"\u003e\n\u003cp\u003eBeautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eMade from acacia wood and glass\u003c\/li\u003e\n\u003cli\u003eColor: Brown.\u003c\/li\u003e\n\u003cli\u003eImported.\u003c\/li\u003e\n\u003cli\u003eSoap\/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv id=\"dimensionsandcare\" class=\"hide\"\u003e\n\u003cdiv class=\"sub\"\u003eDimensions:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eSoap\/Lotion Pump: 3\" X 3\" X 7.25\"\u003c\/li\u003e\n\u003cli\u003eToothbrush Holder: 3\" X 3\" X 5\"\u003c\/li\u003e\n\u003cli\u003eSoap Dish:5.5\" X 4\" X 1\"\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\n\u003cdiv class=\"sub\"\u003eCare:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eWipe with soft, damp cloth. Avoid bleach and household cleaners.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"subvideo\" style=\"display: none;\"\u003e\u003c\/div\u003e"}; $(function() { new Shopify.OptionSelectors("6808025956424select", { product: currentproduct6808025956424, onVariantSelected: selectCallback6808025956424 }); // if the option has multiple variants present, remove the initial selection. If not (only 1 option), keep the initial selection var swatchtemp = $('.swatch[data-prod-id="6808025956424"][data-option-index="0"] .swatch-element'); if(swatchtemp.length > 1){ swatchtemp.removeClass('soldout').show().find(':radio').removeAttr('disabled','disabled').removeAttr('checked'); $('#6808025956424select-option-0') .filter(function() { return $(this).find('option').length > 1 }) .prepend('') .val('') .trigger('change'); } else { //keep the initial selection, hide the swatch // oh yeah, add the selected item to the above text box swatchtemp.attr('data-value'); swatchtemp.siblings('.header').children('.swatch-selected').html(swatchtemp.attr('data-value')); swatchtemp.hide(); } }); $(document).ready(function(){ //When qty is changed, first change total price, then check if oversold $("#6808025956424qtyselect").change(function(event){ $(this).parent().css("color", ""); var attr = $(this).attr('invqty'); if (typeof attr == typeof undefined || attr == false) {} else if (parseInt(attr) == 0 ) { toomanytrigger(); } else if (parseInt($(this).val()) > parseInt(attr) ) { toomanytrigger(); $(this).parent().css("color", "#FF0000"); $(this).val(attr); $(".6808025956424notify-me-button").hide(); $("#6808025956424atcbutton").show(); } else { $(this).parent().css("color", ""); } if($('#6808025956424select-option-0 option:selected').hasClass("prompt") || $('#6808025956424select-option-1 option:selected').hasClass("prompt")) { $("#6808025956424total").html(Shopify.formatMoney($("#6808025956424qtyselect").val()*$("#6808025956424prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808025956424qtyselect").val()*$("#6808025956424prodhigh").attr("value"), "${{amount_no_decimals}}")+" total"); } else { $("#6808025956424total").html(Shopify.formatMoney($("#6808025956424qtyselect").val()*$("#6808025956424select option:selected").attr("title"), "${{amount_no_decimals}}")+" total"); } }); // end qty change $("#6808025956424disabled-button").bind('click', function(event){ event.preventDefault(); $("#6808025956424disabled-btn-message").attr("class", "dis-btn-message-top"); }); $("#6808025956424discontinued-button").bind('click', function(event){ event.preventDefault(); $("#6808025956424discontinued-btn-message").attr("class", "dis-btn-message"); }); //code to change monogram message when checked. A bit redundant (added for each product.. but temp for now put it here). $('.mono-prod-selector:checkbox').change(function() { // use the :checked selector to find any that are checked if ($(':checkbox:checked').length > 0) { $(this).siblings('.checkbox-text').html("Added: To personalize, click Add to Cart. $10 per monogram.") } else { $(this).siblings('.checkbox-text').html("Add a monogram") } }); $('.6808025956424notify-me-button').bind('click', function(event) { event.preventDefault(); //init of the APP is automatic on the button ID. //set the varaint. // need to remove BIS-top var temptitle = $(this).attr('data-form-title'); var variantId = $(this).attr('data-form-variantid'); BIS.popup.form.selectVariant(variantId); }); }); // docucment ready
  • +
  • +

"); namev6808026251336.addClass("error-class"); namev6808026251336.css({ padding: "2px 0px 0px 0px" }); $(".6808026251336notify-me-button").removeClass("hide").hide(); $("#6808026251336atcbutton").addClass('hide').hide(); $("#6808026251336disabled-button").removeClass("hide").hide(); $("#6808026251336disabled-btn-message").removeClass("hide").hide(); $("#6808026251336discontinued-button").addClass("btn").show(); return; } function selectCallbackSubfunction6808026251336(variant, selector){ var pricev6808026251336 = $('.6808026251336price'); var totalv6808026251336 = $('#6808026251336total'); var namev6808026251336 = $(".6808026251336prod_name"); var cpricev6808026251336 = $('.6808026251336cprice'); //remove the Max Quantity message $('#6808026251336quantity-error').hide(); //Code to use variant images //also code for "default" second option image".. hopefully this wont become a problem if (variant && variant.featured_image){ var currentImage = $("#6808026251336img0"); var newImage = variant.featured_image; var element = currentImage[0]; Shopify.Image.switchImage(newImage, element, function(newImageSizedSrc, newImage, element) { //$(element).parents('a').attr('href',newImageSizedSrc); $(element).attr('src', newImageSizedSrc); }); //change the view larger button var viewLargerImage = $("#6808026251336viewlarger").find('img'); var element2 = viewLargerImage[0]; Shopify.Image.switchImage(newImage, element2, function(newImageSizedSrc, newImage, element2) { //$(element2).parent().siblings('a').attr('href',newImageSizedSrc); $(element2).attr('src', newImageSizedSrc); }); //change the add to cart image var popupCurrentImage = $("#6808026251336popimg1"); var element3 = popupCurrentImage[0]; Shopify.Image.switchImage(newImage, element3, function(newImageSizedSrc, newImage, element3) { //$(element3).parents('a').attr('href',newImageSizedSrc); $(element3).attr('src', newImageSizedSrc); }); } else { var currentImage = $("#6808026251336img0"); var originalImagesrc = currentImage.attr('busrc'); var originalImageLgsrc = currentImage.attr('busrclg'); $(currentImage).attr('src',originalImagesrc); $("#6808026251336viewlarger").find('img').attr('src',originalImageLgsrc); } //lets check if in stock. var nosellall6808026251336 = false; var availableqty = 0; if (variant && variant.inventory_management != null) { availableqty = variant.inventory_quantity; if (availableqty > 0) {nosellall6808026251336 = false;} else {nosellall6808026251336 = true;} } else if (variant) { availableqty = 10; if (availableqty > 0) {nosellall6808026251336 = false;} else {nosellall6808026251336 = true;} } $('#6808026251336qtyselect').attr('invqty',availableqty); //next lets actually do the quantity check. lets see if we selected too many if (variant) {var selectedtoomany6808026251336 = (parseInt($('#6808026251336qtyselect').val()) > availableqty);} $("#6808026251336qtyselect").parent().css("color", ""); //pull the hidden note var oosnote = ""; var setdesciption = ""; var descriptionnote = ""; var setdesciption = ""; var tempdescription = "

Beautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.

  • Made from acacia wood and glass
  • Color: Brown.
  • Imported.
  • Soap/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.

    Dimensions:

    • Soap/Lotion Pump: 3 X 3 X 7.25
    • Toothbrush Holder: 3 X 3 X 5
    • Soap Dish:5.5 X 4 X 1

    Care:

    • Wipe with soft, damp cloth. Avoid bleach and household cleaners.

    "; if (tempdescription.indexOf('Combonote') > 0){ var subdescription = tempdescription.substring(tempdescription.indexOf('Combonote'),tempdescription.length); var descriptionnote = subdescription.substring(subdescription.indexOf(">")+1,subdescription.indexOf("<")); } if (setdesciption.length != 0 && descriptionnote.length != 0) { oosnote = setdesciption+" "+descriptionnote; } else { oosnote = setdesciption+descriptionnote; } // at this point we have the following: // selectedtoomany6808026251336 = is the selected more than we have // availableqty = how many we have // nosellall6808026251336 = do we have more than 0 or not (true means dont sell) //if we are out of stock: if ( nosellall6808026251336 ) { // variant sold out OOS6808026251336(variant,selector,"

    This item is currently out of stock. Click the NOTIFY ME button to be emailed when it is in!

    "); //if we are in stock: } else if (variant && variant.available == true) { //selected a valid variant //ALL is good and for sale InStock6808026251336(variant,selector,""); // havent chosen a valid selection yet. (or it doesnt exist, but we should have taken care of those already) } else { if($("#6808026251336prodlow").attr("value") == $("#6808026251336prodhigh").attr("value")) { pricev6808026251336.html(Shopify.formatMoney($("#6808026251336prodlow").attr("value"), "${{amount_no_decimals}}")+" each"); // update price field $("#6808026251336total").html(Shopify.formatMoney($("#6808026251336qtyselect").val()*$("#6808026251336prodlow").attr("value"), "${{amount_no_decimals}}")+" total"); } else { pricev6808026251336.html(Shopify.formatMoney($("#6808026251336prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808026251336prodhigh").attr("value"), "${{amount_no_decimals}}")+ " each"); // update price field $("#6808026251336total").html(Shopify.formatMoney($("#6808026251336qtyselect").val()*$("#6808026251336prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808026251336qtyselect").val()*$("#6808026251336prodhigh").attr("value"), "${{amount_no_decimals}}")+" total"); } namev6808026251336.html(namev6808026251336.attr("name")); namev6808026251336.css({ color: "" }); namev6808026251336.removeClass("error-class"); namev6808026251336.css({ padding: "0px 0px 0px 0px" }); $(".6808026251336notify-me-button").removeClass("hide").hide(); $("#6808026251336atcbutton").addClass('hide').hide(); $("#6808026251336disabled-button").addClass("btn").show(); $("#6808026251336discontinued-button").removeClass("hide").hide(); } //next lets change the selected quantity if we selected too many. if (variant && selectedtoomany6808026251336 && nosellall6808026251336 == false) { toomanytrigger(); $("#6808026251336qtyselect").parent().css("color", "#FF0000"); $("#6808026251336qtyselect").val(availableqty); $("#6808026251336quantity-error").show(); } }// end selectcallback sub function var selectCallback6808026251336 = function(variant, selector) { selectCallbackSubfunction6808026251336(variant, selector); } //selectcallback //BEGINNING OF JS FOR OPTIONS var currentproduct6808026251336 = {"id":6808026251336,"title":"Acacia Wood and Glass Bath Accessories, Soap\/Lotion Pump","handle":"acacia-wood-and-glass-bath-accessories-soap-lotion-pump","description":"\u003cdiv id=\"overview\"\u003e\n\u003cp\u003eBeautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eMade from acacia wood and glass\u003c\/li\u003e\n\u003cli\u003eColor: Brown.\u003c\/li\u003e\n\u003cli\u003eImported.\u003c\/li\u003e\n\u003cli\u003eSoap\/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv id=\"dimensionsandcare\" class=\"hide\"\u003e\n\u003cdiv class=\"sub\"\u003eDimensions:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eSoap\/Lotion Pump: 3\" X 3\" X 7.25\"\u003c\/li\u003e\n\u003cli\u003eToothbrush Holder: 3\" X 3\" X 5\"\u003c\/li\u003e\n\u003cli\u003eSoap Dish:5.5\" X 4\" X 1\"\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\n\u003cdiv class=\"sub\"\u003eCare:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eWipe with soft, damp cloth. Avoid bleach and household cleaners.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"subvideo\" style=\"display: none;\"\u003e\u003c\/div\u003e","published_at":"2024-02-14T11:46:56-08:00","created_at":"2024-02-08T13:18:56-08:00","vendor":"CC Bath Collection","type":"Bath Accessory","tags":["bath-accessory","primary","size-one-size","ws"],"price":2200,"price_min":2200,"price_max":2200,"available":true,"price_varies":false,"compare_at_price":2200,"compare_at_price_min":2200,"compare_at_price_max":2200,"compare_at_price_varies":false,"variants":[{"id":40093941760072,"title":"ONE SIZE","option1":"ONE SIZE","option2":null,"option3":null,"sku":"T0BV0046","requires_shipping":true,"taxable":true,"featured_image":{"id":30222205255752,"product_id":6808026251336,"position":1,"created_at":"2024-02-14T11:41:28-08:00","updated_at":"2024-02-14T11:41:35-08:00","alt":null,"width":1024,"height":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_b4141bb6-9b2d-49b5-9d4d-cb040febe12d.jpg?v=1707939695","variant_ids":[40093941760072]},"available":true,"name":"Acacia Wood and Glass Bath Accessories, Soap\/Lotion Pump - ONE SIZE","public_title":"ONE SIZE","options":["ONE SIZE"],"price":2200,"weight":454,"compare_at_price":2200,"inventory_quantity":6,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22589610852424,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_b4141bb6-9b2d-49b5-9d4d-cb040febe12d.jpg?v=1707939695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_b4141bb6-9b2d-49b5-9d4d-cb040febe12d.jpg?v=1707939695","\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_1eae06be-6a6e-4ed1-a007-fd897d4204c1.jpg?v=1707939695"],"featured_image":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_b4141bb6-9b2d-49b5-9d4d-cb040febe12d.jpg?v=1707939695","options":["Size"],"media":[{"alt":null,"id":22589610852424,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_b4141bb6-9b2d-49b5-9d4d-cb040febe12d.jpg?v=1707939695"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapLotionPump_b4141bb6-9b2d-49b5-9d4d-cb040febe12d.jpg?v=1707939695","width":1024},{"alt":null,"id":22589610819656,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_1eae06be-6a6e-4ed1-a007-fd897d4204c1.jpg?v=1707939695"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_1eae06be-6a6e-4ed1-a007-fd897d4204c1.jpg?v=1707939695","width":1024}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cdiv id=\"overview\"\u003e\n\u003cp\u003eBeautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eMade from acacia wood and glass\u003c\/li\u003e\n\u003cli\u003eColor: Brown.\u003c\/li\u003e\n\u003cli\u003eImported.\u003c\/li\u003e\n\u003cli\u003eSoap\/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv id=\"dimensionsandcare\" class=\"hide\"\u003e\n\u003cdiv class=\"sub\"\u003eDimensions:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eSoap\/Lotion Pump: 3\" X 3\" X 7.25\"\u003c\/li\u003e\n\u003cli\u003eToothbrush Holder: 3\" X 3\" X 5\"\u003c\/li\u003e\n\u003cli\u003eSoap Dish:5.5\" X 4\" X 1\"\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\n\u003cdiv class=\"sub\"\u003eCare:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eWipe with soft, damp cloth. Avoid bleach and household cleaners.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"subvideo\" style=\"display: none;\"\u003e\u003c\/div\u003e"}; $(function() { new Shopify.OptionSelectors("6808026251336select", { product: currentproduct6808026251336, onVariantSelected: selectCallback6808026251336 }); // if the option has multiple variants present, remove the initial selection. If not (only 1 option), keep the initial selection var swatchtemp = $('.swatch[data-prod-id="6808026251336"][data-option-index="0"] .swatch-element'); if(swatchtemp.length > 1){ swatchtemp.removeClass('soldout').show().find(':radio').removeAttr('disabled','disabled').removeAttr('checked'); $('#6808026251336select-option-0') .filter(function() { return $(this).find('option').length > 1 }) .prepend('

    ') .val('') .trigger('change'); } else { //keep the initial selection, hide the swatch // oh yeah, add the selected item to the above text box swatchtemp.attr('data-value'); swatchtemp.siblings('.header').children('.swatch-selected').html(swatchtemp.attr('data-value')); swatchtemp.hide(); } }); $(document).ready(function(){ //When qty is changed, first change total price, then check if oversold $("#6808026251336qtyselect").change(function(event){ $(this).parent().css("color", ""); var attr = $(this).attr('invqty'); if (typeof attr == typeof undefined || attr == false) {} else if (parseInt(attr) == 0 ) { toomanytrigger(); } else if (parseInt($(this).val()) > parseInt(attr) ) { toomanytrigger(); $(this).parent().css("color", "#FF0000"); $(this).val(attr); $(".6808026251336notify-me-button").removeClass("hide").hide(); $("#6808026251336atcbutton").removeClass('hide').show(); } else { $(this).parent().css("color", ""); } if($('#6808026251336select-option-0 option:selected').hasClass("prompt") || $('#6808026251336select-option-1 option:selected').hasClass("prompt")) { $("#6808026251336total").html(Shopify.formatMoney($("#6808026251336qtyselect").val()*$("#6808026251336prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808026251336qtyselect").val()*$("#6808026251336prodhigh").attr("value"), "${{amount_no_decimals}}")+" total"); } else { $("#6808026251336total").html(Shopify.formatMoney($("#6808026251336qtyselect").val()*$("#6808026251336select option:selected").attr("title"), "${{amount_no_decimals}}")+" total"); } }); // end qty change $("#6808026251336disabled-button").bind('click', function(event){ event.preventDefault(); $("#6808026251336disabled-btn-message").attr("class", "dis-btn-message"); }); $("#6808026251336discontinued-button").bind('click', function(event){ event.preventDefault(); $("#6808026251336discontinued-btn-message").attr("class", "dis-btn-message"); }); //code to change monogram message when checked. A bit redundant (added for each product.. but temp for now put it here). $('.mono-prod-selector:checkbox').change(function() { // use the :checked selector to find any that are checked if ($(':checkbox:checked').length > 0) { $(this).siblings('.checkbox-text').html("Added: To personalize, click Add to Cart. $10 per monogram.") } else { $(this).siblings('.checkbox-text').html("Add a monogram") } }); }); // docucment ready

    "); namev6808026349640.addClass("error-class"); namev6808026349640.css({ padding: "2px 0px 0px 0px" }); $(".6808026349640notify-me-button").removeClass("hide").hide(); $("#6808026349640atcbutton").addClass('hide').hide(); $("#6808026349640disabled-button").removeClass("hide").hide(); $("#6808026349640disabled-btn-message").removeClass("hide").hide(); $("#6808026349640discontinued-button").addClass("btn").show(); return; } function selectCallbackSubfunction6808026349640(variant, selector){ var pricev6808026349640 = $('.6808026349640price'); var totalv6808026349640 = $('#6808026349640total'); var namev6808026349640 = $(".6808026349640prod_name"); var cpricev6808026349640 = $('.6808026349640cprice'); //remove the Max Quantity message $('#6808026349640quantity-error').hide(); //Code to use variant images //also code for "default" second option image".. hopefully this wont become a problem if (variant && variant.featured_image){ var currentImage = $("#6808026349640img0"); var newImage = variant.featured_image; var element = currentImage[0]; Shopify.Image.switchImage(newImage, element, function(newImageSizedSrc, newImage, element) { //$(element).parents('a').attr('href',newImageSizedSrc); $(element).attr('src', newImageSizedSrc); }); //change the view larger button var viewLargerImage = $("#6808026349640viewlarger").find('img'); var element2 = viewLargerImage[0]; Shopify.Image.switchImage(newImage, element2, function(newImageSizedSrc, newImage, element2) { //$(element2).parent().siblings('a').attr('href',newImageSizedSrc); $(element2).attr('src', newImageSizedSrc); }); //change the add to cart image var popupCurrentImage = $("#6808026349640popimg1"); var element3 = popupCurrentImage[0]; Shopify.Image.switchImage(newImage, element3, function(newImageSizedSrc, newImage, element3) { //$(element3).parents('a').attr('href',newImageSizedSrc); $(element3).attr('src', newImageSizedSrc); }); } else { var currentImage = $("#6808026349640img0"); var originalImagesrc = currentImage.attr('busrc'); var originalImageLgsrc = currentImage.attr('busrclg'); $(currentImage).attr('src',originalImagesrc); $("#6808026349640viewlarger").find('img').attr('src',originalImageLgsrc); } //lets check if in stock. var nosellall6808026349640 = false; var availableqty = 0; if (variant && variant.inventory_management != null) { availableqty = variant.inventory_quantity; if (availableqty > 0) {nosellall6808026349640 = false;} else {nosellall6808026349640 = true;} } else if (variant) { availableqty = 10; if (availableqty > 0) {nosellall6808026349640 = false;} else {nosellall6808026349640 = true;} } $('#6808026349640qtyselect').attr('invqty',availableqty); //next lets actually do the quantity check. lets see if we selected too many if (variant) {var selectedtoomany6808026349640 = (parseInt($('#6808026349640qtyselect').val()) > availableqty);} $("#6808026349640qtyselect").parent().css("color", ""); //pull the hidden note var oosnote = ""; var setdesciption = ""; var descriptionnote = ""; var setdesciption = ""; var tempdescription = "

    Beautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.

    • Made from acacia wood and glass
    • Color: Brown.
    • Imported.
    • Soap/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.

      Dimensions:

      • Soap/Lotion Pump: 3 X 3 X 7.25
      • Toothbrush Holder: 3 X 3 X 5
      • Soap Dish:5.5 X 4 X 1

      Care:

      • Wipe with soft, damp cloth. Avoid bleach and household cleaners.

      "; if (tempdescription.indexOf('Combonote') > 0){ var subdescription = tempdescription.substring(tempdescription.indexOf('Combonote'),tempdescription.length); var descriptionnote = subdescription.substring(subdescription.indexOf(">")+1,subdescription.indexOf("<")); } if (setdesciption.length != 0 && descriptionnote.length != 0) { oosnote = setdesciption+" "+descriptionnote; } else { oosnote = setdesciption+descriptionnote; } // at this point we have the following: // selectedtoomany6808026349640 = is the selected more than we have // availableqty = how many we have // nosellall6808026349640 = do we have more than 0 or not (true means dont sell) //if we are out of stock: if ( nosellall6808026349640 ) { // variant sold out OOS6808026349640(variant,selector,"

      This item is currently out of stock. Click the NOTIFY ME button to be emailed when it is in!

      "); //if we are in stock: } else if (variant && variant.available == true) { //selected a valid variant //ALL is good and for sale InStock6808026349640(variant,selector,""); // havent chosen a valid selection yet. (or it doesnt exist, but we should have taken care of those already) } else { if($("#6808026349640prodlow").attr("value") == $("#6808026349640prodhigh").attr("value")) { pricev6808026349640.html(Shopify.formatMoney($("#6808026349640prodlow").attr("value"), "${{amount_no_decimals}}")+" each"); // update price field $("#6808026349640total").html(Shopify.formatMoney($("#6808026349640qtyselect").val()*$("#6808026349640prodlow").attr("value"), "${{amount_no_decimals}}")+" total"); } else { pricev6808026349640.html(Shopify.formatMoney($("#6808026349640prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808026349640prodhigh").attr("value"), "${{amount_no_decimals}}")+ " each"); // update price field $("#6808026349640total").html(Shopify.formatMoney($("#6808026349640qtyselect").val()*$("#6808026349640prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808026349640qtyselect").val()*$("#6808026349640prodhigh").attr("value"), "${{amount_no_decimals}}")+" total"); } namev6808026349640.html(namev6808026349640.attr("name")); namev6808026349640.css({ color: "" }); namev6808026349640.removeClass("error-class"); namev6808026349640.css({ padding: "0px 0px 0px 0px" }); $(".6808026349640notify-me-button").removeClass("hide").hide(); $("#6808026349640atcbutton").addClass('hide').hide(); $("#6808026349640disabled-button").addClass("btn").show(); $("#6808026349640discontinued-button").removeClass("hide").hide(); } //next lets change the selected quantity if we selected too many. if (variant && selectedtoomany6808026349640 && nosellall6808026349640 == false) { toomanytrigger(); $("#6808026349640qtyselect").parent().css("color", "#FF0000"); $("#6808026349640qtyselect").val(availableqty); $("#6808026349640quantity-error").show(); } }// end selectcallback sub function var selectCallback6808026349640 = function(variant, selector) { selectCallbackSubfunction6808026349640(variant, selector); } //selectcallback //BEGINNING OF JS FOR OPTIONS var currentproduct6808026349640 = {"id":6808026349640,"title":"Acacia Wood and Glass Bath Accessories, Soap Dish","handle":"acacia-wood-and-glass-bath-accessories-soap-dish","description":"\u003cdiv id=\"overview\"\u003e\n\u003cp\u003eBeautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eMade from acacia wood and glass\u003c\/li\u003e\n\u003cli\u003eColor: Brown.\u003c\/li\u003e\n\u003cli\u003eImported.\u003c\/li\u003e\n\u003cli\u003eSoap\/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv id=\"dimensionsandcare\" class=\"hide\"\u003e\n\u003cdiv class=\"sub\"\u003eDimensions:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eSoap\/Lotion Pump: 3\" X 3\" X 7.25\"\u003c\/li\u003e\n\u003cli\u003eToothbrush Holder: 3\" X 3\" X 5\"\u003c\/li\u003e\n\u003cli\u003eSoap Dish:5.5\" X 4\" X 1\"\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\n\u003cdiv class=\"sub\"\u003eCare:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eWipe with soft, damp cloth. Avoid bleach and household cleaners.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"subvideo\" style=\"display: none;\"\u003e\u003c\/div\u003e","published_at":"2024-02-14T11:46:54-08:00","created_at":"2024-02-08T13:20:11-08:00","vendor":"CC Bath Collection","type":"Bath Accessory","tags":["bath-accessory","primary","size-one-size","ws"],"price":2200,"price_min":2200,"price_max":2200,"available":true,"price_varies":false,"compare_at_price":2200,"compare_at_price_min":2200,"compare_at_price_max":2200,"compare_at_price_varies":false,"variants":[{"id":40093941956680,"title":"ONE SIZE","option1":"ONE SIZE","option2":null,"option3":null,"sku":"T0BV0046","requires_shipping":true,"taxable":true,"featured_image":{"id":30222205419592,"product_id":6808026349640,"position":1,"created_at":"2024-02-14T11:41:33-08:00","updated_at":"2024-02-14T11:41:39-08:00","alt":null,"width":1024,"height":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapDish_dc8443a9-d8e5-40c4-89b1-e35cf7b75f1d.jpg?v=1707939699","variant_ids":[40093941956680]},"available":true,"name":"Acacia Wood and Glass Bath Accessories, Soap Dish - ONE SIZE","public_title":"ONE SIZE","options":["ONE SIZE"],"price":2200,"weight":454,"compare_at_price":2200,"inventory_quantity":6,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":22589611016264,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapDish_dc8443a9-d8e5-40c4-89b1-e35cf7b75f1d.jpg?v=1707939699"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapDish_dc8443a9-d8e5-40c4-89b1-e35cf7b75f1d.jpg?v=1707939699","\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_0b0e3bf2-6670-476c-9728-8ff63b5b1591.jpg?v=1707939699"],"featured_image":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapDish_dc8443a9-d8e5-40c4-89b1-e35cf7b75f1d.jpg?v=1707939699","options":["Size"],"media":[{"alt":null,"id":22589611016264,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapDish_dc8443a9-d8e5-40c4-89b1-e35cf7b75f1d.jpg?v=1707939699"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassSoapDish_dc8443a9-d8e5-40c4-89b1-e35cf7b75f1d.jpg?v=1707939699","width":1024},{"alt":null,"id":22589610983496,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_0b0e3bf2-6670-476c-9728-8ff63b5b1591.jpg?v=1707939699"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/www.craneandcanopy.com\/cdn\/shop\/files\/AcaciaWoodandGlassBathAccessories_0b0e3bf2-6670-476c-9728-8ff63b5b1591.jpg?v=1707939699","width":1024}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cdiv id=\"overview\"\u003e\n\u003cp\u003eBeautiful style and functional use now go hand-in-hand. Complete your bath's luxurious decor with a chic set of modern glass and wood accessories. The Acacia Wood and Glass Bath Accessories features bathroom items necessary for every home.\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eMade from acacia wood and glass\u003c\/li\u003e\n\u003cli\u003eColor: Brown.\u003c\/li\u003e\n\u003cli\u003eImported.\u003c\/li\u003e\n\u003cli\u003eSoap\/Lotion Pump, Toothbrush Holder and Soap Dish sold separately.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv id=\"dimensionsandcare\" class=\"hide\"\u003e\n\u003cdiv class=\"sub\"\u003eDimensions:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eSoap\/Lotion Pump: 3\" X 3\" X 7.25\"\u003c\/li\u003e\n\u003cli\u003eToothbrush Holder: 3\" X 3\" X 5\"\u003c\/li\u003e\n\u003cli\u003eSoap Dish:5.5\" X 4\" X 1\"\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\n\u003cdiv class=\"sub\"\u003eCare:\u003c\/div\u003e\n\u003cul\u003e\n\u003cli\u003eWipe with soft, damp cloth. Avoid bleach and household cleaners.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"subvideo\" style=\"display: none;\"\u003e\u003c\/div\u003e"}; $(function() { new Shopify.OptionSelectors("6808026349640select", { product: currentproduct6808026349640, onVariantSelected: selectCallback6808026349640 }); // if the option has multiple variants present, remove the initial selection. If not (only 1 option), keep the initial selection var swatchtemp = $('.swatch[data-prod-id="6808026349640"][data-option-index="0"] .swatch-element'); if(swatchtemp.length > 1){ swatchtemp.removeClass('soldout').show().find(':radio').removeAttr('disabled','disabled').removeAttr('checked'); $('#6808026349640select-option-0') .filter(function() { return $(this).find('option').length > 1 }) .prepend('

      ') .val('') .trigger('change'); } else { //keep the initial selection, hide the swatch // oh yeah, add the selected item to the above text box swatchtemp.attr('data-value'); swatchtemp.siblings('.header').children('.swatch-selected').html(swatchtemp.attr('data-value')); swatchtemp.hide(); } }); $(document).ready(function(){ //When qty is changed, first change total price, then check if oversold $("#6808026349640qtyselect").change(function(event){ $(this).parent().css("color", ""); var attr = $(this).attr('invqty'); if (typeof attr == typeof undefined || attr == false) {} else if (parseInt(attr) == 0 ) { toomanytrigger(); } else if (parseInt($(this).val()) > parseInt(attr) ) { toomanytrigger(); $(this).parent().css("color", "#FF0000"); $(this).val(attr); $(".6808026349640notify-me-button").removeClass("hide").hide(); $("#6808026349640atcbutton").removeClass('hide').show(); } else { $(this).parent().css("color", ""); } if($('#6808026349640select-option-0 option:selected').hasClass("prompt") || $('#6808026349640select-option-1 option:selected').hasClass("prompt")) { $("#6808026349640total").html(Shopify.formatMoney($("#6808026349640qtyselect").val()*$("#6808026349640prodlow").attr("value"), "${{amount_no_decimals}}")+"-"+Shopify.formatMoney($("#6808026349640qtyselect").val()*$("#6808026349640prodhigh").attr("value"), "${{amount_no_decimals}}")+" total"); } else { $("#6808026349640total").html(Shopify.formatMoney($("#6808026349640qtyselect").val()*$("#6808026349640select option:selected").attr("title"), "${{amount_no_decimals}}")+" total"); } }); // end qty change $("#6808026349640disabled-button").bind('click', function(event){ event.preventDefault(); $("#6808026349640disabled-btn-message").attr("class", "dis-btn-message"); }); $("#6808026349640discontinued-button").bind('click', function(event){ event.preventDefault(); $("#6808026349640discontinued-btn-message").attr("class", "dis-btn-message"); }); //code to change monogram message when checked. A bit redundant (added for each product.. but temp for now put it here). $('.mono-prod-selector:checkbox').change(function() { // use the :checked selector to find any that are checked if ($(':checkbox:checked').length > 0) { $(this).siblings('.checkbox-text').html("Added: To personalize, click Add to Cart. $10 per monogram.") } else { $(this).siblings('.checkbox-text').html("Add a monogram") } }); }); // docucment ready

      Acacia Wood and Glass Bath Accessories, Toothbrush Holder (2024)

      References

      Top Articles
      Latest Posts
      Article information

      Author: Otha Schamberger

      Last Updated:

      Views: 5829

      Rating: 4.4 / 5 (55 voted)

      Reviews: 94% of readers found this page helpful

      Author information

      Name: Otha Schamberger

      Birthday: 1999-08-15

      Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

      Phone: +8557035444877

      Job: Forward IT Agent

      Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

      Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.