Live forhåndsvisning
Personlig navn og dato Pint Glass
- På lager
- Levering neste dag tilgjengelig*
- internasjonalt skip
- 1-3 produksjonsdager
Veiledende pris£9,99
Bare en£7,99
Tilpass meg
Raskt Overblikk
Feir en spesiell anledning med stil med dette personlige glasset!
Tilpass dette glasset med:
Linje 1 - Opptil 12 tegn.
Linje 2 - Opptil 20 tegn.
Personalisering vil vises med STORE BOKSTAVER.
Håndvask anbefales.
Materialet er glass.
Perfekt for enhver anledning
Tilpass gaven din
'+'
'; } }.bind(dette)); } }.bind(dette)); imageBox.innerHTML = imageHTML; imageBox.show(); } else if (imageMode==4) { // Lớp phủ hình ảnh chính var mainImage = this.getMainImage(); if (mainImage) { if (!mainImage.src) { mainImage = mainImage.down('img'); nếu (!mainImage) trả về; } // xóa overlay_image trước đó if (el.type=='radio') { var radios = el.up(2).getElementsByClassName('radio'); for (i=0; i < radios.length; i++) { if (!radios[i].checked) { var overlayImage = $('overlay_image_' + radios[i].value); if (overlayImage) overlayImage.remove(); } } } annet if (el.type=='checkbox') { if (!el.checked) { var overlayImage = $('overlay_image_' + el.value); if (overlayImage) overlayImage.remove(); } } else { // thả xuống, chọn nhiều cho (i=0; i < el.options.length; i++) { if (!el.options[i].sered && el.options[i].value) { var overlayImage = $('overlay_image_' + el.options[i].value); if (overlayImage) overlayImage.remove(); } } } if ((el.type=='checkbox' || el.type=='radio') && el.checked && !el.disabled) || ((el.type=='select-one' || el.type=='select-multiple') && el.value!='')) { // hình ảnh tùy chọn lớp phủ elValueArr.each(function(optionValueId) { if (optionValueId op!='' .config[ optionId][optionValueId] && opConfig.config[optionId][optionValueId].images) { opConfig.config[optionId][optionValueId].images.each(function(image, index) { if (((exclude=FirstImage= 0 && indeks ==0) || indeks > 0) && bilde[1]) { var overlayImageId = 'overlay_image_' + optionValueId; var overlayImage = $(overlayImageId); if (!overlayImage) { mainImage.up(1). style.position = 'tương đối'; var overlayImage = new Image(); overlayImage.width = mainImage.width; overlayImage.height = mainImage.height; overlayImage.style.display = 'ingen'; overlayImage.style.position = ' absolutt'; overlayImage .style.top = 0; overlayImage.style.left = 0; overlayImage.style.zIndex = this.overlayZIndex; this.overlayZIndex++; overlayImage.id = overlayImageId; overlayImage.src = bilde[1]; Element.insert(mainImage, {'etter':overlayImage}); overlayImage.show(); } } }.bind(dette)); } }.bind(dette)); } } } else { // thay thế và nối thêm biến thể var ul = $$(this.ulId.join(', ')).first(); var optionClass = 'option-image-'+optionId; if (el.type=='checkbox') optionClass += '-' + el.value; var productImageLis = $$(this.ulId.join(' li.li-product-image, ') + ' li.li-product-image'); // ẩn thư viện sản phẩm if (imageMode==2 && productImageLis) { productImageLis.each(function(li) { li.hide(); }); } // xóa ảnh tùy chọn $$('li.' + optionClass).each(function(li) { li.remove(); }); if (typeof(ProductMediaManager)=='undefined') { $$('img.' + optionClass).each(function(img) { img.remove(); }); } // đặt hình ảnh chính mặc định this.newMainImageUrl = this.mainImageUrl; this.newMainImageTitle = this.mainImageTitle; this.newMainImageThumbnail = this.mainImageThumbnail; this.newMainImageIndex = 0; if (((el.type=='checkbox' || el.type=='radio') && el.checked && !el.disabled) || ((el.type=='select-one' || el .type=='select-multiple') && el.value!='')) { var liHtml = ''; if (ul) { // var li = ul.down('li'); var li = productImageLis.last(); if (this.dataImageIndex===false) this.dataImageIndex = $$(this.ulId.join(' li, ') + ' li').length; if (li) { liHtml = ul.down('li').innerHTML; liHtml = liHtml.replace(/(data\-image\-index\=[\'\"])[0-9]+?([\'\"])/,"$1{{data_image_index}}$2" ); if (typeof(ProductMediaManager)=='undefined') liHtml = liHtml.replace(/https?\:\/\/.+?([\'\"])/,"{{big_image_url}}$1"); liHtml = liHtml.replace(/https?\:\/\/.+?([\'\"])/g,"{{small_image_url}}$1"); liHtml = liHtml.replace(/(\s(?:tittel|alt)\=[\'\"]).*?([\'\"])/g,"$1{{title}}$2") ; liHtml = '
'; } } var imageBox = $('customoptions_images_' + optionId); nếu (imageBox) imageBox.hide(); // nối thêm hình ảnh tùy chọn elValueArr.each(function(optionValueId) { if (optionValueId!='' && opConfig.config[optionId][optionValueId.Id.Id.Id.option]option[opsjonsverdi] Konfig. config[optionId ][optionValueId].images.each(function(image, index) { if ((excludeFirstImage==0 && index==0) || index > 0) { if (liHtml) { if (image[1] ) { imageHTML += liHtml.replace(regExp mới("{{data_image_index}}",'g'), this.dataImageIndex).replace(RegExp mới("{{big_image_url}}",'g'), image[ 1]) .replace(regExp mới("{{small_image_url}}",'g'), image[0]).replace(regExp mới("{{title}}",'g'), opConfig.config[ optionId][ optionValueId].title); if (typeof(ProductMediaManager)!='undefined') mainImageHTML += ''; this.dataImageIndex++; } } annet { if (indeks==0 || (ekskluderFirstImage==1 && index==1)) { this.newMainImageUrl = image[1]; this.newMainImageThumbnail = bilde[1]; this.newMainImageTitle = opConfig.config[optionId][optionValueId].title; } } } annet if (el.type=='velg-en' || el.type=='velg-multiple') { if (imageBox) { imageBox.hide(); imageBox.innerHTML = ''+''+'';; imageBox.show(); } } }.bind(this)); } }.bind(this)); if (imageHTML) ul.innerHTML += imageHTML; // for ProductMediaManager if (mainImageHTML) { var mainImageDiv = this.getMainImage().up('div'); if (mainImageDiv) mainImageDiv.innerHTML += mainImageHTML; } } // show product gallery if (!this.hasOptionImages() && productImageLis) { productImageLis.each(function(li) { li.show(); }); } $$('.cloud-zoom-gallery').each(function(a) { if (a.up('li').style.display=='') a.up('li').style.display = 'list-item'; a.addClassName('cboxElement'); jQuery(a).CloudZoom(); }); if (typeof(ProductMediaManager)!='undefined') ProductMediaManager.init(); // change main image if (imageMode==2) { if (typeof(ProductMediaManager)=='undefined') this.changeMainImage(); else setTimeout('optionImages.changeMainImage()', 100); } } }, markProduct: function() { $$(this.ulId.join(' li, ') + ' li').each(function(li) { li.addClassName('li-product-image'); }); if (this.mainImageUrl=='') { var mainImage = this.getMainImage(); if (mainImage) { if (mainImage.hasClassName('MagicToolboxContainer')) { var elA = mainImage.down('a'); if (elA) { this.mainImageUrl = elA.href; var elImg = elA.down('img'); if (elImg.width) this.mainImageWidth = elImg.width; this.mainImageThumbnail = elImg.src; this.mainImageTitle = elImg.alt; } } else if (mainImage.hasClassName('zoom-image') || (mainImage.up('a') && mainImage.up('a').hasClassName('cloud-zoom'))) { // Easy Zoom 1.0 - jQuery plugin // Cloud Zoom V1.0.2 var elA = mainImage.up('a'); if (elA) { this.mainImageUrl = elA.href; } else { this.mainImageUrl = mainImage.src; } this.mainImageTitle = mainImage.alt; this.mainImageThumbnail = mainImage.src } else { this.mainImageUrl = mainImage.src; this.mainImageTitle = mainImage.alt; } } } this.prevMainImageUrl = this.mainImageUrl; }, getMainImage: function() { return $$('div.product-img-box div.MagicToolboxContainer', 'div.product-img-box div.main-image img', 'div.product-img-box .product-image img', '#image', '#image-main', 'div.img-box .product-image img').first(); }, changeMainImage: function() { if (!this.newMainImageUrl || this.newMainImageUrl==this.prevMainImageUrl) return; var mainImage = this.getMainImage(); if (!mainImage) return; if (!this.pageLoaded) { mainImage.hide(); setTimeout('optionImages.changeMainImage()', 100); return; } if (mainImage.hasClassName('MagicToolboxContainer')) { var elA = mainImage.down('a'); if (elA) { elA.down('img').width = this.mainImageWidth; MagicZoomPlus.update(elA.id, this.newMainImageUrl, this.newMainImageThumbnail, 'show-title: false; drag-mode: false'); } } else if (typeof(ProductMediaManager)!='undefined') { $$(this.ulId.join(' li, ') + ' li').each(function(li) { var elA = li.down('a'); if (elA && elA.readAttribute('data-image-index')==this.newMainImageIndex) { elA.click(); } }.bind(this)); } else if (mainImage.hasClassName('zoom-image')) { // Easy Zoom 1.0 - jQuery plugin var elA = mainImage.up('a'); if (elA) elA.href = this.newMainImageUrl; mainImage.src = this.newMainImageUrl; mainImage.alt = this.newMainImageTitle; mainImage.title = this.newMainImageTitle; jQuery('#zoom').easyZoom({parent: 'div.zoom-container',preload: '', lightboxBtn: '.lightbox-btn .lightbox'}).data('easyZoom').gallery('a.zoom-thumbnail'); } else if (mainImage.up('a') && mainImage.up('a').hasClassName('cloud-zoom')) { // ultimo + Cloud Zoom V1.0.2 var elA = mainImage.up('a'); if (elA) elA.href = this.newMainImageUrl; mainImage.src = this.newMainImageUrl; mainImage.alt = this.newMainImageTitle; mainImage.title = this.newMainImageTitle; if ($("zoom-btn")) { $("zoom-btn").href = this.newMainImageUrl; $("zoom-btn").title = this.newMainImageTitle; } jQuery("#"+elA.id).CloudZoom(); } else { mainImage.src = this.newMainImageUrl; mainImage.alt = this.newMainImageTitle; mainImage.title = this.newMainImageTitle; } this.prevMainImageUrl = this.newMainImageUrl; mainImage.show(); }, hasOptionImages: function() { var result = false; var firstImageUrl = ''; $$(this.ulId.join(' li, ') + ' li').each(function(li) { if (li.hasClassName('li-product-image')==false) { // change main image if (!firstImageUrl) { var firstImageMatch = li.innerHTML.match(/(https?\:\/\/.+?)[\'\"]/); if (firstImageMatch) firstImageUrl = firstImageMatch[1]; this.newMainImageUrl = firstImageUrl; this.newMainImageThumbnail = firstImageUrl; this.newMainImageTitle = li.down('img').alt; if (typeof(ProductMediaManager)!='undefined') this.newMainImageIndex = li.down('a').readAttribute('data-image-index'); } result = true; } }.bind(this)); return result; } }; Event.observe(window, 'load', function() { opConfig.reloadPrice(); }); var dependentOptions = { dependentData: [], inGroupIdData: [], defaultData: [], dependentChanges: {"m":[], "d":[]}, dependentHide: true, select: function(el) { var i, ii = 0; if (el.type=='radio') { var radios = this.upDiv(el).getElementsByClassName('radio'); for (i=0; i < radios.length; i++) { this.returnSelect(radios[i]); } } else { this.returnSelect(el); } if (el.type && el.type=='checkbox' && !el.checked) { this.decorateIsLast(); return false; } if (el.disabled) return false; if (el.value>0) { // prepare value var elValueArr = []; if (el.multiple) { for (i=0; i < el.options.length; i++) { if (el.options[i].selected) elValueArr.push(el.options[i].value); } } else { elValueArr.push(el.value); } var mElementId = el.id; var dSelects = []; var isRequire = false; for (i=0; i < elValueArr.length; i++) { if (!this.dependentData[elValueArr[i]]) continue; this.dependentData[elValueArr[i]].each(function(IGI){ if (this.inGroupIdData[IGI]) { for(var dElementId in this.inGroupIdData[IGI]) { if (dElementId!='dependency' && dElementId!='out_of_stock' && dElementId!='view_mode' && $(dElementId)) { if (this.inGroupIdData[IGI][dElementId]) { var dElement = $(dElementId); if (!this.dependentChanges['m'][mElementId]) this.dependentChanges['m'][mElementId] = []; if (!this.dependentChanges['m'][mElementId][dElementId]) this.dependentChanges['m'][mElementId][dElementId] = []; this.dependentChanges['m'][mElementId][dElementId]['disabled'] = true; if (this.dependentChanges['m'][mElementId][dElementId]['is_require']) { isRequire = true; } else { isRequire = $(dElement).hasClassName('required-dependent'); } this.dependentChanges['m'][mElementId][dElementId]['is_require'] = isRequire; if (!this.dependentChanges['d'][dElementId]) this.dependentChanges['d'][dElementId] = []; if ((dElement.type=='select-one' || dElement.type=='select-multiple') && !$(dElement).hasClassName('datetime-picker')) { // if [multi]select var selectValue = 's'+this.inGroupIdData[IGI][dElementId]; // if el not modified -> backup default options and clear if (!this.dependentChanges['d'][dElementId]['options']) { this.dependentChanges['d'][dElementId]['options'] = []; var opSelected = false; for (ii=0; ii < dElement.options.length; ii++) { if (this.defaultData[dElementId] && (this.defaultData[dElementId]==dElement.options[ii].value || this.defaultData[dElementId][dElement.options[ii].value])) opSelected = true; else opSelected = false; if (dElement.options[ii].value) this.dependentChanges['d'][dElementId]['options']['s'+dElement.options[ii].value] = {'text':dElement.options[ii].text, 'selected':opSelected, 'sel-def':opSelected, 'disabled':dElement.options[ii].disabled}; } if (dElement.multiple) dElement.length = 0; else dElement.length = 1; // clear select } if (this.dependentChanges['d'][dElementId]['options'][selectValue]) { // set [multi]select flag use if (!this.dependentChanges['d'][dElementId]['options'][selectValue]['use']) this.dependentChanges['d'][dElementId]['options'][selectValue]['use'] = []; this.dependentChanges['d'][dElementId]['options'][selectValue]['use'].push(mElementId); this.dependentChanges['d'][dElementId]['options'][selectValue]['dependency'] = this.inGroupIdData[IGI].dependency; // commit changes if (!this.dependentChanges['m'][mElementId][dElementId]['options']) this.dependentChanges['m'][mElementId][dElementId]['options'] = []; this.dependentChanges['m'][mElementId][dElementId]['options'].push(selectValue); } } else { // if radio, checkbox, text, etc. if (!this.dependentChanges['d'][dElementId]['use']) this.dependentChanges['d'][dElementId]['use'] = []; this.dependentChanges['d'][dElementId]['use'].push(mElementId); this.dependentChanges['d'][dElementId]['dependency'] = this.inGroupIdData[IGI].dependency; } if ((this.dependentChanges['d'][dElementId]['use'] && this.dependentChanges['d'][dElementId]['use'].length >= this.inGroupIdData[IGI].dependency) || ((dElement.type=='select-one' || dElement.type=='select-multiple') && this.dependentChanges['d'][dElementId]['options'][selectValue] && this.dependentChanges['d'][dElementId]['options'][selectValue]['use'].length >= this.inGroupIdData[IGI].dependency)) { // set visibility if (!this.inGroupIdData[IGI].out_of_stock) dElement.disabled = false; if (this.dependentHide && this.inGroupIdData[IGI].view_mode!=2) { if (dElement.type=='checkbox' || dElement.type=='radio') { $(dElement).up('li').style.display = 'block'; } dependentOptions.upDiv(dElement).style.display = 'block'; } // set class required-entry if (isRequire) { $(dElement).removeClassName('required-dependent'); if (dElement.type=='checkbox' || dElement.type=='radio') { $(dElement).addClassName('validate-one-required-by-name'); } else { $(dElement).addClassName('required-entry'); } } // add or init dependent element if ((dElement.type=='select-one' || dElement.type=='select-multiple') && !$(dElement).hasClassName('datetime-picker')) { // if [multi]select var selectValue = 's'+this.inGroupIdData[IGI][dElementId]; if (this.dependentChanges['d'][dElementId]['options'][selectValue]) { dSelects.push(dElement); // after add data to this [multi]select } } else { // if radio, checkbox, text, etc. if (this.defaultData[dElementId] && ($(dElementId).type=='checkbox' || $(dElementId).type=='radio') && this.inGroupIdData[IGI].dependency==this.dependentChanges['d'][dElementId]['use'].length) $(dElementId).click(); } } } } } } }.bind(this)); } if (dSelects.length>0) { for (i=0; i < dSelects.length; i++) { var dElement = dSelects[i]; var dElementId = dElement.id; // add data to [multi]select this.rememberNewSelected(dElement, dElementId); if (dElement.multiple) dElement.length = 0; else dElement.length = 1; // clear select for(var opValue in this.dependentChanges['d'][dElementId]['options']) { if (!this.dependentChanges['d'][dElementId]['options'].hasOwnProperty(opValue) || !this.dependentChanges['d'][dElementId]['options'][opValue] || !this.dependentChanges['d'][dElementId]['options'][opValue]['use'] || this.dependentChanges['d'][dElementId]['options'][opValue]['use'].length < this.dependentChanges['d'][dElementId]['options'][opValue]['dependency']) continue; var newOpt = new Option(this.dependentChanges['d'][dElementId]['options'][opValue]['text'], opValue.substr(1)); newOpt.disabled = this.dependentChanges['d'][dElementId]['options'][opValue]['disabled']; if (this.dependentChanges['d'][dElementId]['options'][opValue]['selected']) { newOpt.selected = true; //if (!newOpt.disabled) setTimeout('dependentOptions.select($("'+dElementId+'"));', '100'); } dElement.options.add(newOpt); } dElement.onchange(); } } this.decorateIsLast(); } }, // cancel changes and return default options params returnSelect: function(el) { var mElementId = el.id; var i = 0; // reset main image to parent image option if dependent option has no image if (this.dependentChanges['d'][mElementId] && this.dependentChanges['d'][mElementId]['use']) { var dmElement = $(mElementId); if (dmElement.checked) { optionImages.showImage(dmElement); this.dependentChanges['d'][mElementId]['use'].each(function(el){ optionImages.showImage($(el)); }); } } if (this.dependentChanges['m'][mElementId] && !this.dependentChanges['m'][mElementId]['is_used']) { this.dependentChanges['m'][mElementId]['is_used'] = true; for(var dElementId in this.dependentChanges['m'][mElementId]) { if (!this.dependentChanges['m'][mElementId].hasOwnProperty(dElementId) || dElementId=='is_used' || !$(dElementId)) continue; var dElement = $(dElementId); var disableElFlag = true; // disable dependent el if (this.dependentChanges['m'][mElementId][dElementId]['disabled']) { if (this.dependentChanges['m'][mElementId][dElementId]['options'] && this.dependentChanges['d'][dElementId]['options']) { // to [multi]select this.rememberNewSelected(dElement, dElementId); // remove options if not use main el for (i=0; i < this.dependentChanges['m'][mElementId][dElementId]['options'].length; i++) { opValue = this.dependentChanges['m'][mElementId][dElementId]['options'][i]; if (this.dependentChanges['d'][dElementId]['options'][opValue] && this.dependentChanges['d'][dElementId]['options'][opValue]['use'] && this.dependentChanges['d'][dElementId]['options'][opValue]['use'].length>0) { this.dependentChanges['d'][dElementId]['options'][opValue]['use'] = this.dependentChanges['d'][dElementId]['options'][opValue]['use'].without(mElementId); if (this.dependentChanges['d'][dElementId]['options'][opValue]['use'].length < this.dependentChanges['d'][dElementId]['options'][opValue]['dependency']) { $$("#"+dElementId+" option[value='"+opValue.substr(1)+"']").each(function(elOp){ elOp.remove(); }); } else { disableElFlag = false; } } } if (disableElFlag && (dElement.length>1 || (dElement.multiple && dElement.length>0))) disableElFlag = false; dElement.onchange(); } else { // to radio, checkbox, text, etc. if (this.dependentChanges['d'][dElementId]['use'] && this.dependentChanges['d'][dElementId]['use'].length > 0) { this.dependentChanges['d'][dElementId]['use'] = this.dependentChanges['d'][dElementId]['use'].without(mElementId); if (this.dependentChanges['d'][dElementId]['use'].length >= this.dependentChanges['d'][dElementId]['dependency']) disableElFlag = false; } } if (disableElFlag) { dElement.disabled = true; // restore default if [multi]select if ((dElement.type=='select-one' || dElement.type=='select-multiple') && !$(dElement).hasClassName('datetime-picker')) { for(var opValue in this.dependentChanges['d'][dElementId]['options']) { if (!this.dependentChanges['d'][dElementId]['options'].hasOwnProperty(opValue) || !this.dependentChanges['d'][dElementId]['options'][opValue]) continue; var newOpt = new Option(this.dependentChanges['d'][dElementId]['options'][opValue]['text'], opValue.substr(1)); newOpt.disabled = this.dependentChanges['d'][dElementId]['options'][opValue]['disabled']; newOpt.selected = this.dependentChanges['d'][dElementId]['options'][opValue]['sel-def']; dElement.options.add(newOpt); } dElement.onchange(); } // hide if (this.dependentHide) { var hideDivFlag = true; if (dElement.type=='checkbox' || dElement.type=='radio') { $(dElement).up('li').style.display = 'none'; ulEl = $(dElement).up('li').up('ul'); if (ulEl) { lis = ulEl.getElementsByTagName('li'); for (i=0; i < lis.length; i++) { if (lis[i].style.display=='block') { hideDivFlag = false; break; } } } } if (hideDivFlag) this.upDiv(dElement).style.display = 'none'; } // require if (this.dependentChanges['m'][mElementId][dElementId]['is_require']) { if (dElement.type=='checkbox' || dElement.type=='radio') { $(dElement).removeClassName('validate-one-required-by-name'); } else { $(dElement).removeClassName('required-entry'); } $(dElement).addClassName('required-dependent'); } optionImages.showImage(dElement); } } // return dependent->dependent etc.. if (disableElFlag && (dElement.type=='checkbox' || dElement.type=='radio') && dElement.checked) { dElement.checked = false; if (dElement.type=='checkbox') optionSetQtyProduct.checkboxQty(dElement); dependentOptions.returnSelect(dElement); } else if ((dElement.type=='select-one' || dElement.type=='select-multiple') && !$(dElement).hasClassName('datetime-picker')) { dependentOptions.select(dElement); // that's right! } else if (disableElFlag && (dElement.type=='text' || dElement.type=='textarea' || dElement.type=='file')) { if (this.defaultData[dElementId]) dElement.value = this.defaultData[dElementId]; else dElement.value = ''; } } delete this.dependentChanges['m'][mElementId]; } }, rememberNewSelected: function(dElement, dElementId) { // remember new selected if (this.dependentChanges['d'][dElementId] && this.dependentChanges['d'][dElementId]['options']) { var opSelected = false; for (i=0; i < dElement.options.length; i++) { if (this.dependentChanges['d'][dElementId]['options']['s'+dElement.options[i].value]) { if (dElement.options[i].selected && dElement.options[i].value>0) opSelected = true; else opSelected = false; this.dependentChanges['d'][dElementId]['options']['s'+dElement.options[i].value]['selected'] = opSelected; } } } }, // for ie to work upDiv: function(el) { if (el.type=='checkbox' || el.type=='radio') { var div = el.up(4); if (!$(div).hasClassName('option')) div = div.up(1); return div; } else { return el.up('div.option'); } }, decorateIsLast: function() { var divs = $$('div.option'); if (divs) { var dl = false; var dd = false; divs.each(function(div, index){ if (div.style.display!='none' && !$(div).hasClassName('hidden')) { dl = div.down('dl'); if (dl) { if ($(dl).hasClassName('last')) $(dl).removeClassName('last'); dd = dl.down('dd'); if (dd && $(dd).hasClassName('last')) $(dd).removeClassName('last'); } } }.bind(this)); if (dl) $(dl).addClassName('last'); if (dd) $(dd).addClassName('last'); } }, applyDefaultValues: function(el) { for(var elementId in this.defaultData) { if (!this.defaultData.hasOwnProperty(elementId)) continue; if ($(elementId) && this.upDiv($(elementId)) && this.upDiv($(elementId)).style.display!="none") { this.returnSelect($(elementId)); if ($(elementId).type=='select-one' || $(elementId).type=='text' || $(elementId).type=='textarea') { $(elementId).value = this.defaultData[elementId]; } else if ($(elementId).type=='select-multiple') { el = $(elementId); for (i=0; i < el.options.length; i++) { if (this.defaultData[elementId][el.options[i].value]) el.options[i].selected = true; } } else if ($(elementId).type=='checkbox' || $(elementId).type=='radio') { if ($(elementId).checked!=true) $(elementId).click(); } this.select($(elementId)); } } } }; // for correct decorating of options if (typeof(decorateGeneric)!='undefined') { var parentDecorateGeneric = decorateGeneric; decorateGeneric = function(elements, decorateParams) { parentDecorateGeneric(elements, decorateParams); dependentOptions.decorateIsLast(); }; } // Change Qty Input Invetory var optionsInventory = { changeInputQty: function(el) { if (!el) { return false; } var optionId = this._getOptionId(el); var valueId = el.value; if (el.type == 'radio') { var optionQty = $('options_'+optionId+'_qty'); } else if (el.type == 'checkbox') { var optionQty = $('options_'+optionId+'_'+valueId+'_qty'); } if (!optionQty) { return; } var minQty = 1; if (valueId != '' && opConfig.config[optionId][valueId].min_qty) { minQty = opConfig.config[optionId][valueId].min_qty; } $(optionQty).addClassName('validate-greater-than-zero'); if (!el.checked) { minQty = 0; $(optionQty).removeClassName('validate-greater-than-zero'); } this._changeDisabledQty(el, optionQty); optionQty.value = minQty; }, changeSelectQty: function(el) { if (!el) { return false; } var optionId = this._getOptionId(el); var valueIds = this._getValueIds(el); var optionQty = $('options_'+optionId+'_qty'); if (!optionQty) { return; } for (i=0; i < valueIds.length; i++) { var valueId = valueIds[i]; var minQty = 1; if (opConfig.config[optionId][valueId].min_qty) { minQty = opConfig.config[optionId][valueId].min_qty; } optionQty.value = minQty; } $(optionQty).addClassName('validate-greater-than-zero'); }, changeMultiSelectQty: function(optionId, valueId, selected) { var optionQty = $('options_'+ optionId +'_'+ valueId +'_qty'); if (!optionQty) { return; } optionQty.disabled = !selected; if (selected) { var minQty = 1; if (opConfig.config[optionId][valueId].min_qty) { minQty = opConfig.config[optionId][valueId].min_qty; } if (optionQty.value<=0) { optionQty.value = minQty; } $(optionQty).addClassName('validate-greater-than-zero'); } else { $(optionQty).removeClassName('validate-greater-than-zero'); } }, _getValueIds: function(el) { var ids = []; for (i=0; i < el.options.length; i++) { if (el.options[i].selected && el.options[i].value != '') { ids.push(el.options[i].value); } } return ids; }, _getOptionId: function(el) { var optionId = 0; el.name.sub(/[0-9]+/, function(match){ optionId = match[0]; }); return optionId; }, _changeDisabledQty: function(el, qty) { qty.disabled=!el.checked; }, }; Event.observe(window, 'load', function() { $$("input[type^='checkbox'].product-custom-option, input[type^='radio'].product-custom-option").each(function(element){ Event.observe(element, 'change', function() { optionsInventory.changeInputQty(element); opConfig.reloadPrice(); }); }); $$("select[id^='select_'].product-custom-option").each(function(element){ Event.observe(element, 'change', function() { optionsInventory.changeSelectQty(element); opConfig.reloadPrice(); }); }); }); // end Change Qty Input Invetory //]]>
-
Gjenværende karakterer:12
-
Gjenværende karakterer:20
* Obligatoriske felt
FAQs
Is a pint glass 8 oz? ›
In the United States, a pint is 16 US fluid ounces (473 ml). However, the typical conical "pint" glass holds 16 US fl oz only when filled to its rim with liquid.
What does it mean when your pint glass has a bulge? ›The simple bulge around the circumference of the glass has several functions. First, it makes it easier for bar patrons to hold on to, even when the glass is slick with condensation. Second, it makes the glasses easy to stack and un-stack, which is important to bartenders at a busy establishment.
How can you tell how old a pint glass is? ›The M plus number in a rectangular box stands for Measure and the year it was marked. In this example, the glass has an M19 mark, meaning it has been measured in 2019 to contain 1 pint of beer.
Is it illegal to take a pint glass? ›Responding to a spate of thefts in Lancashire back in 2018, James Newton, a nightlife improvement campaigner, said: “Taking a glass from a pub is a criminal offence. It's as simple as that.
What is an 8 oz glass called? ›A highball glass is a glass tumbler that can contain 240 to 350 millilitres (8 to 12 US fl oz).
Is a pint always 16 oz? ›In the United States, a pint is typically defined as 16 fluid ounces. This means that there are 16 oz in a pint-bottle or pitcher, and 16 oz in a standard glass of beer or soda. However, in the United Kingdom and Ireland, a pint is usually 20 fluid oz.
What does a bad pint look like? ›'After the pint has settled, pouring can resume and the pint can be filled to the top slowly. Once it has settled again, you could recognise a bad pint easily by looking at its head. If it has any bubble or if it is either to thin or to thick (a good head should have a height of about 2cm) it's not a good sign! '
What is the big pint glass called? ›The English pint glass, also commonly referred to as an Imperial or Nonic glass, is shaped much like the American pint, but has a slight lip near the top. The English pint also holds 20 oz. and is usually preferred for drinking English ales and lagers.
Does the pint glass matter? ›Pint Glass
The wider top allows the beer to release the aromatics as well as give room for the head, or "foam" that appears at the top of a beer. These can be used for a wide variety of beer, which is why it's most likely what you'll drink out of at a standard bar or pub.
That's the year the glass was made." He continued: "You shouldn't keep your glasses for more than three years, after that three years, you should be getting rid of them and getting new ones."
What are the dots on the bottom of a pint glass? ›
The term widget glass can be used to refer to a laser-engraved pattern at the bottom of a beer glass which aids the release of carbon dioxide bubbles. The pattern of the etching can be anything from a simple circular or chequered design to a logo or text.
What do Americans call a pint? ›American pint is 16 American fluid ounces. In human-friendly units, that is 473.176473 millilitres. US fluid ounce equals 29.5735295625 ml. Oh, and then there is US dry pint, which equals 550.6104713575 millilitres.
How many pint glasses get stolen? ›According to Nisbets, on average, 37 million Brits have stolen glasses or tableware in their home. Based on two glasses costing £5.00, this works out to a £186 million loss to the industry.
Is a Coca Cola glass a pint? ›The Coca Cola Georgia Green Glass is sized at over half a pint so you can comfortably fill it up with plenty of ice for a nice chilled drink, while still having plenty of room for your half pint of Coke!
How many 8 oz glasses in a pint? ›It is handy to remember that one cup is equal to eight ounces, and eight ounces is only half a pint. So, two cups equals a pint which means a pint is 16 fluid ounces. How many ounces in a pint depends on how many pints you quaffed at the pub.
How big of a glass is 8 oz? ›8 ounces of water equals 1 cup of water. So, 1 8-ounce glass of water is one cup.
How many Oz does a pint glass hold? ›So when you go into a bar, pub or restaurant and order a. The cup never lies.It seems pretty simple: A pint equals 16 ounces.
How many ounces Oz are in a pint? ›In the United States, 16 fluid ounces equals one pint, and one pint = 2 cups, 1/2 quart and 1/8 gallon.