$product = {"id":7931622981731,"title":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老","handle":"iphone-17-pro-mod-nx-with-capture-button-bir01","description":null,"published_at":"2026-01-27T14:23:47+08:00","created_at":"2025-11-28T11:14:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 17 Pro","merge","reseller-everydayishappybirthday"],"price":90000,"price_min":90000,"price_max":90000,"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":43861320859747,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351916933219,"product_id":7931622981731,"position":14,"created_at":"2026-07-22T21:29:37+08:00","updated_at":"2026-07-22T21:29:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979","variant_ids":[43861320859747]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR01","featured_media":{"alt":null,"id":27855721988195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861322891363,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351919030371,"product_id":7931622981731,"position":15,"created_at":"2026-07-22T21:29:38+08:00","updated_at":"2026-07-22T21:29:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_4b3a922e-322a-4b2b-855c-4355eee65e20.webp?v=1784726980","variant_ids":[43861322891363]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR01","featured_media":{"alt":null,"id":27855724183651,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_4b3a922e-322a-4b2b-855c-4355eee65e20.webp?v=1784726980"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8.webp?v=1764299704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0.webp?v=1764299704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb.webp?v=1764299705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48.webp?v=1764299705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_4f4c22fe-9a5e-45a5-bc38-51c60c7ca2fc.webp?v=1784721802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_05b753d5-cb74-42a5-9ba8-52c00f6281b4.webp?v=1784721804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_15de1988-ca4d-4e90-ad8b-9dee9c861d51.webp?v=1784721805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_f916d448-d770-433e-9eed-5f031ccd2e44.webp?v=1784721806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_983afdca-a2cd-4e07-a5c6-e72e157dc60c.webp?v=1784725914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_30eb6abd-b647-4e03-903b-da9cc700722c.webp?v=1784725916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_e39b6805-cefc-4c10-a756-9e8786182408.webp?v=1784725917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_fc61479d-9f1a-4f8e-bf1c-507fa6f9e43a.webp?v=1784725918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_f7288828-a61f-49fb-be51-2f50b24ff432.webp?v=1784726977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_4b3a922e-322a-4b2b-855c-4355eee65e20.webp?v=1784726980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_906211ac-03db-44d8-8ca2-f553e7b25272.webp?v=1784726981"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8.webp?v=1764299704","options":["color"],"media":[{"alt":null,"id":26428074033251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8.webp?v=1764299704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8.webp?v=1764299704","width":2000},{"alt":null,"id":26428074229859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0.webp?v=1764299704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0.webp?v=1764299704","width":2000},{"alt":null,"id":26428074360931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb.webp?v=1764299705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb.webp?v=1764299705","width":2000},{"alt":null,"id":26428074459235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48.webp?v=1764299705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48.webp?v=1764299705","width":2000},{"alt":null,"id":27853898219619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_4f4c22fe-9a5e-45a5-bc38-51c60c7ca2fc.webp?v=1784721802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_4f4c22fe-9a5e-45a5-bc38-51c60c7ca2fc.webp?v=1784721802","width":2000},{"alt":null,"id":27853899759715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_05b753d5-cb74-42a5-9ba8-52c00f6281b4.webp?v=1784721804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_05b753d5-cb74-42a5-9ba8-52c00f6281b4.webp?v=1784721804","width":2000},{"alt":null,"id":27853900644451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_15de1988-ca4d-4e90-ad8b-9dee9c861d51.webp?v=1784721805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_15de1988-ca4d-4e90-ad8b-9dee9c861d51.webp?v=1784721805","width":2000},{"alt":null,"id":27853901758563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_f916d448-d770-433e-9eed-5f031ccd2e44.webp?v=1784721806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_f916d448-d770-433e-9eed-5f031ccd2e44.webp?v=1784721806","width":2000},{"alt":null,"id":27855160705123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_983afdca-a2cd-4e07-a5c6-e72e157dc60c.webp?v=1784725914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_983afdca-a2cd-4e07-a5c6-e72e157dc60c.webp?v=1784725914","width":2000},{"alt":null,"id":27855162769507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_30eb6abd-b647-4e03-903b-da9cc700722c.webp?v=1784725916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_30eb6abd-b647-4e03-903b-da9cc700722c.webp?v=1784725916","width":2000},{"alt":null,"id":27855163719779,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_e39b6805-cefc-4c10-a756-9e8786182408.webp?v=1784725917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_e39b6805-cefc-4c10-a756-9e8786182408.webp?v=1784725917","width":2000},{"alt":null,"id":27855164735587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_fc61479d-9f1a-4f8e-bf1c-507fa6f9e43a.webp?v=1784725918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_fc61479d-9f1a-4f8e-bf1c-507fa6f9e43a.webp?v=1784725918","width":2000},{"alt":null,"id":27855719399523,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_f7288828-a61f-49fb-be51-2f50b24ff432.webp?v=1784726977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122d812a6258f956acea85202da8a464f1d587c8_f7288828-a61f-49fb-be51-2f50b24ff432.webp?v=1784726977","width":2000},{"alt":null,"id":27855721988195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979","width":2000},{"alt":null,"id":27855724183651,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_4b3a922e-322a-4b2b-855c-4355eee65e20.webp?v=1784726980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_4b3a922e-322a-4b2b-855c-4355eee65e20.webp?v=1784726980","width":2000},{"alt":null,"id":27855725101155,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_906211ac-03db-44d8-8ca2-f553e7b25272.webp?v=1784726981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a3c752683634db8aab22092832b53e7d33bf48_906211ac-03db-44d8-8ca2-f553e7b25272.webp?v=1784726981","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861320859747,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351916933219,"product_id":7931622981731,"position":14,"created_at":"2026-07-22T21:29:37+08:00","updated_at":"2026-07-22T21:29:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979","variant_ids":[43861320859747]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR01","featured_media":{"alt":null,"id":27855721988195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861322891363,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351919030371,"product_id":7931622981731,"position":15,"created_at":"2026-07-22T21:29:38+08:00","updated_at":"2026-07-22T21:29:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_4b3a922e-322a-4b2b-855c-4355eee65e20.webp?v=1784726980","variant_ids":[43861322891363]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR01","featured_media":{"alt":null,"id":27855724183651,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2216d7b3f6bd58a7a46c087b52bcb7e3a9175ceb_4b3a922e-322a-4b2b-855c-4355eee65e20.webp?v=1784726980"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861320859747,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351916933219,"product_id":7931622981731,"position":14,"created_at":"2026-07-22T21:29:37+08:00","updated_at":"2026-07-22T21:29:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979","variant_ids":[43861320859747]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR01","featured_media":{"alt":null,"id":27855721988195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726efd63ecab47a521cf73306ef439df1e72c4e0_23681797-4637-419e-a06f-57667156b4e9.webp?v=1784726979"}},"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: "停產" }