$product = {"id":7920539762787,"title":"iPhone 13 Clear 咒術迴戰 澀谷事變戰鬥系列-七海建人","handle":"iphone-13-jellytint-ptt15","description":null,"published_at":"2025-11-10T16:34:30+08:00","created_at":"2025-11-10T15:05:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 13","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":43828897841251,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT15","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750676067,"product_id":7920539762787,"position":12,"created_at":"2026-06-29T15:21:33+08:00","updated_at":"2026-06-29T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695","variant_ids":[43828897841251]},"available":true,"name":"iPhone 13 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":"CCN012600J-PTT15","featured_media":{"alt":null,"id":27629993623651,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828900135011,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PTT15","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750413923,"product_id":7920539762787,"position":11,"created_at":"2026-06-29T15:21:32+08:00","updated_at":"2026-06-29T15:21:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_81ca0d0a-f2db-4ca2-b4c8-ed6734517b9d.webp?v=1782717694","variant_ids":[43828900135011]},"available":true,"name":"iPhone 13 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":"CCN012600I-PTT15","featured_media":{"alt":null,"id":27629993361507,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_81ca0d0a-f2db-4ca2-b4c8-ed6734517b9d.webp?v=1782717694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828900167779,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PTT15","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750839907,"product_id":7920539762787,"position":13,"created_at":"2026-06-29T15:21:33+08:00","updated_at":"2026-06-29T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_b0dc1fe9-b079-4309-a97e-6cba34843473.webp?v=1782717695","variant_ids":[43828900167779]},"available":true,"name":"iPhone 13 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":"CCN012600G-PTT15","featured_media":{"alt":null,"id":27629993787491,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_b0dc1fe9-b079-4309-a97e-6cba34843473.webp?v=1782717695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78e9f99f0b84e64aae2221a576a950880ee86064.webp?v=1762758319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c.webp?v=1762758320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f.webp?v=1762758321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe.webp?v=1762758321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_54f4a434-8132-4cde-b5e3-f6e9bc44f224.webp?v=1782265101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_3aab37d0-92a5-4cf5-8c0a-a0349d4c0c6a.webp?v=1782265102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_c8c0a1eb-daad-4b35-8e6c-896e55efd35a.webp?v=1782265102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_7933b338-c6a4-42d6-bc65-e758d8e7e327.webp?v=1782291268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_5444aa0f-4055-4b39-8d95-d81deb47d1b2.webp?v=1782291270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_1f2f8f06-2275-46ae-8255-21bbc1ad6510.webp?v=1782291271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_81ca0d0a-f2db-4ca2-b4c8-ed6734517b9d.webp?v=1782717694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_b0dc1fe9-b079-4309-a97e-6cba34843473.webp?v=1782717695"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78e9f99f0b84e64aae2221a576a950880ee86064.webp?v=1762758319","options":["color"],"media":[{"alt":null,"id":26347804852323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78e9f99f0b84e64aae2221a576a950880ee86064.webp?v=1762758319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78e9f99f0b84e64aae2221a576a950880ee86064.webp?v=1762758319","width":2000},{"alt":null,"id":26347805147235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c.webp?v=1762758320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c.webp?v=1762758320","width":2000},{"alt":null,"id":26347805573219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f.webp?v=1762758321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f.webp?v=1762758321","width":2000},{"alt":null,"id":26347805769827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe.webp?v=1762758321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe.webp?v=1762758321","width":2000},{"alt":null,"id":27586961375331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_54f4a434-8132-4cde-b5e3-f6e9bc44f224.webp?v=1782265101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_54f4a434-8132-4cde-b5e3-f6e9bc44f224.webp?v=1782265101","width":2000},{"alt":null,"id":27586962161763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_3aab37d0-92a5-4cf5-8c0a-a0349d4c0c6a.webp?v=1782265102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_3aab37d0-92a5-4cf5-8c0a-a0349d4c0c6a.webp?v=1782265102","width":2000},{"alt":null,"id":27586962915427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_c8c0a1eb-daad-4b35-8e6c-896e55efd35a.webp?v=1782265102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_c8c0a1eb-daad-4b35-8e6c-896e55efd35a.webp?v=1782265102","width":2000},{"alt":null,"id":27594573774947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_7933b338-c6a4-42d6-bc65-e758d8e7e327.webp?v=1782291268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_7933b338-c6a4-42d6-bc65-e758d8e7e327.webp?v=1782291268","width":2000},{"alt":null,"id":27594574332003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_5444aa0f-4055-4b39-8d95-d81deb47d1b2.webp?v=1782291270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_5444aa0f-4055-4b39-8d95-d81deb47d1b2.webp?v=1782291270","width":2000},{"alt":null,"id":27594574757987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_1f2f8f06-2275-46ae-8255-21bbc1ad6510.webp?v=1782291271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_1f2f8f06-2275-46ae-8255-21bbc1ad6510.webp?v=1782291271","width":2000},{"alt":null,"id":27629993361507,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_81ca0d0a-f2db-4ca2-b4c8-ed6734517b9d.webp?v=1782717694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_81ca0d0a-f2db-4ca2-b4c8-ed6734517b9d.webp?v=1782717694","width":2000},{"alt":null,"id":27629993623651,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695","width":2000},{"alt":null,"id":27629993787491,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_b0dc1fe9-b079-4309-a97e-6cba34843473.webp?v=1782717695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_b0dc1fe9-b079-4309-a97e-6cba34843473.webp?v=1782717695","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828897841251,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT15","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750676067,"product_id":7920539762787,"position":12,"created_at":"2026-06-29T15:21:33+08:00","updated_at":"2026-06-29T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695","variant_ids":[43828897841251]},"available":true,"name":"iPhone 13 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":"CCN012600J-PTT15","featured_media":{"alt":null,"id":27629993623651,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828900135011,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PTT15","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750413923,"product_id":7920539762787,"position":11,"created_at":"2026-06-29T15:21:32+08:00","updated_at":"2026-06-29T15:21:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_81ca0d0a-f2db-4ca2-b4c8-ed6734517b9d.webp?v=1782717694","variant_ids":[43828900135011]},"available":true,"name":"iPhone 13 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":"CCN012600I-PTT15","featured_media":{"alt":null,"id":27629993361507,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d8fbd67eee44f47d8765b4dec22855d6316bfe_81ca0d0a-f2db-4ca2-b4c8-ed6734517b9d.webp?v=1782717694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828900167779,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PTT15","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750839907,"product_id":7920539762787,"position":13,"created_at":"2026-06-29T15:21:33+08:00","updated_at":"2026-06-29T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_b0dc1fe9-b079-4309-a97e-6cba34843473.webp?v=1782717695","variant_ids":[43828900167779]},"available":true,"name":"iPhone 13 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":"CCN012600G-PTT15","featured_media":{"alt":null,"id":27629993787491,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e23bb44032bd3e622b698053d8194a2c2877761f_b0dc1fe9-b079-4309-a97e-6cba34843473.webp?v=1782717695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828897841251,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT15","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750676067,"product_id":7920539762787,"position":12,"created_at":"2026-06-29T15:21:33+08:00","updated_at":"2026-06-29T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695","variant_ids":[43828897841251]},"available":true,"name":"iPhone 13 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":"CCN012600J-PTT15","featured_media":{"alt":null,"id":27629993623651,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c468f4898206d1575170ed9a1f64e908632a494c_b709aaf0-d484-4719-8caa-5875cdeb73e7.webp?v=1782717695"}},"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: "停產" }