$product = {"id":7920519938147,"title":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 澀谷事變戰鬥系列-伏黑惠","handle":"iphone-17-pro-jellytint-magsafe-with-capture-button-ptt13","description":null,"published_at":"2025-11-10T16:36:41+08:00","created_at":"2025-11-10T15:01:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 17 Pro","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":43828846067811,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013524M-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578690659,"product_id":7920519938147,"position":12,"created_at":"2026-06-29T16:06:46+08:00","updated_at":"2026-06-29T16:06:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409","variant_ids":[43828846067811]},"available":true,"name":"iPhone 17 Pro 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":"MJB013524M-PTT13","featured_media":{"alt":null,"id":27630820720739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828848918627,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013520G-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578559587,"product_id":7920519938147,"position":11,"created_at":"2026-06-29T16:06:46+08:00","updated_at":"2026-06-29T16:06:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_e5393235-2026-4343-9bcf-6d139305082b.webp?v=1782720408","variant_ids":[43828848918627]},"available":true,"name":"iPhone 17 Pro 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":"MJB013520G-PTT13","featured_media":{"alt":null,"id":27630820589667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_e5393235-2026-4343-9bcf-6d139305082b.webp?v=1782720408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828848951395,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013524L-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578395747,"product_id":7920519938147,"position":10,"created_at":"2026-06-29T16:06:45+08:00","updated_at":"2026-06-29T16:06:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_8a96b6c4-04c8-4439-8c6f-12ed165e510f.webp?v=1782720408","variant_ids":[43828848951395]},"available":true,"name":"iPhone 17 Pro 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":"MJB013524L-PTT13","featured_media":{"alt":null,"id":27630820425827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_8a96b6c4-04c8-4439-8c6f-12ed165e510f.webp?v=1782720408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a.webp?v=1762758109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7.webp?v=1762758110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309.webp?v=1762758110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_b9543e96-4de8-497e-9d2c-1bb8554abcc4.webp?v=1782267424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_862847ed-b821-4969-9386-8eeeabc80cee.webp?v=1782267425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_75fccd59-0e89-4f43-823e-203286c0053a.webp?v=1782267426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_8201134c-9a4f-4ac1-8bb5-b67c3840a177.webp?v=1782292320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_7060f3e5-04d5-4d39-a16e-e58033392cd5.webp?v=1782292320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_d5210fc0-0ae7-4001-b1b7-ee49316e433a.webp?v=1782292321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_8a96b6c4-04c8-4439-8c6f-12ed165e510f.webp?v=1782720408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_e5393235-2026-4343-9bcf-6d139305082b.webp?v=1782720408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a.webp?v=1762758109","options":["color"],"media":[{"alt":null,"id":26347758387299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a.webp?v=1762758109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a.webp?v=1762758109","width":2000},{"alt":null,"id":26347758682211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7.webp?v=1762758110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7.webp?v=1762758110","width":2000},{"alt":null,"id":26347758878819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309.webp?v=1762758110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309.webp?v=1762758110","width":2000},{"alt":null,"id":27587965812835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_b9543e96-4de8-497e-9d2c-1bb8554abcc4.webp?v=1782267424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_b9543e96-4de8-497e-9d2c-1bb8554abcc4.webp?v=1782267424","width":2000},{"alt":null,"id":27587966402659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_862847ed-b821-4969-9386-8eeeabc80cee.webp?v=1782267425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_862847ed-b821-4969-9386-8eeeabc80cee.webp?v=1782267425","width":2000},{"alt":null,"id":27587966599267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_75fccd59-0e89-4f43-823e-203286c0053a.webp?v=1782267426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_75fccd59-0e89-4f43-823e-203286c0053a.webp?v=1782267426","width":2000},{"alt":null,"id":27594874060899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_8201134c-9a4f-4ac1-8bb5-b67c3840a177.webp?v=1782292320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_8201134c-9a4f-4ac1-8bb5-b67c3840a177.webp?v=1782292320","width":2000},{"alt":null,"id":27594874519651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_7060f3e5-04d5-4d39-a16e-e58033392cd5.webp?v=1782292320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_7060f3e5-04d5-4d39-a16e-e58033392cd5.webp?v=1782292320","width":2000},{"alt":null,"id":27594874716259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_d5210fc0-0ae7-4001-b1b7-ee49316e433a.webp?v=1782292321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_d5210fc0-0ae7-4001-b1b7-ee49316e433a.webp?v=1782292321","width":2000},{"alt":null,"id":27630820425827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_8a96b6c4-04c8-4439-8c6f-12ed165e510f.webp?v=1782720408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_8a96b6c4-04c8-4439-8c6f-12ed165e510f.webp?v=1782720408","width":2000},{"alt":null,"id":27630820589667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_e5393235-2026-4343-9bcf-6d139305082b.webp?v=1782720408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_e5393235-2026-4343-9bcf-6d139305082b.webp?v=1782720408","width":2000},{"alt":null,"id":27630820720739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828846067811,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013524M-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578690659,"product_id":7920519938147,"position":12,"created_at":"2026-06-29T16:06:46+08:00","updated_at":"2026-06-29T16:06:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409","variant_ids":[43828846067811]},"available":true,"name":"iPhone 17 Pro 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":"MJB013524M-PTT13","featured_media":{"alt":null,"id":27630820720739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828848918627,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013520G-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578559587,"product_id":7920519938147,"position":11,"created_at":"2026-06-29T16:06:46+08:00","updated_at":"2026-06-29T16:06:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_e5393235-2026-4343-9bcf-6d139305082b.webp?v=1782720408","variant_ids":[43828848918627]},"available":true,"name":"iPhone 17 Pro 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":"MJB013520G-PTT13","featured_media":{"alt":null,"id":27630820589667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf7f17daf531f5c4108534d4d77d526721c7ec7_e5393235-2026-4343-9bcf-6d139305082b.webp?v=1782720408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828848951395,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013524L-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578395747,"product_id":7920519938147,"position":10,"created_at":"2026-06-29T16:06:45+08:00","updated_at":"2026-06-29T16:06:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_8a96b6c4-04c8-4439-8c6f-12ed165e510f.webp?v=1782720408","variant_ids":[43828848951395]},"available":true,"name":"iPhone 17 Pro 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":"MJB013524L-PTT13","featured_media":{"alt":null,"id":27630820425827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52f4bd9026a7a9ba9867e6a7902567f62c1888a_8a96b6c4-04c8-4439-8c6f-12ed165e510f.webp?v=1782720408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828846067811,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013524M-PTT13","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578690659,"product_id":7920519938147,"position":12,"created_at":"2026-06-29T16:06:46+08:00","updated_at":"2026-06-29T16:06:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409","variant_ids":[43828846067811]},"available":true,"name":"iPhone 17 Pro 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":"MJB013524M-PTT13","featured_media":{"alt":null,"id":27630820720739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d96da6a6bf24d8c371c7d7e119aee044dd77309_6ebac4c0-53d3-46e9-9217-63b6d11d1afc.webp?v=1782720409"}},"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: "停產" }