$product = {"id":7411304464483,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb67","description":null,"published_at":"2024-06-11T17:41:20+08:00","created_at":"2024-05-05T00:03:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41897200812131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480094163043,"product_id":7411304464483,"position":2,"created_at":"2024-05-05T00:04:01+08:00","updated_at":"2024-05-05T00:04:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641","variant_ids":[41897200812131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB67","featured_media":{"alt":null,"id":23885344997475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897200877667,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480095440995,"product_id":7411304464483,"position":5,"created_at":"2024-05-05T00:04:08+08:00","updated_at":"2024-05-05T00:04:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca50726a71eda04d85686cb1939903f41855f6f_65c4aecf-dfa7-4ff7-b735-3bc222f89cca.webp?v=1714838648","variant_ids":[41897200877667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB67","featured_media":{"alt":null,"id":23885346242659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca50726a71eda04d85686cb1939903f41855f6f_65c4aecf-dfa7-4ff7-b735-3bc222f89cca.webp?v=1714838648"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897201107043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480097898595,"product_id":7411304464483,"position":9,"created_at":"2024-05-05T00:04:17+08:00","updated_at":"2024-05-05T00:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec235bd990e4abc6cfcd75550d8e5e0adffc3ff_426b1fb2-2231-4e59-ba6a-d0591882ec55.webp?v=1714838657","variant_ids":[41897201107043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB67","featured_media":{"alt":null,"id":23885348700259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec235bd990e4abc6cfcd75550d8e5e0adffc3ff_426b1fb2-2231-4e59-ba6a-d0591882ec55.webp?v=1714838657"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdeee3e98de57c0588aa18b26362b11ae2a8108d_17ff0c8f-20cc-4622-ad13-373228bbb9dc.webp?v=1714838638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e2a118d230c2904639f0553072fbbfa8e58163a_5185ad0e-439e-4f18-bfe2-70102e76bcda.webp?v=1714838643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fd1f1e3882b22e4ae6f7013a1fda8f4db39929_bdf79d3c-200d-4b8a-a133-494a8ec04f23.webp?v=1714838645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca50726a71eda04d85686cb1939903f41855f6f_65c4aecf-dfa7-4ff7-b735-3bc222f89cca.webp?v=1714838648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461754f6442aa0e4b8c7995be25f2e74c1683d6a_b789f0dc-ccfc-4543-b4b4-76b20edd1c57.webp?v=1714838650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0fcbb8aaa8f650c7931556869f91609b9058ae_97336db2-3b28-43d5-8b18-10a320bbd8a0.webp?v=1714838652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355753a51c7198865c40416f9ffac7b1fc96573e_00b2f5a4-72b7-491c-8597-4073d2edb993.webp?v=1714838655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec235bd990e4abc6cfcd75550d8e5e0adffc3ff_426b1fb2-2231-4e59-ba6a-d0591882ec55.webp?v=1714838657","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7a3afe08985b68167a9b8edf5057103d3ac3b4_ae1cdce4-9204-41d7-ae20-4e9379c5c7ad.webp?v=1714838660"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdeee3e98de57c0588aa18b26362b11ae2a8108d_17ff0c8f-20cc-4622-ad13-373228bbb9dc.webp?v=1714838638","options":["color"],"media":[{"alt":null,"id":23885344407651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdeee3e98de57c0588aa18b26362b11ae2a8108d_17ff0c8f-20cc-4622-ad13-373228bbb9dc.webp?v=1714838638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdeee3e98de57c0588aa18b26362b11ae2a8108d_17ff0c8f-20cc-4622-ad13-373228bbb9dc.webp?v=1714838638","width":2000},{"alt":null,"id":23885344997475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641","width":2000},{"alt":null,"id":23885345292387,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e2a118d230c2904639f0553072fbbfa8e58163a_5185ad0e-439e-4f18-bfe2-70102e76bcda.webp?v=1714838643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e2a118d230c2904639f0553072fbbfa8e58163a_5185ad0e-439e-4f18-bfe2-70102e76bcda.webp?v=1714838643","width":2000},{"alt":null,"id":23885345914979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fd1f1e3882b22e4ae6f7013a1fda8f4db39929_bdf79d3c-200d-4b8a-a133-494a8ec04f23.webp?v=1714838645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fd1f1e3882b22e4ae6f7013a1fda8f4db39929_bdf79d3c-200d-4b8a-a133-494a8ec04f23.webp?v=1714838645","width":2000},{"alt":null,"id":23885346242659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca50726a71eda04d85686cb1939903f41855f6f_65c4aecf-dfa7-4ff7-b735-3bc222f89cca.webp?v=1714838648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca50726a71eda04d85686cb1939903f41855f6f_65c4aecf-dfa7-4ff7-b735-3bc222f89cca.webp?v=1714838648","width":2000},{"alt":null,"id":23885346766947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461754f6442aa0e4b8c7995be25f2e74c1683d6a_b789f0dc-ccfc-4543-b4b4-76b20edd1c57.webp?v=1714838650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461754f6442aa0e4b8c7995be25f2e74c1683d6a_b789f0dc-ccfc-4543-b4b4-76b20edd1c57.webp?v=1714838650","width":2000},{"alt":null,"id":23885347291235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0fcbb8aaa8f650c7931556869f91609b9058ae_97336db2-3b28-43d5-8b18-10a320bbd8a0.webp?v=1714838652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0fcbb8aaa8f650c7931556869f91609b9058ae_97336db2-3b28-43d5-8b18-10a320bbd8a0.webp?v=1714838652","width":2000},{"alt":null,"id":23885348110435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355753a51c7198865c40416f9ffac7b1fc96573e_00b2f5a4-72b7-491c-8597-4073d2edb993.webp?v=1714838655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355753a51c7198865c40416f9ffac7b1fc96573e_00b2f5a4-72b7-491c-8597-4073d2edb993.webp?v=1714838655","width":2000},{"alt":null,"id":23885348700259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec235bd990e4abc6cfcd75550d8e5e0adffc3ff_426b1fb2-2231-4e59-ba6a-d0591882ec55.webp?v=1714838657"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec235bd990e4abc6cfcd75550d8e5e0adffc3ff_426b1fb2-2231-4e59-ba6a-d0591882ec55.webp?v=1714838657","width":2000},{"alt":null,"id":23885349322851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7a3afe08985b68167a9b8edf5057103d3ac3b4_ae1cdce4-9204-41d7-ae20-4e9379c5c7ad.webp?v=1714838660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7a3afe08985b68167a9b8edf5057103d3ac3b4_ae1cdce4-9204-41d7-ae20-4e9379c5c7ad.webp?v=1714838660","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897200812131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480094163043,"product_id":7411304464483,"position":2,"created_at":"2024-05-05T00:04:01+08:00","updated_at":"2024-05-05T00:04:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641","variant_ids":[41897200812131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB67","featured_media":{"alt":null,"id":23885344997475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897200877667,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480095440995,"product_id":7411304464483,"position":5,"created_at":"2024-05-05T00:04:08+08:00","updated_at":"2024-05-05T00:04:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca50726a71eda04d85686cb1939903f41855f6f_65c4aecf-dfa7-4ff7-b735-3bc222f89cca.webp?v=1714838648","variant_ids":[41897200877667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB67","featured_media":{"alt":null,"id":23885346242659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca50726a71eda04d85686cb1939903f41855f6f_65c4aecf-dfa7-4ff7-b735-3bc222f89cca.webp?v=1714838648"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897201107043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480097898595,"product_id":7411304464483,"position":9,"created_at":"2024-05-05T00:04:17+08:00","updated_at":"2024-05-05T00:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec235bd990e4abc6cfcd75550d8e5e0adffc3ff_426b1fb2-2231-4e59-ba6a-d0591882ec55.webp?v=1714838657","variant_ids":[41897201107043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB67","featured_media":{"alt":null,"id":23885348700259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec235bd990e4abc6cfcd75550d8e5e0adffc3ff_426b1fb2-2231-4e59-ba6a-d0591882ec55.webp?v=1714838657"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897200812131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480094163043,"product_id":7411304464483,"position":2,"created_at":"2024-05-05T00:04:01+08:00","updated_at":"2024-05-05T00:04:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641","variant_ids":[41897200812131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB67","featured_media":{"alt":null,"id":23885344997475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9195fd2fdcdcda0bf787da28fb2409834a1a5110_980e2bb5-be2b-42af-bf62-9ba8e199bc2c.webp?v=1714838641"}},"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: "停產" }