$product = {"id":4509068460131,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密","handle":"iphone-8-solidsuit-classic-xk21","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-03-18T17:30:11+08:00","created_at":"2020-03-18T16:02:43+08:00","vendor":"Rhinoshield","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 8","merge","reseller-nasa"],"price":83000,"price_min":83000,"price_max":83000,"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":33369987842147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530120803,"product_id":4509068460131,"position":9,"created_at":"2026-08-04T19:01:09+08:00","updated_at":"2026-08-04T19:01:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270","variant_ids":[33369987842147]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK21","featured_media":{"alt":null,"id":27983848996963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987874915,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531529827,"product_id":4509068460131,"position":11,"created_at":"2026-08-04T19:01:12+08:00","updated_at":"2026-08-04T19:01:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704_8a56d011-80ae-47aa-bd28-35fcdffca42f.webp?v=1785841274","variant_ids":[33369987874915]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密 - White","public_title":"White","options":["White"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-XK21","featured_media":{"alt":null,"id":27983850405987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704_8a56d011-80ae-47aa-bd28-35fcdffca42f.webp?v=1785841274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306999787619,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530907235,"product_id":4509068460131,"position":10,"created_at":"2026-08-04T19:01:11+08:00","updated_at":"2026-08-04T19:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630_332881f3-0f12-4a64-b3c2-8632b33c2ba7.webp?v=1785841272","variant_ids":[40306999787619]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-XK21","featured_media":{"alt":null,"id":27983849750627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630_332881f3-0f12-4a64-b3c2-8632b33c2ba7.webp?v=1785841272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK21_27dcc5c8-c79f-47e5-a111-2f300b01dec2.png?v=1679985527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526.webp?v=1784001464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704.webp?v=1784001465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e3684af7dabaacd6b55747937f8fd91882195.webp?v=1784001466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0627271f2f4ca10bd867d0d2a8d3a59e43bad0f.webp?v=1784001467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2952392c4c809e694a9c198fe06fd4fdb23c8cef.webp?v=1784001468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d9c2632f6fa74e3231b390f345c8fc5c2d7052.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630_332881f3-0f12-4a64-b3c2-8632b33c2ba7.webp?v=1785841272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704_8a56d011-80ae-47aa-bd28-35fcdffca42f.webp?v=1785841274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e3684af7dabaacd6b55747937f8fd91882195_d5036ed4-3b53-48a2-9f23-ac33eed7a3da.webp?v=1785841277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2952392c4c809e694a9c198fe06fd4fdb23c8cef_4fc41346-ca4c-4183-b167-ceabe3dcffeb.webp?v=1785841279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d9c2632f6fa74e3231b390f345c8fc5c2d7052_bc51acc3-ac50-44a2-88fb-d94bca37f0d5.webp?v=1785841280"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK21_27dcc5c8-c79f-47e5-a111-2f300b01dec2.png?v=1679985527","options":["color"],"media":[{"alt":null,"id":22294985867363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK21_27dcc5c8-c79f-47e5-a111-2f300b01dec2.png?v=1679985527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK21_27dcc5c8-c79f-47e5-a111-2f300b01dec2.png?v=1679985527","width":2000},{"alt":null,"id":27760439263331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526.webp?v=1784001464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526.webp?v=1784001464","width":2000},{"alt":null,"id":27760439558243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704.webp?v=1784001465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704.webp?v=1784001465","width":2000},{"alt":null,"id":27760440082531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e3684af7dabaacd6b55747937f8fd91882195.webp?v=1784001466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e3684af7dabaacd6b55747937f8fd91882195.webp?v=1784001466","width":2000},{"alt":null,"id":27760440311907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0627271f2f4ca10bd867d0d2a8d3a59e43bad0f.webp?v=1784001467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0627271f2f4ca10bd867d0d2a8d3a59e43bad0f.webp?v=1784001467","width":2000},{"alt":null,"id":27760440934499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2952392c4c809e694a9c198fe06fd4fdb23c8cef.webp?v=1784001468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2952392c4c809e694a9c198fe06fd4fdb23c8cef.webp?v=1784001468","width":2000},{"alt":null,"id":27760441131107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d9c2632f6fa74e3231b390f345c8fc5c2d7052.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d9c2632f6fa74e3231b390f345c8fc5c2d7052.webp?v=1784001469","width":2000},{"alt":null,"id":27760441720931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630.webp?v=1784001469","width":2000},{"alt":null,"id":27983848996963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270","width":2000},{"alt":null,"id":27983849750627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630_332881f3-0f12-4a64-b3c2-8632b33c2ba7.webp?v=1785841272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630_332881f3-0f12-4a64-b3c2-8632b33c2ba7.webp?v=1785841272","width":2000},{"alt":null,"id":27983850405987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704_8a56d011-80ae-47aa-bd28-35fcdffca42f.webp?v=1785841274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704_8a56d011-80ae-47aa-bd28-35fcdffca42f.webp?v=1785841274","width":2000},{"alt":null,"id":27983851421795,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e3684af7dabaacd6b55747937f8fd91882195_d5036ed4-3b53-48a2-9f23-ac33eed7a3da.webp?v=1785841277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e3684af7dabaacd6b55747937f8fd91882195_d5036ed4-3b53-48a2-9f23-ac33eed7a3da.webp?v=1785841277","width":2000},{"alt":null,"id":27983852175459,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2952392c4c809e694a9c198fe06fd4fdb23c8cef_4fc41346-ca4c-4183-b167-ceabe3dcffeb.webp?v=1785841279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2952392c4c809e694a9c198fe06fd4fdb23c8cef_4fc41346-ca4c-4183-b167-ceabe3dcffeb.webp?v=1785841279","width":2000},{"alt":null,"id":27983853092963,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d9c2632f6fa74e3231b390f345c8fc5c2d7052_bc51acc3-ac50-44a2-88fb-d94bca37f0d5.webp?v=1785841280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30d9c2632f6fa74e3231b390f345c8fc5c2d7052_bc51acc3-ac50-44a2-88fb-d94bca37f0d5.webp?v=1785841280","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"}; $isMerge = null; $variants = [{"id":33369987842147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530120803,"product_id":4509068460131,"position":9,"created_at":"2026-08-04T19:01:09+08:00","updated_at":"2026-08-04T19:01:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270","variant_ids":[33369987842147]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK21","featured_media":{"alt":null,"id":27983848996963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987874915,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531529827,"product_id":4509068460131,"position":11,"created_at":"2026-08-04T19:01:12+08:00","updated_at":"2026-08-04T19:01:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704_8a56d011-80ae-47aa-bd28-35fcdffca42f.webp?v=1785841274","variant_ids":[33369987874915]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密 - White","public_title":"White","options":["White"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-XK21","featured_media":{"alt":null,"id":27983850405987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabfd49434388091dddc4ea35155c93b30782704_8a56d011-80ae-47aa-bd28-35fcdffca42f.webp?v=1785841274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306999787619,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530907235,"product_id":4509068460131,"position":10,"created_at":"2026-08-04T19:01:11+08:00","updated_at":"2026-08-04T19:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630_332881f3-0f12-4a64-b3c2-8632b33c2ba7.webp?v=1785841272","variant_ids":[40306999787619]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-XK21","featured_media":{"alt":null,"id":27983849750627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e37a98c247605fb732ba4ef22ea0dee8d7c630_332881f3-0f12-4a64-b3c2-8632b33c2ba7.webp?v=1785841272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":33369987842147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530120803,"product_id":4509068460131,"position":9,"created_at":"2026-08-04T19:01:09+08:00","updated_at":"2026-08-04T19:01:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270","variant_ids":[33369987842147]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 機密 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK21","featured_media":{"alt":null,"id":27983848996963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2cf609c8b06d262f576d3a474fb3e887421e526_dd207b74-66ab-4053-893b-7d04b4378aa3.webp?v=1785841270"}},"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: "停產" }