$product = {"id":7407959736419,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術","handle":"iphone-14-pro-mod-nx-printable-pb37","description":null,"published_at":"2024-06-11T16:27:39+08:00","created_at":"2024-05-03T11:23:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"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":41881059721315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31470809874531,"product_id":7407959736419,"position":9,"created_at":"2024-05-03T11:24:12+08:00","updated_at":"2024-05-03T11:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652","variant_ids":[41881059721315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB37","featured_media":{"alt":null,"id":23875714252899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881059786851,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31470809350243,"product_id":7407959736419,"position":8,"created_at":"2024-05-03T11:24:09+08:00","updated_at":"2024-05-03T11:24:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c202d7fc88cf235f4360078e58efabf9a97073_c0c0daef-99a0-4d3a-b0ba-cd2359487c05.webp?v=1714706649","variant_ids":[41881059786851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB37","featured_media":{"alt":null,"id":23875713597539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c202d7fc88cf235f4360078e58efabf9a97073_c0c0daef-99a0-4d3a-b0ba-cd2359487c05.webp?v=1714706649"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881060016227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31470811185251,"product_id":7407959736419,"position":10,"created_at":"2024-05-03T11:24:14+08:00","updated_at":"2024-05-03T11:24:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1475b88de1c797b40db65716ec65bd1cd1b9ef43_2f50f0ca-0e47-4328-ada6-9bebd32de6bb.webp?v=1714706654","variant_ids":[41881060016227]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB37","featured_media":{"alt":null,"id":23875715268707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1475b88de1c797b40db65716ec65bd1cd1b9ef43_2f50f0ca-0e47-4328-ada6-9bebd32de6bb.webp?v=1714706654"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40340c7ec17c47b8c663aeff9685722f64f07c8_932f6ee8-a011-46b9-bb5a-b2868042978d.webp?v=1714706633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b25a1b1f725e5dd62bf66e4894737cd86e76c8e7_d6c5aa2b-526f-49f8-8231-48acf5348c9f.webp?v=1714706636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c610f30c672babab2d6be3b93d4a3c20eb09d87_9b96e9a6-26d4-49b8-9166-a23fce46114d.webp?v=1714706638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f44ea746d5d4fc8aa7ec08d8aa4c2aba34e797d_ce618566-c2c6-415e-a68d-ce64c33eda52.webp?v=1714706640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5743d4c3dbba7df522d876caf9610945bffd13a_76ab5fd6-307f-4d85-9d59-443c32325b7a.webp?v=1714706642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610831efc71aad85025dcc2663961401875922cc_3b8c31f3-57e2-4c60-853c-f483cac1e354.webp?v=1714706645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22515804d6e36e7cc89aebdfb3a90215bbe0355f_0a8d4a9d-f978-4758-ad88-19b6363c176b.webp?v=1714706647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c202d7fc88cf235f4360078e58efabf9a97073_c0c0daef-99a0-4d3a-b0ba-cd2359487c05.webp?v=1714706649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1475b88de1c797b40db65716ec65bd1cd1b9ef43_2f50f0ca-0e47-4328-ada6-9bebd32de6bb.webp?v=1714706654"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40340c7ec17c47b8c663aeff9685722f64f07c8_932f6ee8-a011-46b9-bb5a-b2868042978d.webp?v=1714706633","options":["color"],"media":[{"alt":null,"id":23875710353507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40340c7ec17c47b8c663aeff9685722f64f07c8_932f6ee8-a011-46b9-bb5a-b2868042978d.webp?v=1714706633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40340c7ec17c47b8c663aeff9685722f64f07c8_932f6ee8-a011-46b9-bb5a-b2868042978d.webp?v=1714706633","width":2000},{"alt":null,"id":23875710812259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b25a1b1f725e5dd62bf66e4894737cd86e76c8e7_d6c5aa2b-526f-49f8-8231-48acf5348c9f.webp?v=1714706636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b25a1b1f725e5dd62bf66e4894737cd86e76c8e7_d6c5aa2b-526f-49f8-8231-48acf5348c9f.webp?v=1714706636","width":2000},{"alt":null,"id":23875711271011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c610f30c672babab2d6be3b93d4a3c20eb09d87_9b96e9a6-26d4-49b8-9166-a23fce46114d.webp?v=1714706638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c610f30c672babab2d6be3b93d4a3c20eb09d87_9b96e9a6-26d4-49b8-9166-a23fce46114d.webp?v=1714706638","width":2000},{"alt":null,"id":23875711565923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f44ea746d5d4fc8aa7ec08d8aa4c2aba34e797d_ce618566-c2c6-415e-a68d-ce64c33eda52.webp?v=1714706640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f44ea746d5d4fc8aa7ec08d8aa4c2aba34e797d_ce618566-c2c6-415e-a68d-ce64c33eda52.webp?v=1714706640","width":2000},{"alt":null,"id":23875712090211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5743d4c3dbba7df522d876caf9610945bffd13a_76ab5fd6-307f-4d85-9d59-443c32325b7a.webp?v=1714706642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5743d4c3dbba7df522d876caf9610945bffd13a_76ab5fd6-307f-4d85-9d59-443c32325b7a.webp?v=1714706642","width":2000},{"alt":null,"id":23875712516195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610831efc71aad85025dcc2663961401875922cc_3b8c31f3-57e2-4c60-853c-f483cac1e354.webp?v=1714706645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610831efc71aad85025dcc2663961401875922cc_3b8c31f3-57e2-4c60-853c-f483cac1e354.webp?v=1714706645","width":2000},{"alt":null,"id":23875713073251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22515804d6e36e7cc89aebdfb3a90215bbe0355f_0a8d4a9d-f978-4758-ad88-19b6363c176b.webp?v=1714706647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22515804d6e36e7cc89aebdfb3a90215bbe0355f_0a8d4a9d-f978-4758-ad88-19b6363c176b.webp?v=1714706647","width":2000},{"alt":null,"id":23875713597539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c202d7fc88cf235f4360078e58efabf9a97073_c0c0daef-99a0-4d3a-b0ba-cd2359487c05.webp?v=1714706649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c202d7fc88cf235f4360078e58efabf9a97073_c0c0daef-99a0-4d3a-b0ba-cd2359487c05.webp?v=1714706649","width":2000},{"alt":null,"id":23875714252899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652","width":2000},{"alt":null,"id":23875715268707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1475b88de1c797b40db65716ec65bd1cd1b9ef43_2f50f0ca-0e47-4328-ada6-9bebd32de6bb.webp?v=1714706654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1475b88de1c797b40db65716ec65bd1cd1b9ef43_2f50f0ca-0e47-4328-ada6-9bebd32de6bb.webp?v=1714706654","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881059721315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31470809874531,"product_id":7407959736419,"position":9,"created_at":"2024-05-03T11:24:12+08:00","updated_at":"2024-05-03T11:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652","variant_ids":[41881059721315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB37","featured_media":{"alt":null,"id":23875714252899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881059786851,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31470809350243,"product_id":7407959736419,"position":8,"created_at":"2024-05-03T11:24:09+08:00","updated_at":"2024-05-03T11:24:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c202d7fc88cf235f4360078e58efabf9a97073_c0c0daef-99a0-4d3a-b0ba-cd2359487c05.webp?v=1714706649","variant_ids":[41881059786851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB37","featured_media":{"alt":null,"id":23875713597539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c202d7fc88cf235f4360078e58efabf9a97073_c0c0daef-99a0-4d3a-b0ba-cd2359487c05.webp?v=1714706649"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881060016227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31470811185251,"product_id":7407959736419,"position":10,"created_at":"2024-05-03T11:24:14+08:00","updated_at":"2024-05-03T11:24:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1475b88de1c797b40db65716ec65bd1cd1b9ef43_2f50f0ca-0e47-4328-ada6-9bebd32de6bb.webp?v=1714706654","variant_ids":[41881060016227]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB37","featured_media":{"alt":null,"id":23875715268707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1475b88de1c797b40db65716ec65bd1cd1b9ef43_2f50f0ca-0e47-4328-ada6-9bebd32de6bb.webp?v=1714706654"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881059721315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31470809874531,"product_id":7407959736419,"position":9,"created_at":"2024-05-03T11:24:12+08:00","updated_at":"2024-05-03T11:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652","variant_ids":[41881059721315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB37","featured_media":{"alt":null,"id":23875714252899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e0b6b7913a6e9ec5766fe0bfa67ccd57adaff77_e31be5ae-2c4c-4265-8430-26e866201cb8.webp?v=1714706652"}},"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: "停產" }