$product = {"id":4509068361827,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White)","handle":"iphone-8-solidsuit-classic-xk20","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-03-18T17:30:12+08:00","created_at":"2020-03-18T16:02:31+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":33369987711075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK20","requires_shipping":true,"taxable":true,"featured_image":{"id":36480533987427,"product_id":4509068361827,"position":14,"created_at":"2026-08-04T19:01:18+08:00","updated_at":"2026-08-04T19:01:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280","variant_ids":[33369987711075]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White) - 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-XK20","featured_media":{"alt":null,"id":27983852863587,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987743843,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK20","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530022499,"product_id":4509068361827,"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\/2c2e444f09f9a08556a5cedf9b375e6426037706_8e3ea58a-a89d-4872-bba9-eae910db60b9.webp?v=1785841270","variant_ids":[33369987743843]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White) - 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-XK20","featured_media":{"alt":null,"id":27983848898659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706_8e3ea58a-a89d-4872-bba9-eae910db60b9.webp?v=1785841270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306876219491,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK20","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532349027,"product_id":4509068361827,"position":12,"created_at":"2026-08-04T19:01:14+08:00","updated_at":"2026-08-04T19:01:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf_59909272-fec9-40e5-b1fa-84236aefbf6b.webp?v=1785841276","variant_ids":[40306876219491]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White) - 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-XK20","featured_media":{"alt":null,"id":27983851225187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf_59909272-fec9-40e5-b1fa-84236aefbf6b.webp?v=1785841276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK20_9dc4a3eb-05eb-44e5-addc-1aef7f603bca.png?v=1679988269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2d0275ceb180e8b85f9132a3b2dc13ac48f358.webp?v=1784001464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf.webp?v=1784001465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bdeb4bf779c745f8d927975f19a61b51601146.webp?v=1784001467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706.webp?v=1784001468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e9131e3206a964d9525c2ded198a6551ddf90d.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a88d43356c6253f18e9cdf43d0a4bb01801d581.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64.webp?v=1784001471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706_8e3ea58a-a89d-4872-bba9-eae910db60b9.webp?v=1785841270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bdeb4bf779c745f8d927975f19a61b51601146_c1fa2f0c-7552-4aa7-9d06-de5b78685218.webp?v=1785841272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e9131e3206a964d9525c2ded198a6551ddf90d_c162c3f8-8fb9-41bf-99f1-39015416372b.webp?v=1785841274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf_59909272-fec9-40e5-b1fa-84236aefbf6b.webp?v=1785841276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2d0275ceb180e8b85f9132a3b2dc13ac48f358_6efa511d-2b22-4e28-9386-9c8b9267232a.webp?v=1785841278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK20_9dc4a3eb-05eb-44e5-addc-1aef7f603bca.png?v=1679988269","options":["color"],"media":[{"alt":null,"id":22295350968419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK20_9dc4a3eb-05eb-44e5-addc-1aef7f603bca.png?v=1679988269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK20_9dc4a3eb-05eb-44e5-addc-1aef7f603bca.png?v=1679988269","width":2000},{"alt":null,"id":27760439197795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2d0275ceb180e8b85f9132a3b2dc13ac48f358.webp?v=1784001464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2d0275ceb180e8b85f9132a3b2dc13ac48f358.webp?v=1784001464","width":2000},{"alt":null,"id":27760439525475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf.webp?v=1784001465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf.webp?v=1784001465","width":2000},{"alt":null,"id":27760440246371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bdeb4bf779c745f8d927975f19a61b51601146.webp?v=1784001467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bdeb4bf779c745f8d927975f19a61b51601146.webp?v=1784001467","width":2000},{"alt":null,"id":27760440836195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706.webp?v=1784001468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706.webp?v=1784001468","width":2000},{"alt":null,"id":27760441163875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e9131e3206a964d9525c2ded198a6551ddf90d.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e9131e3206a964d9525c2ded198a6551ddf90d.webp?v=1784001469","width":2000},{"alt":null,"id":27760441753699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a88d43356c6253f18e9cdf43d0a4bb01801d581.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a88d43356c6253f18e9cdf43d0a4bb01801d581.webp?v=1784001469","width":2000},{"alt":null,"id":27760443621475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64.webp?v=1784001471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64.webp?v=1784001471","width":2000},{"alt":null,"id":27983848898659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706_8e3ea58a-a89d-4872-bba9-eae910db60b9.webp?v=1785841270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706_8e3ea58a-a89d-4872-bba9-eae910db60b9.webp?v=1785841270","width":2000},{"alt":null,"id":27983849619555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bdeb4bf779c745f8d927975f19a61b51601146_c1fa2f0c-7552-4aa7-9d06-de5b78685218.webp?v=1785841272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bdeb4bf779c745f8d927975f19a61b51601146_c1fa2f0c-7552-4aa7-9d06-de5b78685218.webp?v=1785841272","width":2000},{"alt":null,"id":27983850307683,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e9131e3206a964d9525c2ded198a6551ddf90d_c162c3f8-8fb9-41bf-99f1-39015416372b.webp?v=1785841274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e9131e3206a964d9525c2ded198a6551ddf90d_c162c3f8-8fb9-41bf-99f1-39015416372b.webp?v=1785841274","width":2000},{"alt":null,"id":27983851225187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf_59909272-fec9-40e5-b1fa-84236aefbf6b.webp?v=1785841276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf_59909272-fec9-40e5-b1fa-84236aefbf6b.webp?v=1785841276","width":2000},{"alt":null,"id":27983851946083,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2d0275ceb180e8b85f9132a3b2dc13ac48f358_6efa511d-2b22-4e28-9386-9c8b9267232a.webp?v=1785841278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2d0275ceb180e8b85f9132a3b2dc13ac48f358_6efa511d-2b22-4e28-9386-9c8b9267232a.webp?v=1785841278","width":2000},{"alt":null,"id":27983852863587,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"}; $isMerge = null; $variants = [{"id":33369987711075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK20","requires_shipping":true,"taxable":true,"featured_image":{"id":36480533987427,"product_id":4509068361827,"position":14,"created_at":"2026-08-04T19:01:18+08:00","updated_at":"2026-08-04T19:01:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280","variant_ids":[33369987711075]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White) - 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-XK20","featured_media":{"alt":null,"id":27983852863587,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987743843,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK20","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530022499,"product_id":4509068361827,"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\/2c2e444f09f9a08556a5cedf9b375e6426037706_8e3ea58a-a89d-4872-bba9-eae910db60b9.webp?v=1785841270","variant_ids":[33369987743843]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White) - 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-XK20","featured_media":{"alt":null,"id":27983848898659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c2e444f09f9a08556a5cedf9b375e6426037706_8e3ea58a-a89d-4872-bba9-eae910db60b9.webp?v=1785841270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306876219491,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK20","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532349027,"product_id":4509068361827,"position":12,"created_at":"2026-08-04T19:01:14+08:00","updated_at":"2026-08-04T19:01:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf_59909272-fec9-40e5-b1fa-84236aefbf6b.webp?v=1785841276","variant_ids":[40306876219491]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White) - 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-XK20","featured_media":{"alt":null,"id":27983851225187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76cec71dea86135fbd1656805cafae751d78dbf_59909272-fec9-40e5-b1fa-84236aefbf6b.webp?v=1785841276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":33369987711075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK20","requires_shipping":true,"taxable":true,"featured_image":{"id":36480533987427,"product_id":4509068361827,"position":14,"created_at":"2026-08-04T19:01:18+08:00","updated_at":"2026-08-04T19:01:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280","variant_ids":[33369987711075]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (White) - 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-XK20","featured_media":{"alt":null,"id":27983852863587,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a02e3efd277c0208be23390f9844b99bd96e64_c69fe523-7801-46a2-8e97-dfd850236922.webp?v=1785841280"}},"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: "停產" }