$product = {"id":6653189259363,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯","handle":"iphone-8-solidsuit-classic-mw05","description":"","published_at":"2024-04-15T09:38:40+08:00","created_at":"2021-10-18T14:24:55+08:00","vendor":"RhinoShield","type":"設計師SolidSuit專區noiinoii","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-noiinoii","device-iPhone 8","merge","reseller-noiinoii"],"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":41638757433443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":36350409015395,"product_id":6653189259363,"position":14,"created_at":"2026-07-22T20:17:05+08:00","updated_at":"2026-07-22T20:17:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627","variant_ids":[41638757433443]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW05","featured_media":{"alt":null,"id":27854213840995,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40145077764195,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-MW05","requires_shipping":true,"taxable":false,"featured_image":{"id":36350407802979,"product_id":6653189259363,"position":13,"created_at":"2026-07-22T20:17:03+08:00","updated_at":"2026-07-22T20:17:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d_075e0549-4ea0-4059-b258-e722d30a84d7.webp?v=1784722625","variant_ids":[40145077764195]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯 - White","public_title":"White","options":["White"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-MW05","featured_media":{"alt":null,"id":27854213120099,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d_075e0549-4ea0-4059-b258-e722d30a84d7.webp?v=1784722625"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638757498979,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":36350404984931,"product_id":6653189259363,"position":9,"created_at":"2026-07-22T20:16:59+08:00","updated_at":"2026-07-22T20:17:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee_a37a8303-b13a-41c4-bf59-859ac74daba2.webp?v=1784722621","variant_ids":[41638757498979]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-MW05","featured_media":{"alt":null,"id":27854210105443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee_a37a8303-b13a-41c4-bf59-859ac74daba2.webp?v=1784722621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f41c30df80b534b89c79e264c7f5c885932b434f_46fc54fb-9c34-4c08-88e4-8f6849766ae2.webp?v=1712826135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d00c515bfe5f95c6139b2707914cb7a8e1ce35.webp?v=1758529396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628049f1ffb59f83d11c0ac9cc61f549589459c0.webp?v=1758529397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efca5185511a8970dd80c1a5f3ebf3b6d3f3abd9.webp?v=1758529398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee.webp?v=1758529399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc1461165bad91aca986bec239f7244258e86030.webp?v=1758529399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7.webp?v=1758529400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d.webp?v=1758529400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee_a37a8303-b13a-41c4-bf59-859ac74daba2.webp?v=1784722621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efca5185511a8970dd80c1a5f3ebf3b6d3f3abd9_ce3efaad-f73b-4d0d-8caf-b111f53179f8.webp?v=1784722622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d00c515bfe5f95c6139b2707914cb7a8e1ce35_1103f1c4-3f93-4825-8053-4b0ea5e77223.webp?v=1784722624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628049f1ffb59f83d11c0ac9cc61f549589459c0_6e590354-4eac-4fbe-b04f-1fe17d2a69ed.webp?v=1784722625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d_075e0549-4ea0-4059-b258-e722d30a84d7.webp?v=1784722625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f41c30df80b534b89c79e264c7f5c885932b434f_46fc54fb-9c34-4c08-88e4-8f6849766ae2.webp?v=1712826135","options":["color"],"media":[{"alt":null,"id":23646270062691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f41c30df80b534b89c79e264c7f5c885932b434f_46fc54fb-9c34-4c08-88e4-8f6849766ae2.webp?v=1712826135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f41c30df80b534b89c79e264c7f5c885932b434f_46fc54fb-9c34-4c08-88e4-8f6849766ae2.webp?v=1712826135","width":2000},{"alt":null,"id":26085617139811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d00c515bfe5f95c6139b2707914cb7a8e1ce35.webp?v=1758529396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d00c515bfe5f95c6139b2707914cb7a8e1ce35.webp?v=1758529396","width":2000},{"alt":null,"id":26085617336419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628049f1ffb59f83d11c0ac9cc61f549589459c0.webp?v=1758529397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628049f1ffb59f83d11c0ac9cc61f549589459c0.webp?v=1758529397","width":2000},{"alt":null,"id":26085617500259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efca5185511a8970dd80c1a5f3ebf3b6d3f3abd9.webp?v=1758529398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efca5185511a8970dd80c1a5f3ebf3b6d3f3abd9.webp?v=1758529398","width":2000},{"alt":null,"id":26085617959011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee.webp?v=1758529399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee.webp?v=1758529399","width":2000},{"alt":null,"id":26085618155619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc1461165bad91aca986bec239f7244258e86030.webp?v=1758529399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc1461165bad91aca986bec239f7244258e86030.webp?v=1758529399","width":2000},{"alt":null,"id":26085618352227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7.webp?v=1758529400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7.webp?v=1758529400","width":2000},{"alt":null,"id":26085618548835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d.webp?v=1758529400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d.webp?v=1758529400","width":2000},{"alt":null,"id":27854210105443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee_a37a8303-b13a-41c4-bf59-859ac74daba2.webp?v=1784722621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee_a37a8303-b13a-41c4-bf59-859ac74daba2.webp?v=1784722621","width":2000},{"alt":null,"id":27854210236515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efca5185511a8970dd80c1a5f3ebf3b6d3f3abd9_ce3efaad-f73b-4d0d-8caf-b111f53179f8.webp?v=1784722622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efca5185511a8970dd80c1a5f3ebf3b6d3f3abd9_ce3efaad-f73b-4d0d-8caf-b111f53179f8.webp?v=1784722622","width":2000},{"alt":null,"id":27854211612771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d00c515bfe5f95c6139b2707914cb7a8e1ce35_1103f1c4-3f93-4825-8053-4b0ea5e77223.webp?v=1784722624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d00c515bfe5f95c6139b2707914cb7a8e1ce35_1103f1c4-3f93-4825-8053-4b0ea5e77223.webp?v=1784722624","width":2000},{"alt":null,"id":27854212464739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628049f1ffb59f83d11c0ac9cc61f549589459c0_6e590354-4eac-4fbe-b04f-1fe17d2a69ed.webp?v=1784722625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628049f1ffb59f83d11c0ac9cc61f549589459c0_6e590354-4eac-4fbe-b04f-1fe17d2a69ed.webp?v=1784722625","width":2000},{"alt":null,"id":27854213120099,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d_075e0549-4ea0-4059-b258-e722d30a84d7.webp?v=1784722625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d_075e0549-4ea0-4059-b258-e722d30a84d7.webp?v=1784722625","width":2000},{"alt":null,"id":27854213840995,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":41638757433443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":36350409015395,"product_id":6653189259363,"position":14,"created_at":"2026-07-22T20:17:05+08:00","updated_at":"2026-07-22T20:17:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627","variant_ids":[41638757433443]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW05","featured_media":{"alt":null,"id":27854213840995,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40145077764195,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-MW05","requires_shipping":true,"taxable":false,"featured_image":{"id":36350407802979,"product_id":6653189259363,"position":13,"created_at":"2026-07-22T20:17:03+08:00","updated_at":"2026-07-22T20:17:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d_075e0549-4ea0-4059-b258-e722d30a84d7.webp?v=1784722625","variant_ids":[40145077764195]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯 - White","public_title":"White","options":["White"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":-1,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-MW05","featured_media":{"alt":null,"id":27854213120099,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db821e6dfa11523624ea6daf830533b97765a63d_075e0549-4ea0-4059-b258-e722d30a84d7.webp?v=1784722625"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638757498979,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":36350404984931,"product_id":6653189259363,"position":9,"created_at":"2026-07-22T20:16:59+08:00","updated_at":"2026-07-22T20:17:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee_a37a8303-b13a-41c4-bf59-859ac74daba2.webp?v=1784722621","variant_ids":[41638757498979]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-MW05","featured_media":{"alt":null,"id":27854210105443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4abb6c80fe56d4f3dd69c43b83df39c8383eee_a37a8303-b13a-41c4-bf59-859ac74daba2.webp?v=1784722621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41638757433443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW05","requires_shipping":true,"taxable":true,"featured_image":{"id":36350409015395,"product_id":6653189259363,"position":14,"created_at":"2026-07-22T20:17:05+08:00","updated_at":"2026-07-22T20:17:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627","variant_ids":[41638757433443]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii Happy總匯 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW05","featured_media":{"alt":null,"id":27854213840995,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be8085f0d40db143bcd89ff790d82dc39fa41f7_c50c914f-0a1d-4206-8bb3-ac068aeba324.webp?v=1784722627"}},"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: "停產" }