$product = {"id":7411320225891,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb39","description":null,"published_at":"2024-06-11T17:41:45+08:00","created_at":"2024-05-05T00:06: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":41897400467555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31480132436067,"product_id":7411320225891,"position":4,"created_at":"2024-05-05T00:07:04+08:00","updated_at":"2024-05-05T00:07:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824","variant_ids":[41897400467555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23885383303267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897400533091,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31480133943395,"product_id":7411320225891,"position":7,"created_at":"2024-05-05T00:07:12+08:00","updated_at":"2024-05-05T00:07:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa5c437c23b11d575e0d7aa0ecc32e9e5d563_2eb123bf-af66-428b-828b-e06323cdd065.webp?v=1714838832","variant_ids":[41897400533091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23885384843363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa5c437c23b11d575e0d7aa0ecc32e9e5d563_2eb123bf-af66-428b-828b-e06323cdd065.webp?v=1714838832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897400762467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31480131747939,"product_id":7411320225891,"position":2,"created_at":"2024-05-05T00:07:00+08:00","updated_at":"2024-05-05T00:07:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56517b5cf4b4f4c3f1e6c3fda7dca08a34261a2e_64345ac3-fcef-4da6-a19f-08148d24f54e.webp?v=1714838820","variant_ids":[41897400762467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23885382615139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56517b5cf4b4f4c3f1e6c3fda7dca08a34261a2e_64345ac3-fcef-4da6-a19f-08148d24f54e.webp?v=1714838820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca511a54ac2b8f8b178edd8f53e25a5bf775b9_cad638a8-2212-4006-ae85-e209682cb26d.webp?v=1714838818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56517b5cf4b4f4c3f1e6c3fda7dca08a34261a2e_64345ac3-fcef-4da6-a19f-08148d24f54e.webp?v=1714838820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9e53447ae1e37f551357a9058467724a3b826ca_d99217b8-8c24-4298-92c9-b2bff9d41ae2.webp?v=1714838822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f263e5f828db09e89d8484ed425fef447da63a5b_4a148d06-fc90-4c38-9576-c130b82e7596.webp?v=1714838827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4086d22aaf8f264ab028a150ed0c1eaa04f2b04b_0afae19b-19f9-4361-beca-d6bd4a606439.webp?v=1714838829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa5c437c23b11d575e0d7aa0ecc32e9e5d563_2eb123bf-af66-428b-828b-e06323cdd065.webp?v=1714838832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8e2f9d6db275da9de2252cbb9b1df8290bdfb1_7ad85d0e-9253-4e74-9f1a-28dd4a6ea6a4.webp?v=1714838834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ffb541667080eeb6ed39d479c8406e4e21765c_76b7dece-61ee-4e44-b50d-8c203d3cfc40.webp?v=1714838836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf692a00c45f9f796fac93a99fdf791634db939_d32d2ca4-1154-436c-8ab0-aeb65e04111a.webp?v=1714838839"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca511a54ac2b8f8b178edd8f53e25a5bf775b9_cad638a8-2212-4006-ae85-e209682cb26d.webp?v=1714838818","options":["color"],"media":[{"alt":null,"id":23885381992547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca511a54ac2b8f8b178edd8f53e25a5bf775b9_cad638a8-2212-4006-ae85-e209682cb26d.webp?v=1714838818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca511a54ac2b8f8b178edd8f53e25a5bf775b9_cad638a8-2212-4006-ae85-e209682cb26d.webp?v=1714838818","width":2000},{"alt":null,"id":23885382615139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56517b5cf4b4f4c3f1e6c3fda7dca08a34261a2e_64345ac3-fcef-4da6-a19f-08148d24f54e.webp?v=1714838820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56517b5cf4b4f4c3f1e6c3fda7dca08a34261a2e_64345ac3-fcef-4da6-a19f-08148d24f54e.webp?v=1714838820","width":2000},{"alt":null,"id":23885383041123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9e53447ae1e37f551357a9058467724a3b826ca_d99217b8-8c24-4298-92c9-b2bff9d41ae2.webp?v=1714838822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9e53447ae1e37f551357a9058467724a3b826ca_d99217b8-8c24-4298-92c9-b2bff9d41ae2.webp?v=1714838822","width":2000},{"alt":null,"id":23885383303267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824","width":2000},{"alt":null,"id":23885383893091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f263e5f828db09e89d8484ed425fef447da63a5b_4a148d06-fc90-4c38-9576-c130b82e7596.webp?v=1714838827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f263e5f828db09e89d8484ed425fef447da63a5b_4a148d06-fc90-4c38-9576-c130b82e7596.webp?v=1714838827","width":2000},{"alt":null,"id":23885384384611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4086d22aaf8f264ab028a150ed0c1eaa04f2b04b_0afae19b-19f9-4361-beca-d6bd4a606439.webp?v=1714838829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4086d22aaf8f264ab028a150ed0c1eaa04f2b04b_0afae19b-19f9-4361-beca-d6bd4a606439.webp?v=1714838829","width":2000},{"alt":null,"id":23885384843363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa5c437c23b11d575e0d7aa0ecc32e9e5d563_2eb123bf-af66-428b-828b-e06323cdd065.webp?v=1714838832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa5c437c23b11d575e0d7aa0ecc32e9e5d563_2eb123bf-af66-428b-828b-e06323cdd065.webp?v=1714838832","width":2000},{"alt":null,"id":23885385236579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8e2f9d6db275da9de2252cbb9b1df8290bdfb1_7ad85d0e-9253-4e74-9f1a-28dd4a6ea6a4.webp?v=1714838834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8e2f9d6db275da9de2252cbb9b1df8290bdfb1_7ad85d0e-9253-4e74-9f1a-28dd4a6ea6a4.webp?v=1714838834","width":2000},{"alt":null,"id":23885385695331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ffb541667080eeb6ed39d479c8406e4e21765c_76b7dece-61ee-4e44-b50d-8c203d3cfc40.webp?v=1714838836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ffb541667080eeb6ed39d479c8406e4e21765c_76b7dece-61ee-4e44-b50d-8c203d3cfc40.webp?v=1714838836","width":2000},{"alt":null,"id":23885386023011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf692a00c45f9f796fac93a99fdf791634db939_d32d2ca4-1154-436c-8ab0-aeb65e04111a.webp?v=1714838839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf692a00c45f9f796fac93a99fdf791634db939_d32d2ca4-1154-436c-8ab0-aeb65e04111a.webp?v=1714838839","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897400467555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31480132436067,"product_id":7411320225891,"position":4,"created_at":"2024-05-05T00:07:04+08:00","updated_at":"2024-05-05T00:07:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824","variant_ids":[41897400467555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23885383303267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897400533091,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31480133943395,"product_id":7411320225891,"position":7,"created_at":"2024-05-05T00:07:12+08:00","updated_at":"2024-05-05T00:07:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa5c437c23b11d575e0d7aa0ecc32e9e5d563_2eb123bf-af66-428b-828b-e06323cdd065.webp?v=1714838832","variant_ids":[41897400533091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23885384843363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021aa5c437c23b11d575e0d7aa0ecc32e9e5d563_2eb123bf-af66-428b-828b-e06323cdd065.webp?v=1714838832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897400762467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31480131747939,"product_id":7411320225891,"position":2,"created_at":"2024-05-05T00:07:00+08:00","updated_at":"2024-05-05T00:07:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56517b5cf4b4f4c3f1e6c3fda7dca08a34261a2e_64345ac3-fcef-4da6-a19f-08148d24f54e.webp?v=1714838820","variant_ids":[41897400762467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23885382615139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56517b5cf4b4f4c3f1e6c3fda7dca08a34261a2e_64345ac3-fcef-4da6-a19f-08148d24f54e.webp?v=1714838820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897400467555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31480132436067,"product_id":7411320225891,"position":4,"created_at":"2024-05-05T00:07:04+08:00","updated_at":"2024-05-05T00:07:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824","variant_ids":[41897400467555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23885383303267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395705bb2b15b71dc9785d0008e47b14085064fe_7de217a0-6ce2-4352-8f25-356c2e116e6c.webp?v=1714838824"}},"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: "停產" }