$product = {"id":7920645341283,"title":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專","handle":"iphone-15-pro-max-jellytint-ptt20","description":null,"published_at":"2025-11-10T16:17:31+08:00","created_at":"2025-11-10T16:02:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15 Pro Max","merge","reseller-jujutsu-kaisen"],"price":128000,"price_min":128000,"price_max":128000,"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":43829289812067,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-PTT20","requires_shipping":true,"taxable":true,"featured_image":{"id":36125180166243,"product_id":7920645341283,"position":11,"created_at":"2026-06-29T15:44:23+08:00","updated_at":"2026-06-29T15:44:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064","variant_ids":[43829289812067]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-PTT20","featured_media":{"alt":null,"id":27630422949987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829291352163,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-PTT20","requires_shipping":true,"taxable":true,"featured_image":{"id":36125180362851,"product_id":7920645341283,"position":12,"created_at":"2026-06-29T15:44:23+08:00","updated_at":"2026-06-29T15:44:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_2d612316-c5f4-4fda-b728-14974f478bd9.webp?v=1782719065","variant_ids":[43829291352163]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-PTT20","featured_media":{"alt":null,"id":27630423146595,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_2d612316-c5f4-4fda-b728-14974f478bd9.webp?v=1782719065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829291384931,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-PTT20","requires_shipping":true,"taxable":true,"featured_image":{"id":36125180723299,"product_id":7920645341283,"position":13,"created_at":"2026-06-29T15:44:24+08:00","updated_at":"2026-06-29T15:44:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_cfd68b8e-891d-43a0-862f-01e0913df8b2.webp?v=1782719066","variant_ids":[43829291384931]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-PTT20","featured_media":{"alt":null,"id":27630423507043,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_cfd68b8e-891d-43a0-862f-01e0913df8b2.webp?v=1782719066"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5.webp?v=1762761785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db32b9877227f8bed26dc89f7fb046203edb5712.webp?v=1762761786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd.webp?v=1762761787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0.webp?v=1762761787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_a9f55dcd-6488-4ffb-8063-711fb48601aa.webp?v=1782266239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_bc29b114-c214-4e03-a85c-161235826016.webp?v=1782266239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_f0227925-39b8-4962-ba55-c5c09a021570.webp?v=1782266240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_5148e3e2-3b6b-4e04-93be-6edbcc9c9c81.webp?v=1782291781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_0d8f3dae-88bf-463b-91d2-e8369fd348e9.webp?v=1782291781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_f8276625-7679-4f5b-a4c3-226a9ff8db93.webp?v=1782291782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_2d612316-c5f4-4fda-b728-14974f478bd9.webp?v=1782719065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_cfd68b8e-891d-43a0-862f-01e0913df8b2.webp?v=1782719066"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5.webp?v=1762761785","options":["color"],"media":[{"alt":null,"id":26348274253923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5.webp?v=1762761785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5.webp?v=1762761785","width":2000},{"alt":null,"id":26348274483299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db32b9877227f8bed26dc89f7fb046203edb5712.webp?v=1762761786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db32b9877227f8bed26dc89f7fb046203edb5712.webp?v=1762761786","width":2000},{"alt":null,"id":26348274745443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd.webp?v=1762761787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd.webp?v=1762761787","width":2000},{"alt":null,"id":26348275007587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0.webp?v=1762761787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0.webp?v=1762761787","width":2000},{"alt":null,"id":27587452239971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_a9f55dcd-6488-4ffb-8063-711fb48601aa.webp?v=1782266239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_a9f55dcd-6488-4ffb-8063-711fb48601aa.webp?v=1782266239","width":2000},{"alt":null,"id":27587452338275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_bc29b114-c214-4e03-a85c-161235826016.webp?v=1782266239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_bc29b114-c214-4e03-a85c-161235826016.webp?v=1782266239","width":2000},{"alt":null,"id":27587452534883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_f0227925-39b8-4962-ba55-c5c09a021570.webp?v=1782266240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_f0227925-39b8-4962-ba55-c5c09a021570.webp?v=1782266240","width":2000},{"alt":null,"id":27594728439907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_5148e3e2-3b6b-4e04-93be-6edbcc9c9c81.webp?v=1782291781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_5148e3e2-3b6b-4e04-93be-6edbcc9c9c81.webp?v=1782291781","width":2000},{"alt":null,"id":27594728505443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_0d8f3dae-88bf-463b-91d2-e8369fd348e9.webp?v=1782291781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_0d8f3dae-88bf-463b-91d2-e8369fd348e9.webp?v=1782291781","width":2000},{"alt":null,"id":27594728702051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_f8276625-7679-4f5b-a4c3-226a9ff8db93.webp?v=1782291782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_f8276625-7679-4f5b-a4c3-226a9ff8db93.webp?v=1782291782","width":2000},{"alt":null,"id":27630422949987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064","width":2000},{"alt":null,"id":27630423146595,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_2d612316-c5f4-4fda-b728-14974f478bd9.webp?v=1782719065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_2d612316-c5f4-4fda-b728-14974f478bd9.webp?v=1782719065","width":2000},{"alt":null,"id":27630423507043,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_cfd68b8e-891d-43a0-862f-01e0913df8b2.webp?v=1782719066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_cfd68b8e-891d-43a0-862f-01e0913df8b2.webp?v=1782719066","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43829289812067,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-PTT20","requires_shipping":true,"taxable":true,"featured_image":{"id":36125180166243,"product_id":7920645341283,"position":11,"created_at":"2026-06-29T15:44:23+08:00","updated_at":"2026-06-29T15:44:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064","variant_ids":[43829289812067]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-PTT20","featured_media":{"alt":null,"id":27630422949987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829291352163,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-PTT20","requires_shipping":true,"taxable":true,"featured_image":{"id":36125180362851,"product_id":7920645341283,"position":12,"created_at":"2026-06-29T15:44:23+08:00","updated_at":"2026-06-29T15:44:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_2d612316-c5f4-4fda-b728-14974f478bd9.webp?v=1782719065","variant_ids":[43829291352163]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-PTT20","featured_media":{"alt":null,"id":27630423146595,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e8e822d0bda129a6d760bb0197e8fdd0c05f5_2d612316-c5f4-4fda-b728-14974f478bd9.webp?v=1782719065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829291384931,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-PTT20","requires_shipping":true,"taxable":true,"featured_image":{"id":36125180723299,"product_id":7920645341283,"position":13,"created_at":"2026-06-29T15:44:24+08:00","updated_at":"2026-06-29T15:44:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_cfd68b8e-891d-43a0-862f-01e0913df8b2.webp?v=1782719066","variant_ids":[43829291384931]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-PTT20","featured_media":{"alt":null,"id":27630423507043,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0305dc93edf7dac72fca64da0f721fbfec815cdd_cfd68b8e-891d-43a0-862f-01e0913df8b2.webp?v=1782719066"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43829289812067,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-PTT20","requires_shipping":true,"taxable":true,"featured_image":{"id":36125180166243,"product_id":7920645341283,"position":11,"created_at":"2026-06-29T15:44:23+08:00","updated_at":"2026-06-29T15:44:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064","variant_ids":[43829289812067]},"available":true,"name":"iPhone 15 Pro Max Clear 咒術迴戰 澀谷事變高校系列-咒術高專 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-PTT20","featured_media":{"alt":null,"id":27630422949987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c661b56abcc4097f60276f2b7ce452b6026306a0_28fdb6e9-5fd4-4143-a573-9dde1393c594.webp?v=1782719064"}},"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: "停產" }