Square Eyeglass MJ101FJ067

$139.00
2 sold
Frame Shape : Square
Frame Color : Grey
Frame Material : Acetate
(function(){ const TAG = 'spz-custom-lamb-add-btn'; class SpzCustomLambAddBtn extends SPZ.BaseElement { constructor(element) { super(element); this.templates_ = null; this.action_ = null; this.selected_variant = '{"id":"f93628e4-a81f-435a-a568-937d7276a7cf","product_id":"d509893c-0076-4d43-8ab4-2bae13823a05","title":"Square-Grey-Acetate","weight_unit":"kg","inventory_quantity":6,"sku":"MJ101FJ067GYC2","barcode":"","position":1,"option1":"Square","option2":"Grey","option3":"Acetate","note":"","image":{"src":"\/\/img.staticdj.com\/876bc57245d75302ab48e2e9a51764fd.jpeg","path":"876bc57245d75302ab48e2e9a51764fd.jpeg","width":3500,"height":3500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":139,"min_quantity":1}],"weight":"0","compare_at_price":"139","price":"139","retail_price":"139","available":true,"url":"\/products\/square-eyeglass-mj101fj067?variant=f93628e4-a81f-435a-a568-937d7276a7cf","available_quantity":6,"options":[{"name":"Frame Shape","value":"Square"},{"name":"Frame Color","value":"Grey"},{"name":"Frame Material","value":"Acetate"}],"off_ratio":0,"flashsale_info":[],"sales":2}'; this.lens_process_id = ""; } buildCallback() { this.xhr_ = SPZServices.xhrFor(this.win); this.action_ = SPZServices.actionServiceForDoc(this.element); this.templates_ = SPZServices.templatesForDoc(this.element); this.getLambLensSteps_(true); this.setupAction_(); } mountCallback() { document.addEventListener('dj.variantChange', (event) => { const variant = event.detail.selected; if (variant.product_id == 'd509893c-0076-4d43-8ab4-2bae13823a05') { this.selected_variant = JSON.stringify(variant); } }); } fetchLambLensSteps() { const lens_process_id = location.search.replace('?', '').split('&').find(v => v.includes('lens_process_id')); const template_id = location.search.replace('?', '').split('&').find(v => v.includes('template_id')); const stepsUrl = '/api/fireant/product/d509893c-0076-4d43-8ab4-2bae13823a05/steps' + ((lens_process_id ? `?${lens_process_id}` : '') || (template_id ? `?${template_id}` : '')); return fetch(stepsUrl).then((res)=>{ return res.json(); }).then((data)=>{ return data; }) } showProductBtn() { var addToCart = document.getElementById('add_to_cart_normal'); var productQuantityBtn = document.getElementById('product_info_quantity_normal'); addToCart && addToCart.classList.remove('hidden'); productQuantityBtn && productQuantityBtn.classList.remove('hidden'); } getLambLensSteps_(isInit) { try{ this.fetchLambLensSteps().then((data)=>{ if(data.errors) { if(isInit){ this.renderBtn(false); this.showProductBtn(); } }else{ if(isInit){ this.lens_process_id = data?.lens_process_id; let frameOnlyArr = data?.prescription_types?.options.filter((option)=>{ return option.prescription_type === 'Frame Only' }); let frameOnlyObj = frameOnlyArr.length > 0 ? frameOnlyArr[0] : {}; let available = true; if(available && (frameOnlyObj?.frame_only_display_at == 'product_detail' || frameOnlyObj?.frame_only_display_at == 'all')){ this.renderBtn({ ...frameOnlyObj, process_type: data.process_type }); }else{ this.renderBtn({ process_type: data.process_type }); } } } }); }catch(e){ this.renderBtn(false); this.showProductBtn(); } } renderBtn = (isRenderProcessBtn) => { return this.templates_ .findAndRenderTemplate(this.element, isRenderProcessBtn) .then((el) => { const children = this.element.querySelector('*:not(template)'); children && SPZCore.Dom.removeElement(children); this.element.appendChild(el); }); } handleClickFrameOnlyBtn_ = async () => { try { const reqBody = { product_id: "d509893c-0076-4d43-8ab4-2bae13823a05", variant_id: JSON.parse(this.selected_variant)?.id, quantity: 1, properties: { lens_processing_id: this.lens_process_id, prescription_type: "Frame Only" } } const data = await this.xhr_.fetchJson('/api/fireant/v2/customize_cart', { method: "post", body: reqBody }); if(data.state === 'success') { this.atc_loading_ = false; this.element.removeAttribute('atc-loading'); this.triggerEvent_("dj.addToCart", data); window.location.href = "/cart"; } else { this.atc_loading_ = false; this.element.removeAttribute('atc-loading'); } } catch (e) { this.atc_loading_ = false; this.element.removeAttribute('atc-loading'); const toast = SPZCore.Dom.scopedQuerySelector(document, `#error-toast`); toast && SPZ.whenApiDefined(toast).then((api) => { e.then((result)=>{ api.showToast(result?.errors[0] || 'Unknown error'); }) }); } } trackAddToCart = () => { const params = { business_type: "product_plugin", function_name: "prescription_lens", plugin_name: "prescription_lens", module: "apps", tab_name: "process_btn", event_type: "click", event_developer: "jozy", event_info: JSON.stringify({ action_type: "frame_only_add_to_cart", product_id: '"d509893c-0076-4d43-8ab4-2bae13823a05"', process_id: this.lens_process_id, process_type: "glasses", element_type: "button", element_name: "frame_only_btn" }) } window.spzutm && window.spzutm.registerParams('add_to_cart', params ); } setupAction_ = () => { this.registerAction('handleClickBtn', (invocation) => { this.saveAllFormProperties_(); const glassesInfo = { product:{ title: "Square Eyeglass MJ101FJ067", id: "d509893c-0076-4d43-8ab4-2bae13823a05", image: {"src":"\/\/img.staticdj.com\/6e1e0c404c410a060a99fad784cbdd99.jpeg","path":"6e1e0c404c410a060a99fad784cbdd99.jpeg","width":3500,"height":3500,"alt":"","aspect_ratio":1}, selected_variant: JSON.parse(this.selected_variant) }, atcType: 'add_lens' }; const tempElement = document.getElementById('process-request-script'); tempElement && SPZ.whenApiDefined(tempElement).then(async (api) => { await api.requestLensProcess(glassesInfo, invocation.args.process_type); }); setTimeout(() => { const proceeBtn = document.getElementById('lens_add_to_cart'); proceeBtn && proceeBtn.classList.remove('pointer-events-none'); }, 3000); }); this.registerAction('handleClickFrameOnlyBtn', (invocation) => { this.trackAddToCart(); this.atc_loading_ = true; this.element.setAttribute('atc-loading',""); this.handleClickFrameOnlyBtn_(); }); } saveAllFormProperties_(){ const formEntries = this.getFormData_(); const properties = this.getFormAllProperties_(formEntries); // 获取的form所有properties存全局 window.app_lamb_form_properties = properties; } getFormData_() { const form = this.element.closest("form"); const formData = new FormData(form); const formEntries = Object.fromEntries(formData.entries()); return formEntries; } getFormAllProperties_(obj){ const result = {}; Object.entries(obj).forEach(([key, value]) => { if (key.startsWith("properties")) { result[key.substring(11, key.length - 1)] = value; } }); return result; } triggerEvent_(name, params) { const event = SPZUtils.Event.create( this.win, name, params, {bubbles: true} ); this.element.dispatchEvent(event); } isLayoutSupported = (layout) => { return layout == SPZCore.Layout.CONTAINER; } } SPZ.defineElement(TAG, SpzCustomLambAddBtn) })()
Stylish & lightweight acetate frames for comfortable daily wear
  • Hand crafted with lightweight acetate
  • All prescription eyeglasses lens includes anti-reflective, anti-glare, and scratch resistant coatings
  • Unisex design that suits your personality and lifestyle

Lens width (A):53mm
Bridge Width (B):17mm
Temple Arm Length (C):145mm

Need a prescription?

Update your prescription by booking your eye exam and contact lens fitting with us today.
Book now
Acetate
Our lightweight acetate frames are perfect for daily wear. Crafted with precision and attention to detail, these frames offer a delicate yet refined texture. Utilizing a cold injection molding process, they are resistant to wear and corrosion, maintaining their beauty over time. With a new thinner design, they combine the aesthetic appeal of traditional materials with a more lightweight and sturdy construction.
Advanced Lens Coatings for Ultimate Clarity
Waterproof Layer: Easy to clean and resistant to water stains
Anti-Static Layer: Reduces dust attraction, keeping your lenses clean
Multi-Layer AR System: Provides high light transmission for a clear and comfortable vision
Hard Coating: Durable, scratch-resistant, and long-lasting

What’s included

Each pair of glasses comes with a complimentary case and cleaning cloth to keep your glasses safe and clean. Get Free shipping and 30-day returns; plus 1 year manufacture warranty on all our frames.