$product = {"id":7823775891555,"title":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔","handle":"iphone-15-pro-max-solidx-pd01","description":null,"published_at":"2025-07-01T19:18:07+08:00","created_at":"2025-06-20T10:24:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-pixar","device-iPhone 15 Pro Max","merge","reseller-pixar"],"price":125000,"price_min":125000,"price_max":125000,"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":43472914972771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132947361891,"product_id":7823775891555,"position":9,"created_at":"2026-06-30T16:43:36+08:00","updated_at":"2026-06-30T16:43:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018","variant_ids":[43472914972771]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-PD01","featured_media":{"alt":null,"id":27637894086755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472917594211,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132946444387,"product_id":7823775891555,"position":7,"created_at":"2026-06-30T16:43:35+08:00","updated_at":"2026-06-30T16:43:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d16387345736e817980510273f078b11d522b9ba.webp?v=1782809018","variant_ids":[43472917594211]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-PD01","featured_media":{"alt":null,"id":27637893202019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d16387345736e817980510273f078b11d522b9ba.webp?v=1782809018"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472917692515,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132945526883,"product_id":7823775891555,"position":5,"created_at":"2026-06-30T16:43:34+08:00","updated_at":"2026-06-30T16:43:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f7708ee65f1a75479d55ebf37a137a8203ec7.webp?v=1782809016","variant_ids":[43472917692515]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-PD01","featured_media":{"alt":null,"id":27637892284515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f7708ee65f1a75479d55ebf37a137a8203ec7.webp?v=1782809016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472917725283,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132945002595,"product_id":7823775891555,"position":4,"created_at":"2026-06-30T16:43:34+08:00","updated_at":"2026-06-30T16:43:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26cf13f0be9d6c926606c2ce200ed900e13ed69.webp?v=1782809015","variant_ids":[43472917725283]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-PD01","featured_media":{"alt":null,"id":27637891825763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26cf13f0be9d6c926606c2ce200ed900e13ed69.webp?v=1782809015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494433849443,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132945952867,"product_id":7823775891555,"position":6,"created_at":"2026-06-30T16:43:35+08:00","updated_at":"2026-06-30T16:43:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ac95e826bfafaad89d5c79f4da49691d71c9.webp?v=1782809017","variant_ids":[43494433849443]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-PD01","featured_media":{"alt":null,"id":27637892743267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ac95e826bfafaad89d5c79f4da49691d71c9.webp?v=1782809017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PD01.png?v=1750386253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PD01_aafc4c37-5e12-488b-9cce-99f5c4ff1bd1.png?v=1750832243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b27ccbaa3a68fa2f14f0de46803f34ff252f7676.webp?v=1782809015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26cf13f0be9d6c926606c2ce200ed900e13ed69.webp?v=1782809015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f7708ee65f1a75479d55ebf37a137a8203ec7.webp?v=1782809016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ac95e826bfafaad89d5c79f4da49691d71c9.webp?v=1782809017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d16387345736e817980510273f078b11d522b9ba.webp?v=1782809018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff37cbee24e41419553f67c99f1a2c8e1df753c9.webp?v=1782809018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PD01.png?v=1750386253","options":["color"],"media":[{"alt":null,"id":25720334024803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PD01.png?v=1750386253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PD01.png?v=1750386253","width":2000},{"alt":null,"id":25736364097635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PD01_aafc4c37-5e12-488b-9cce-99f5c4ff1bd1.png?v=1750832243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PD01_aafc4c37-5e12-488b-9cce-99f5c4ff1bd1.png?v=1750832243","width":2000},{"alt":null,"id":27637891334243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b27ccbaa3a68fa2f14f0de46803f34ff252f7676.webp?v=1782809015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b27ccbaa3a68fa2f14f0de46803f34ff252f7676.webp?v=1782809015","width":2000},{"alt":null,"id":27637891825763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26cf13f0be9d6c926606c2ce200ed900e13ed69.webp?v=1782809015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26cf13f0be9d6c926606c2ce200ed900e13ed69.webp?v=1782809015","width":2000},{"alt":null,"id":27637892284515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f7708ee65f1a75479d55ebf37a137a8203ec7.webp?v=1782809016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f7708ee65f1a75479d55ebf37a137a8203ec7.webp?v=1782809016","width":2000},{"alt":null,"id":27637892743267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ac95e826bfafaad89d5c79f4da49691d71c9.webp?v=1782809017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ac95e826bfafaad89d5c79f4da49691d71c9.webp?v=1782809017","width":2000},{"alt":null,"id":27637893202019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d16387345736e817980510273f078b11d522b9ba.webp?v=1782809018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d16387345736e817980510273f078b11d522b9ba.webp?v=1782809018","width":2000},{"alt":null,"id":27637893660771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff37cbee24e41419553f67c99f1a2c8e1df753c9.webp?v=1782809018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff37cbee24e41419553f67c99f1a2c8e1df753c9.webp?v=1782809018","width":2000},{"alt":null,"id":27637894086755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43472914972771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132947361891,"product_id":7823775891555,"position":9,"created_at":"2026-06-30T16:43:36+08:00","updated_at":"2026-06-30T16:43:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018","variant_ids":[43472914972771]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-PD01","featured_media":{"alt":null,"id":27637894086755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472917594211,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132946444387,"product_id":7823775891555,"position":7,"created_at":"2026-06-30T16:43:35+08:00","updated_at":"2026-06-30T16:43:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d16387345736e817980510273f078b11d522b9ba.webp?v=1782809018","variant_ids":[43472917594211]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-PD01","featured_media":{"alt":null,"id":27637893202019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d16387345736e817980510273f078b11d522b9ba.webp?v=1782809018"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472917692515,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132945526883,"product_id":7823775891555,"position":5,"created_at":"2026-06-30T16:43:34+08:00","updated_at":"2026-06-30T16:43:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f7708ee65f1a75479d55ebf37a137a8203ec7.webp?v=1782809016","variant_ids":[43472917692515]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-PD01","featured_media":{"alt":null,"id":27637892284515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/699f7708ee65f1a75479d55ebf37a137a8203ec7.webp?v=1782809016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472917725283,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132945002595,"product_id":7823775891555,"position":4,"created_at":"2026-06-30T16:43:34+08:00","updated_at":"2026-06-30T16:43:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26cf13f0be9d6c926606c2ce200ed900e13ed69.webp?v=1782809015","variant_ids":[43472917725283]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-PD01","featured_media":{"alt":null,"id":27637891825763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26cf13f0be9d6c926606c2ce200ed900e13ed69.webp?v=1782809015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494433849443,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132945952867,"product_id":7823775891555,"position":6,"created_at":"2026-06-30T16:43:35+08:00","updated_at":"2026-06-30T16:43:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ac95e826bfafaad89d5c79f4da49691d71c9.webp?v=1782809017","variant_ids":[43494433849443]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-PD01","featured_media":{"alt":null,"id":27637892743267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5231ac95e826bfafaad89d5c79f4da49691d71c9.webp?v=1782809017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43472914972771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PD01","requires_shipping":true,"taxable":true,"featured_image":{"id":36132947361891,"product_id":7823775891555,"position":9,"created_at":"2026-06-30T16:43:36+08:00","updated_at":"2026-06-30T16:43:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018","variant_ids":[43472914972771]},"available":true,"name":"iPhone 15 Pro Max SolidX 迪士尼-皮克斯 Knock! 大眼仔 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-PD01","featured_media":{"alt":null,"id":27637894086755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86ae98e9ffd9c63332aab6e62e20f94940696ef.webp?v=1782809018"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }