$product = {"id":7920529637475,"title":"iPhone 13 Clear 咒術迴戰 澀谷事變咒式系列-咒術文字","handle":"iphone-13-jellytint-ptt21","description":null,"published_at":"2025-11-10T16:35:43+08:00","created_at":"2025-11-10T15:03:15+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":43828869365859,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT21","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750446691,"product_id":7920529637475,"position":12,"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\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694","variant_ids":[43828869365859]},"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-PTT21","featured_media":{"alt":null,"id":27629993394275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828872544355,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PTT21","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750250083,"product_id":7920529637475,"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\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_67cba7c1-048e-4f2c-bbc4-84667a23665d.webp?v=1782717694","variant_ids":[43828872544355]},"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-PTT21","featured_media":{"alt":null,"id":27629993197667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_67cba7c1-048e-4f2c-bbc4-84667a23665d.webp?v=1782717694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828872577123,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PTT21","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750708835,"product_id":7920529637475,"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\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_4d247371-97dc-493a-9e90-f909472ccf67.webp?v=1782717695","variant_ids":[43828872577123]},"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-PTT21","featured_media":{"alt":null,"id":27629993656419,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_4d247371-97dc-493a-9e90-f909472ccf67.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\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f.webp?v=1762758201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c.webp?v=1762758202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2876e9faf9c3096d6b395a8377718d073a36792.webp?v=1762758202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0.webp?v=1762758203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_f5a581fe-99d6-44e2-8842-e6b79d856f75.webp?v=1782265101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_8b162454-083a-4731-9ee9-298c61149377.webp?v=1782265101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_8ca0cb03-927e-47fa-b3f4-7630f12d9e98.webp?v=1782265102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_8e11fb9b-4fcb-46c6-bcc6-0ea9cc31630f.webp?v=1782291270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_b32f484c-6b2d-4036-a16f-15a72e8c111e.webp?v=1782291271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_1ff7676b-d69f-48e0-a737-0c4ff4a6d81f.webp?v=1782291272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_67cba7c1-048e-4f2c-bbc4-84667a23665d.webp?v=1782717694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_4d247371-97dc-493a-9e90-f909472ccf67.webp?v=1782717695"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f.webp?v=1762758201","options":["color"],"media":[{"alt":null,"id":26347778670691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f.webp?v=1762758201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f.webp?v=1762758201","width":2000},{"alt":null,"id":26347778736227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c.webp?v=1762758202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c.webp?v=1762758202","width":2000},{"alt":null,"id":26347778801763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2876e9faf9c3096d6b395a8377718d073a36792.webp?v=1762758202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2876e9faf9c3096d6b395a8377718d073a36792.webp?v=1762758202","width":2000},{"alt":null,"id":26347778867299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0.webp?v=1762758203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0.webp?v=1762758203","width":2000},{"alt":null,"id":27586960687203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_f5a581fe-99d6-44e2-8842-e6b79d856f75.webp?v=1782265101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_f5a581fe-99d6-44e2-8842-e6b79d856f75.webp?v=1782265101","width":2000},{"alt":null,"id":27586961506403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_8b162454-083a-4731-9ee9-298c61149377.webp?v=1782265101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_8b162454-083a-4731-9ee9-298c61149377.webp?v=1782265101","width":2000},{"alt":null,"id":27586962325603,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_8ca0cb03-927e-47fa-b3f4-7630f12d9e98.webp?v=1782265102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_8ca0cb03-927e-47fa-b3f4-7630f12d9e98.webp?v=1782265102","width":2000},{"alt":null,"id":27594573840483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_8e11fb9b-4fcb-46c6-bcc6-0ea9cc31630f.webp?v=1782291270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_8e11fb9b-4fcb-46c6-bcc6-0ea9cc31630f.webp?v=1782291270","width":2000},{"alt":null,"id":27594575085667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_b32f484c-6b2d-4036-a16f-15a72e8c111e.webp?v=1782291271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_b32f484c-6b2d-4036-a16f-15a72e8c111e.webp?v=1782291271","width":2000},{"alt":null,"id":27594575413347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_1ff7676b-d69f-48e0-a737-0c4ff4a6d81f.webp?v=1782291272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_1ff7676b-d69f-48e0-a737-0c4ff4a6d81f.webp?v=1782291272","width":2000},{"alt":null,"id":27629993197667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_67cba7c1-048e-4f2c-bbc4-84667a23665d.webp?v=1782717694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_67cba7c1-048e-4f2c-bbc4-84667a23665d.webp?v=1782717694","width":2000},{"alt":null,"id":27629993394275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694","width":2000},{"alt":null,"id":27629993656419,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_4d247371-97dc-493a-9e90-f909472ccf67.webp?v=1782717695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_4d247371-97dc-493a-9e90-f909472ccf67.webp?v=1782717695","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828869365859,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT21","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750446691,"product_id":7920529637475,"position":12,"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\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694","variant_ids":[43828869365859]},"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-PTT21","featured_media":{"alt":null,"id":27629993394275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828872544355,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PTT21","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750250083,"product_id":7920529637475,"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\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_67cba7c1-048e-4f2c-bbc4-84667a23665d.webp?v=1782717694","variant_ids":[43828872544355]},"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-PTT21","featured_media":{"alt":null,"id":27629993197667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b928d125f4a54c25ac0640e24e2f48710b0cb6d0_67cba7c1-048e-4f2c-bbc4-84667a23665d.webp?v=1782717694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828872577123,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PTT21","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750708835,"product_id":7920529637475,"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\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_4d247371-97dc-493a-9e90-f909472ccf67.webp?v=1782717695","variant_ids":[43828872577123]},"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-PTT21","featured_media":{"alt":null,"id":27629993656419,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae7cd79cbaf00e7a32ffa487ba3862c10042a80f_4d247371-97dc-493a-9e90-f909472ccf67.webp?v=1782717695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828869365859,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT21","requires_shipping":true,"taxable":true,"featured_image":{"id":36124750446691,"product_id":7920529637475,"position":12,"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\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694","variant_ids":[43828869365859]},"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-PTT21","featured_media":{"alt":null,"id":27629993394275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab1ebad891e0d90573a988a0989ed4faae53096c_6cfa6042-c832-4848-8b2d-bfd2125dc9db.webp?v=1782717694"}},"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: "停產" }