$product = {"id":4509068656739,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2","handle":"iphone-8-solidsuit-classic-xk23","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-03-18T17:30:10+08:00","created_at":"2020-03-18T16:03:12+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":33369988104291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK23","requires_shipping":true,"taxable":true,"featured_image":{"id":36480533921891,"product_id":4509068656739,"position":13,"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\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280","variant_ids":[33369988104291]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK23","featured_media":{"alt":null,"id":27983852798051,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369988137059,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK23","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530579555,"product_id":4509068656739,"position":9,"created_at":"2026-08-04T19:01:10+08:00","updated_at":"2026-08-04T19:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748_07f51068-4e29-4219-8e71-8c4930da1780.webp?v=1785841272","variant_ids":[33369988137059]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2 - 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-XK23","featured_media":{"alt":null,"id":27983849455715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748_07f51068-4e29-4219-8e71-8c4930da1780.webp?v=1785841272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306553716835,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK23","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531234915,"product_id":4509068656739,"position":10,"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\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc_b70e4e35-1b0b-4b72-9ab0-cca8c68c931b.webp?v=1785841274","variant_ids":[40306553716835]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2 - 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-XK23","featured_media":{"alt":null,"id":27983850111075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc_b70e4e35-1b0b-4b72-9ab0-cca8c68c931b.webp?v=1785841274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK23_e7ce2574-1f0b-4968-9150-aed85d0ad964.png?v=1679984445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2411955633668ff037e8474a6fb5b6e283fa70.webp?v=1784001466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc.webp?v=1784001468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77c02c0eb7732ce559612e8ce03372099149b8e.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4844259e084107fbd938903b88972918ae05fcfc.webp?v=1784001470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8807afcef678572af7eae5262bdc49ad08c60507.webp?v=1784001472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748.webp?v=1784001473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253.webp?v=1784001474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748_07f51068-4e29-4219-8e71-8c4930da1780.webp?v=1785841272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc_b70e4e35-1b0b-4b72-9ab0-cca8c68c931b.webp?v=1785841274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8807afcef678572af7eae5262bdc49ad08c60507_caeab9b5-19cc-48c1-99cf-eb355cfab303.webp?v=1785841275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77c02c0eb7732ce559612e8ce03372099149b8e_d0d326dc-1669-4020-908b-2e336f64a909.webp?v=1785841278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4844259e084107fbd938903b88972918ae05fcfc_6e9a388a-f65c-4f56-acbb-d43f3b72ec17.webp?v=1785841281"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK23_e7ce2574-1f0b-4968-9150-aed85d0ad964.png?v=1679984445","options":["color"],"media":[{"alt":null,"id":22294887891043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK23_e7ce2574-1f0b-4968-9150-aed85d0ad964.png?v=1679984445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK23_e7ce2574-1f0b-4968-9150-aed85d0ad964.png?v=1679984445","width":2000},{"alt":null,"id":27760439787619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2411955633668ff037e8474a6fb5b6e283fa70.webp?v=1784001466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2411955633668ff037e8474a6fb5b6e283fa70.webp?v=1784001466","width":2000},{"alt":null,"id":27760440574051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc.webp?v=1784001468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc.webp?v=1784001468","width":2000},{"alt":null,"id":27760441229411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77c02c0eb7732ce559612e8ce03372099149b8e.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77c02c0eb7732ce559612e8ce03372099149b8e.webp?v=1784001469","width":2000},{"alt":null,"id":27760442048611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4844259e084107fbd938903b88972918ae05fcfc.webp?v=1784001470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4844259e084107fbd938903b88972918ae05fcfc.webp?v=1784001470","width":2000},{"alt":null,"id":27760443457635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8807afcef678572af7eae5262bdc49ad08c60507.webp?v=1784001472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8807afcef678572af7eae5262bdc49ad08c60507.webp?v=1784001472","width":2000},{"alt":null,"id":27760444538979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748.webp?v=1784001473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748.webp?v=1784001473","width":2000},{"alt":null,"id":27760445489251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253.webp?v=1784001474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253.webp?v=1784001474","width":2000},{"alt":null,"id":27983849455715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748_07f51068-4e29-4219-8e71-8c4930da1780.webp?v=1785841272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748_07f51068-4e29-4219-8e71-8c4930da1780.webp?v=1785841272","width":2000},{"alt":null,"id":27983850111075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc_b70e4e35-1b0b-4b72-9ab0-cca8c68c931b.webp?v=1785841274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc_b70e4e35-1b0b-4b72-9ab0-cca8c68c931b.webp?v=1785841274","width":2000},{"alt":null,"id":27983851094115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8807afcef678572af7eae5262bdc49ad08c60507_caeab9b5-19cc-48c1-99cf-eb355cfab303.webp?v=1785841275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8807afcef678572af7eae5262bdc49ad08c60507_caeab9b5-19cc-48c1-99cf-eb355cfab303.webp?v=1785841275","width":2000},{"alt":null,"id":27983851782243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77c02c0eb7732ce559612e8ce03372099149b8e_d0d326dc-1669-4020-908b-2e336f64a909.webp?v=1785841278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77c02c0eb7732ce559612e8ce03372099149b8e_d0d326dc-1669-4020-908b-2e336f64a909.webp?v=1785841278","width":2000},{"alt":null,"id":27983852798051,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280","width":2000},{"alt":null,"id":27983853387875,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4844259e084107fbd938903b88972918ae05fcfc_6e9a388a-f65c-4f56-acbb-d43f3b72ec17.webp?v=1785841281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4844259e084107fbd938903b88972918ae05fcfc_6e9a388a-f65c-4f56-acbb-d43f3b72ec17.webp?v=1785841281","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"}; $isMerge = null; $variants = [{"id":33369988104291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK23","requires_shipping":true,"taxable":true,"featured_image":{"id":36480533921891,"product_id":4509068656739,"position":13,"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\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280","variant_ids":[33369988104291]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK23","featured_media":{"alt":null,"id":27983852798051,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369988137059,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK23","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530579555,"product_id":4509068656739,"position":9,"created_at":"2026-08-04T19:01:10+08:00","updated_at":"2026-08-04T19:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748_07f51068-4e29-4219-8e71-8c4930da1780.webp?v=1785841272","variant_ids":[33369988137059]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2 - 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-XK23","featured_media":{"alt":null,"id":27983849455715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696ab1777982bf361bccbfa520692cdaa64ba748_07f51068-4e29-4219-8e71-8c4930da1780.webp?v=1785841272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306553716835,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK23","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531234915,"product_id":4509068656739,"position":10,"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\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc_b70e4e35-1b0b-4b72-9ab0-cca8c68c931b.webp?v=1785841274","variant_ids":[40306553716835]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2 - 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-XK23","featured_media":{"alt":null,"id":27983850111075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf4d7d7eddc599e1e5e8b79741fa9d139c2dfc_b70e4e35-1b0b-4b72-9ab0-cca8c68c931b.webp?v=1785841274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":33369988104291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK23","requires_shipping":true,"taxable":true,"featured_image":{"id":36480533921891,"product_id":4509068656739,"position":13,"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\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.webp?v=1785841280","variant_ids":[33369988104291]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 航空探險家2 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK23","featured_media":{"alt":null,"id":27983852798051,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029bacee80c0003239539a957568c28127047253_c13272a8-491d-469b-aad0-16538fe3a64e.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: "停產" }