$product = {"id":7411259146339,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb37","description":null,"published_at":"2024-06-11T17:40:08+08:00","created_at":"2024-05-04T23:55:16+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":41896637136995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980818531,"product_id":7411259146339,"position":6,"created_at":"2024-05-04T23:55:30+08:00","updated_at":"2024-05-04T23:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130","variant_ids":[41896637136995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23885231292515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896637202531,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31479982915683,"product_id":7411259146339,"position":10,"created_at":"2024-05-04T23:55:39+08:00","updated_at":"2024-05-04T23:55:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4e25df4a816334744d9a8e2525a043cda03146e_0a70f3ad-ad61-46e8-8051-52d5c3d6cbd7.webp?v=1714838139","variant_ids":[41896637202531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23885233389667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4e25df4a816334744d9a8e2525a043cda03146e_0a70f3ad-ad61-46e8-8051-52d5c3d6cbd7.webp?v=1714838139"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896637431907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980392547,"product_id":7411259146339,"position":5,"created_at":"2024-05-04T23:55:28+08:00","updated_at":"2024-05-04T23:55:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8eac576adee9fa11244cbeffaf6bc223ac2fed2_439b8870-4164-4700-bc2b-3c1858566c91.webp?v=1714838128","variant_ids":[41896637431907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23885230833763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8eac576adee9fa11244cbeffaf6bc223ac2fed2_439b8870-4164-4700-bc2b-3c1858566c91.webp?v=1714838128"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecab0c87088a7e270cdafcad89121b96fe6ea7d4_aafd863a-8343-4b37-aa84-a2dbcdd2a533.webp?v=1714838119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/542fbd7ed6982dd91f0847c00c985156d4ea5214_4d4265cf-f780-4087-aff3-9be1218bd50a.webp?v=1714838121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b88b9dcf11702cedea1bcd7de9e70381e38f989_1e5daa06-50b7-4687-99e6-b164deebb527.webp?v=1714838123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e30c08d9707650b76aa21630fb92dba002af31f_4b30eef5-da1d-4a2b-b5ca-7ba2d2b3cae5.webp?v=1714838125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8eac576adee9fa11244cbeffaf6bc223ac2fed2_439b8870-4164-4700-bc2b-3c1858566c91.webp?v=1714838128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13762f528329a1cbee3423f4749d42bfa01f94d4_dc3d2386-61c6-4ed2-a91d-abd89123f82e.webp?v=1714838132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0e962e36d0f982528645f57973d248e6cb36db_d03b659b-51e7-49d1-8cdd-8bfad46f3ffa.webp?v=1714838135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f27d799e2a222db15b1725f35adc0c20ed8c2b46_d2333ba0-7eb6-431d-8cb4-66f98df032a1.webp?v=1714838137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4e25df4a816334744d9a8e2525a043cda03146e_0a70f3ad-ad61-46e8-8051-52d5c3d6cbd7.webp?v=1714838139"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecab0c87088a7e270cdafcad89121b96fe6ea7d4_aafd863a-8343-4b37-aa84-a2dbcdd2a533.webp?v=1714838119","options":["color"],"media":[{"alt":null,"id":23885228900451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecab0c87088a7e270cdafcad89121b96fe6ea7d4_aafd863a-8343-4b37-aa84-a2dbcdd2a533.webp?v=1714838119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecab0c87088a7e270cdafcad89121b96fe6ea7d4_aafd863a-8343-4b37-aa84-a2dbcdd2a533.webp?v=1714838119","width":2000},{"alt":null,"id":23885229359203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/542fbd7ed6982dd91f0847c00c985156d4ea5214_4d4265cf-f780-4087-aff3-9be1218bd50a.webp?v=1714838121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/542fbd7ed6982dd91f0847c00c985156d4ea5214_4d4265cf-f780-4087-aff3-9be1218bd50a.webp?v=1714838121","width":2000},{"alt":null,"id":23885229785187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b88b9dcf11702cedea1bcd7de9e70381e38f989_1e5daa06-50b7-4687-99e6-b164deebb527.webp?v=1714838123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b88b9dcf11702cedea1bcd7de9e70381e38f989_1e5daa06-50b7-4687-99e6-b164deebb527.webp?v=1714838123","width":2000},{"alt":null,"id":23885230211171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e30c08d9707650b76aa21630fb92dba002af31f_4b30eef5-da1d-4a2b-b5ca-7ba2d2b3cae5.webp?v=1714838125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e30c08d9707650b76aa21630fb92dba002af31f_4b30eef5-da1d-4a2b-b5ca-7ba2d2b3cae5.webp?v=1714838125","width":2000},{"alt":null,"id":23885230833763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8eac576adee9fa11244cbeffaf6bc223ac2fed2_439b8870-4164-4700-bc2b-3c1858566c91.webp?v=1714838128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8eac576adee9fa11244cbeffaf6bc223ac2fed2_439b8870-4164-4700-bc2b-3c1858566c91.webp?v=1714838128","width":2000},{"alt":null,"id":23885231292515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130","width":2000},{"alt":null,"id":23885231915107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13762f528329a1cbee3423f4749d42bfa01f94d4_dc3d2386-61c6-4ed2-a91d-abd89123f82e.webp?v=1714838132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13762f528329a1cbee3423f4749d42bfa01f94d4_dc3d2386-61c6-4ed2-a91d-abd89123f82e.webp?v=1714838132","width":2000},{"alt":null,"id":23885232406627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0e962e36d0f982528645f57973d248e6cb36db_d03b659b-51e7-49d1-8cdd-8bfad46f3ffa.webp?v=1714838135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0e962e36d0f982528645f57973d248e6cb36db_d03b659b-51e7-49d1-8cdd-8bfad46f3ffa.webp?v=1714838135","width":2000},{"alt":null,"id":23885232963683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f27d799e2a222db15b1725f35adc0c20ed8c2b46_d2333ba0-7eb6-431d-8cb4-66f98df032a1.webp?v=1714838137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f27d799e2a222db15b1725f35adc0c20ed8c2b46_d2333ba0-7eb6-431d-8cb4-66f98df032a1.webp?v=1714838137","width":2000},{"alt":null,"id":23885233389667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4e25df4a816334744d9a8e2525a043cda03146e_0a70f3ad-ad61-46e8-8051-52d5c3d6cbd7.webp?v=1714838139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4e25df4a816334744d9a8e2525a043cda03146e_0a70f3ad-ad61-46e8-8051-52d5c3d6cbd7.webp?v=1714838139","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896637136995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980818531,"product_id":7411259146339,"position":6,"created_at":"2024-05-04T23:55:30+08:00","updated_at":"2024-05-04T23:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130","variant_ids":[41896637136995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23885231292515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896637202531,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31479982915683,"product_id":7411259146339,"position":10,"created_at":"2024-05-04T23:55:39+08:00","updated_at":"2024-05-04T23:55:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4e25df4a816334744d9a8e2525a043cda03146e_0a70f3ad-ad61-46e8-8051-52d5c3d6cbd7.webp?v=1714838139","variant_ids":[41896637202531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23885233389667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4e25df4a816334744d9a8e2525a043cda03146e_0a70f3ad-ad61-46e8-8051-52d5c3d6cbd7.webp?v=1714838139"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896637431907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980392547,"product_id":7411259146339,"position":5,"created_at":"2024-05-04T23:55:28+08:00","updated_at":"2024-05-04T23:55:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8eac576adee9fa11244cbeffaf6bc223ac2fed2_439b8870-4164-4700-bc2b-3c1858566c91.webp?v=1714838128","variant_ids":[41896637431907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23885230833763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8eac576adee9fa11244cbeffaf6bc223ac2fed2_439b8870-4164-4700-bc2b-3c1858566c91.webp?v=1714838128"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896637136995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31479980818531,"product_id":7411259146339,"position":6,"created_at":"2024-05-04T23:55:30+08:00","updated_at":"2024-05-04T23:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130","variant_ids":[41896637136995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23885231292515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cff77a5325411de2d2613b9e7049b3d8a5a3d51_d3d1d236-2de2-4371-9686-9f9fdbeebec5.webp?v=1714838130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }