$product = {"id":7920554901603,"title":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠","handle":"iphone-17-pro-max-jellytint-magsafe-with-capture-button-ptt13","description":null,"published_at":"2025-11-10T16:32:07+08:00","created_at":"2025-11-10T15:09:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 17 Pro Max","merge","reseller-jujutsu-kaisen"],"price":148000,"price_min":148000,"price_max":148000,"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":43828958789731,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125599629411,"product_id":7920554901603,"position":10,"created_at":"2026-06-29T16:08:01+08:00","updated_at":"2026-06-29T16:08:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483","variant_ids":[43828958789731]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-PTT13","featured_media":{"alt":null,"id":27630841561187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828960919651,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013530G-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125600514147,"product_id":7920554901603,"position":12,"created_at":"2026-06-29T16:08:03+08:00","updated_at":"2026-06-29T16:08:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_8939b18f-24d0-45bb-b489-aa4df2b93644.webp?v=1782720485","variant_ids":[43828960919651]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013530G-PTT13","featured_media":{"alt":null,"id":27630842511459,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_8939b18f-24d0-45bb-b489-aa4df2b93644.webp?v=1782720485"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828960952419,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013534L-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125600088163,"product_id":7920554901603,"position":11,"created_at":"2026-06-29T16:08:02+08:00","updated_at":"2026-06-29T16:08:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_cc213e3a-f334-400e-bcc1-3efb29d0e17b.webp?v=1782720484","variant_ids":[43828960952419]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534L-PTT13","featured_media":{"alt":null,"id":27630842052707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_cc213e3a-f334-400e-bcc1-3efb29d0e17b.webp?v=1782720484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a.webp?v=1762758548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525.webp?v=1762758548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0.webp?v=1762758549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_5426d9a6-d35d-4568-8b59-9faf696e749f.webp?v=1782267506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_463583cb-a19f-4066-8d9c-abff47f3f9c5.webp?v=1782267508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_7f4edc35-6cff-4e69-9c82-6da196653fcb.webp?v=1782267508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_0c7e99c5-6612-4e4d-a933-714cdb7f71f1.webp?v=1782292343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_eb50cc1a-86d7-4630-ad26-78f2bc86ca3c.webp?v=1782292344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_6b0a7eaf-7bcb-413a-b57a-eac4229355fd.webp?v=1782292345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_cc213e3a-f334-400e-bcc1-3efb29d0e17b.webp?v=1782720484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_8939b18f-24d0-45bb-b489-aa4df2b93644.webp?v=1782720485"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a.webp?v=1762758548","options":["color"],"media":[{"alt":null,"id":26347863113827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a.webp?v=1762758548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a.webp?v=1762758548","width":2000},{"alt":null,"id":26347863572579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525.webp?v=1762758548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525.webp?v=1762758548","width":2000},{"alt":null,"id":26347863834723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0.webp?v=1762758549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0.webp?v=1762758549","width":2000},{"alt":null,"id":27588002316387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_5426d9a6-d35d-4568-8b59-9faf696e749f.webp?v=1782267506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_5426d9a6-d35d-4568-8b59-9faf696e749f.webp?v=1782267506","width":2000},{"alt":null,"id":27588002447459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_463583cb-a19f-4066-8d9c-abff47f3f9c5.webp?v=1782267508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_463583cb-a19f-4066-8d9c-abff47f3f9c5.webp?v=1782267508","width":2000},{"alt":null,"id":27588002938979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_7f4edc35-6cff-4e69-9c82-6da196653fcb.webp?v=1782267508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_7f4edc35-6cff-4e69-9c82-6da196653fcb.webp?v=1782267508","width":2000},{"alt":null,"id":27594879696995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_0c7e99c5-6612-4e4d-a933-714cdb7f71f1.webp?v=1782292343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_0c7e99c5-6612-4e4d-a933-714cdb7f71f1.webp?v=1782292343","width":2000},{"alt":null,"id":27594880286819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_eb50cc1a-86d7-4630-ad26-78f2bc86ca3c.webp?v=1782292344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_eb50cc1a-86d7-4630-ad26-78f2bc86ca3c.webp?v=1782292344","width":2000},{"alt":null,"id":27594880876643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_6b0a7eaf-7bcb-413a-b57a-eac4229355fd.webp?v=1782292345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_6b0a7eaf-7bcb-413a-b57a-eac4229355fd.webp?v=1782292345","width":2000},{"alt":null,"id":27630841561187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483","width":2000},{"alt":null,"id":27630842052707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_cc213e3a-f334-400e-bcc1-3efb29d0e17b.webp?v=1782720484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_cc213e3a-f334-400e-bcc1-3efb29d0e17b.webp?v=1782720484","width":2000},{"alt":null,"id":27630842511459,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_8939b18f-24d0-45bb-b489-aa4df2b93644.webp?v=1782720485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_8939b18f-24d0-45bb-b489-aa4df2b93644.webp?v=1782720485","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828958789731,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125599629411,"product_id":7920554901603,"position":10,"created_at":"2026-06-29T16:08:01+08:00","updated_at":"2026-06-29T16:08:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483","variant_ids":[43828958789731]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-PTT13","featured_media":{"alt":null,"id":27630841561187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828960919651,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013530G-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125600514147,"product_id":7920554901603,"position":12,"created_at":"2026-06-29T16:08:03+08:00","updated_at":"2026-06-29T16:08:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_8939b18f-24d0-45bb-b489-aa4df2b93644.webp?v=1782720485","variant_ids":[43828960919651]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013530G-PTT13","featured_media":{"alt":null,"id":27630842511459,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/815e8dbd21f6dcff382369712555e72bf9f9aac0_8939b18f-24d0-45bb-b489-aa4df2b93644.webp?v=1782720485"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828960952419,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013534L-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125600088163,"product_id":7920554901603,"position":11,"created_at":"2026-06-29T16:08:02+08:00","updated_at":"2026-06-29T16:08:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_cc213e3a-f334-400e-bcc1-3efb29d0e17b.webp?v=1782720484","variant_ids":[43828960952419]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534L-PTT13","featured_media":{"alt":null,"id":27630842052707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfad795e429ba3f8d585e9ec77ada42b3aacc68a_cc213e3a-f334-400e-bcc1-3efb29d0e17b.webp?v=1782720484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828958789731,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125599629411,"product_id":7920554901603,"position":10,"created_at":"2026-06-29T16:08:01+08:00","updated_at":"2026-06-29T16:08:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483","variant_ids":[43828958789731]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-PTT13","featured_media":{"alt":null,"id":27630841561187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5a28ee4f3eade646c80d76906f66f651af0d525_888dba4c-dbdc-4600-9e59-e5bfa328da74.webp?v=1782720483"}},"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: "停產" }