$product = {"id":7951959228515,"title":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗","handle":"iphone-14-jellytint-magsafe-oy71","description":null,"published_at":"2026-01-13T16:26:17+08:00","created_at":"2026-01-13T15:47:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-disney-classics","device-iPhone 14","merge","reseller-disney-classics"],"price":168000,"price_min":168000,"price_max":168000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":43949515341923,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012600I-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185649909859,"product_id":7951959228515,"position":7,"created_at":"2026-02-04T10:34:20+08:00","updated_at":"2026-02-04T10:34:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462","variant_ids":[43949515341923]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600I-OY71","featured_media":{"alt":null,"id":26737985716323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43949521698915,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012600J-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185649254499,"product_id":7951959228515,"position":5,"created_at":"2026-02-04T10:34:19+08:00","updated_at":"2026-02-04T10:34:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_654c1018-dabc-4706-af57-be4e9caa5919.webp?v=1770172460","variant_ids":[43949521698915]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600J-OY71","featured_media":{"alt":null,"id":26737985060963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_654c1018-dabc-4706-af57-be4e9caa5919.webp?v=1770172460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43949522321507,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012600H-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185649647715,"product_id":7951959228515,"position":6,"created_at":"2026-02-04T10:34:19+08:00","updated_at":"2026-02-04T10:34:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_3820cbe0-8710-4ed4-a1e2-fc91d0137154.webp?v=1770172461","variant_ids":[43949522321507]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600H-OY71","featured_media":{"alt":null,"id":26737985421411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_3820cbe0-8710-4ed4-a1e2-fc91d0137154.webp?v=1770172461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43949522911331,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185650237539,"product_id":7951959228515,"position":8,"created_at":"2026-02-04T10:34:20+08:00","updated_at":"2026-02-04T10:34:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_d014ef99-2b69-4fd3-9c9e-e8ecf55ca699.webp?v=1770172462","variant_ids":[43949522911331]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-OY71","featured_media":{"alt":null,"id":26737986044003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_d014ef99-2b69-4fd3-9c9e-e8ecf55ca699.webp?v=1770172462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_a3c15cef-32fa-48c8-923b-1aa077228ce6.webp?v=1768290484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_c7e671f1-b667-404f-8b79-6cd7f7d55139.webp?v=1768290485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_d3fadd66-da89-49ea-a8bb-ab7fd587080a.webp?v=1768290486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_57da119f-6c62-4a23-ac08-4406af4029a2.webp?v=1768290487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_654c1018-dabc-4706-af57-be4e9caa5919.webp?v=1770172460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_3820cbe0-8710-4ed4-a1e2-fc91d0137154.webp?v=1770172461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_d014ef99-2b69-4fd3-9c9e-e8ecf55ca699.webp?v=1770172462"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_a3c15cef-32fa-48c8-923b-1aa077228ce6.webp?v=1768290484","options":["color"],"media":[{"alt":null,"id":26655499026531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_a3c15cef-32fa-48c8-923b-1aa077228ce6.webp?v=1768290484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_a3c15cef-32fa-48c8-923b-1aa077228ce6.webp?v=1768290484","width":2000},{"alt":null,"id":26655499649123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_c7e671f1-b667-404f-8b79-6cd7f7d55139.webp?v=1768290485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_c7e671f1-b667-404f-8b79-6cd7f7d55139.webp?v=1768290485","width":2000},{"alt":null,"id":26655500140643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_d3fadd66-da89-49ea-a8bb-ab7fd587080a.webp?v=1768290486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_d3fadd66-da89-49ea-a8bb-ab7fd587080a.webp?v=1768290486","width":2000},{"alt":null,"id":26655500632163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_57da119f-6c62-4a23-ac08-4406af4029a2.webp?v=1768290487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_57da119f-6c62-4a23-ac08-4406af4029a2.webp?v=1768290487","width":2000},{"alt":null,"id":26737985060963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_654c1018-dabc-4706-af57-be4e9caa5919.webp?v=1770172460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_654c1018-dabc-4706-af57-be4e9caa5919.webp?v=1770172460","width":2000},{"alt":null,"id":26737985421411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_3820cbe0-8710-4ed4-a1e2-fc91d0137154.webp?v=1770172461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_3820cbe0-8710-4ed4-a1e2-fc91d0137154.webp?v=1770172461","width":2000},{"alt":null,"id":26737985716323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462","width":2000},{"alt":null,"id":26737986044003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_d014ef99-2b69-4fd3-9c9e-e8ecf55ca699.webp?v=1770172462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_d014ef99-2b69-4fd3-9c9e-e8ecf55ca699.webp?v=1770172462","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43949515341923,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012600I-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185649909859,"product_id":7951959228515,"position":7,"created_at":"2026-02-04T10:34:20+08:00","updated_at":"2026-02-04T10:34:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462","variant_ids":[43949515341923]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600I-OY71","featured_media":{"alt":null,"id":26737985716323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43949521698915,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012600J-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185649254499,"product_id":7951959228515,"position":5,"created_at":"2026-02-04T10:34:19+08:00","updated_at":"2026-02-04T10:34:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_654c1018-dabc-4706-af57-be4e9caa5919.webp?v=1770172460","variant_ids":[43949521698915]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600J-OY71","featured_media":{"alt":null,"id":26737985060963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749009595f7435b5bf55960e2d19ff6790b6d403_654c1018-dabc-4706-af57-be4e9caa5919.webp?v=1770172460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43949522321507,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012600H-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185649647715,"product_id":7951959228515,"position":6,"created_at":"2026-02-04T10:34:19+08:00","updated_at":"2026-02-04T10:34:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_3820cbe0-8710-4ed4-a1e2-fc91d0137154.webp?v=1770172461","variant_ids":[43949522321507]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600H-OY71","featured_media":{"alt":null,"id":26737985421411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/764e44a87d39cbfe203f711bb4b3b04c2a9d28dd_3820cbe0-8710-4ed4-a1e2-fc91d0137154.webp?v=1770172461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43949522911331,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185650237539,"product_id":7951959228515,"position":8,"created_at":"2026-02-04T10:34:20+08:00","updated_at":"2026-02-04T10:34:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_d014ef99-2b69-4fd3-9c9e-e8ecf55ca699.webp?v=1770172462","variant_ids":[43949522911331]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-OY71","featured_media":{"alt":null,"id":26737986044003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d2c7fa30f3c03f16186d0d9e315ced4922775d_d014ef99-2b69-4fd3-9c9e-e8ecf55ca699.webp?v=1770172462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43949515341923,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012600I-OY71","requires_shipping":true,"taxable":true,"featured_image":{"id":35185649909859,"product_id":7951959228515,"position":7,"created_at":"2026-02-04T10:34:20+08:00","updated_at":"2026-02-04T10:34:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462","variant_ids":[43949515341923]},"available":true,"name":"iPhone 14 Clear (MagSafe 兼容) Disney - Classics 迪士尼經典電影 貓兒歷險記 - 可愛瑪麗 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":168000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600I-OY71","featured_media":{"alt":null,"id":26737985716323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286d7d2a4c67dfe991dd0df1ce2cfc9c848838fc_1b43555c-7121-4c8d-9e82-a2820270c707.webp?v=1770172462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }