$product = {"id":7407930605667,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列","handle":"iphone-14-pro-mod-nx-printable-pb83","description":null,"published_at":"2024-06-11T16:26:51+08:00","created_at":"2024-05-03T11:18:11+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":41880683282531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31470730543203,"product_id":7407930605667,"position":6,"created_at":"2024-05-03T11:18:27+08:00","updated_at":"2024-05-03T11:18:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307","variant_ids":[41880683282531]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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-PB83","featured_media":{"alt":null,"id":23875634626659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880683348067,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31470728904803,"product_id":7407930605667,"position":3,"created_at":"2024-05-03T11:18:18+08:00","updated_at":"2024-05-03T11:18:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c8b0db2894d80269d010dcbce53bd856e84da5_540ea849-b9e8-4d04-bb9b-8b8878216047.webp?v=1714706298","variant_ids":[41880683348067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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-PB83","featured_media":{"alt":null,"id":23875632955491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c8b0db2894d80269d010dcbce53bd856e84da5_540ea849-b9e8-4d04-bb9b-8b8878216047.webp?v=1714706298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880683577443,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31470728347747,"product_id":7407930605667,"position":2,"created_at":"2024-05-03T11:18:16+08:00","updated_at":"2024-05-03T11:18:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44bad26b44acbd92fb5670b415d5c3276c51c3d9_cc81d2fe-a013-4403-ac2a-64d6a12fdbcc.webp?v=1714706296","variant_ids":[41880683577443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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-PB83","featured_media":{"alt":null,"id":23875632496739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44bad26b44acbd92fb5670b415d5c3276c51c3d9_cc81d2fe-a013-4403-ac2a-64d6a12fdbcc.webp?v=1714706296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed871fc850320afc4619a1c11104a3e928acb0_bad39ad9-adff-4ac9-af62-cb95fb89a109.webp?v=1714706293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44bad26b44acbd92fb5670b415d5c3276c51c3d9_cc81d2fe-a013-4403-ac2a-64d6a12fdbcc.webp?v=1714706296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c8b0db2894d80269d010dcbce53bd856e84da5_540ea849-b9e8-4d04-bb9b-8b8878216047.webp?v=1714706298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb2aed15752c52176ec7efff3422995196219b7_71db40a1-46dd-400e-9902-a93508681ea4.webp?v=1714706301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f1eebd69e6a2a999796d6ed0648d0ca4ce10493_7b6c3ff5-e7a5-4db3-8176-cf8f6b072326.webp?v=1714706304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a257ca9854497483be6ab9fa7f5f0b6c4b7373_42cb530b-284f-4207-b3fc-3d0f17a6f296.webp?v=1714706309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3be8184c93bffb1431b7e3948088bb5638f2fd_d2aeac90-e4f5-475d-9235-32b2de216746.webp?v=1714706312","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a9708ac3df8335d4757ddff15777c0a0bce9758_41d9a909-ef17-44d3-92b7-bcf10ea2e2f9.webp?v=1714706314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b9ef31a3985b85c4bbcc981981444348ccf356e_32bdfa76-f821-4d7b-8660-db5dc9b41245.webp?v=1714706317"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed871fc850320afc4619a1c11104a3e928acb0_bad39ad9-adff-4ac9-af62-cb95fb89a109.webp?v=1714706293","options":["color"],"media":[{"alt":null,"id":23875631874147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed871fc850320afc4619a1c11104a3e928acb0_bad39ad9-adff-4ac9-af62-cb95fb89a109.webp?v=1714706293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed871fc850320afc4619a1c11104a3e928acb0_bad39ad9-adff-4ac9-af62-cb95fb89a109.webp?v=1714706293","width":2000},{"alt":null,"id":23875632496739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44bad26b44acbd92fb5670b415d5c3276c51c3d9_cc81d2fe-a013-4403-ac2a-64d6a12fdbcc.webp?v=1714706296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44bad26b44acbd92fb5670b415d5c3276c51c3d9_cc81d2fe-a013-4403-ac2a-64d6a12fdbcc.webp?v=1714706296","width":2000},{"alt":null,"id":23875632955491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c8b0db2894d80269d010dcbce53bd856e84da5_540ea849-b9e8-4d04-bb9b-8b8878216047.webp?v=1714706298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c8b0db2894d80269d010dcbce53bd856e84da5_540ea849-b9e8-4d04-bb9b-8b8878216047.webp?v=1714706298","width":2000},{"alt":null,"id":23875633512547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb2aed15752c52176ec7efff3422995196219b7_71db40a1-46dd-400e-9902-a93508681ea4.webp?v=1714706301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb2aed15752c52176ec7efff3422995196219b7_71db40a1-46dd-400e-9902-a93508681ea4.webp?v=1714706301","width":2000},{"alt":null,"id":23875634036835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f1eebd69e6a2a999796d6ed0648d0ca4ce10493_7b6c3ff5-e7a5-4db3-8176-cf8f6b072326.webp?v=1714706304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f1eebd69e6a2a999796d6ed0648d0ca4ce10493_7b6c3ff5-e7a5-4db3-8176-cf8f6b072326.webp?v=1714706304","width":2000},{"alt":null,"id":23875634626659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307","width":2000},{"alt":null,"id":23875634987107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a257ca9854497483be6ab9fa7f5f0b6c4b7373_42cb530b-284f-4207-b3fc-3d0f17a6f296.webp?v=1714706309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a257ca9854497483be6ab9fa7f5f0b6c4b7373_42cb530b-284f-4207-b3fc-3d0f17a6f296.webp?v=1714706309","width":2000},{"alt":null,"id":23875635708003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3be8184c93bffb1431b7e3948088bb5638f2fd_d2aeac90-e4f5-475d-9235-32b2de216746.webp?v=1714706312"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3be8184c93bffb1431b7e3948088bb5638f2fd_d2aeac90-e4f5-475d-9235-32b2de216746.webp?v=1714706312","width":2000},{"alt":null,"id":23875635970147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a9708ac3df8335d4757ddff15777c0a0bce9758_41d9a909-ef17-44d3-92b7-bcf10ea2e2f9.webp?v=1714706314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a9708ac3df8335d4757ddff15777c0a0bce9758_41d9a909-ef17-44d3-92b7-bcf10ea2e2f9.webp?v=1714706314","width":2000},{"alt":null,"id":23875636494435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b9ef31a3985b85c4bbcc981981444348ccf356e_32bdfa76-f821-4d7b-8660-db5dc9b41245.webp?v=1714706317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b9ef31a3985b85c4bbcc981981444348ccf356e_32bdfa76-f821-4d7b-8660-db5dc9b41245.webp?v=1714706317","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41880683282531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31470730543203,"product_id":7407930605667,"position":6,"created_at":"2024-05-03T11:18:27+08:00","updated_at":"2024-05-03T11:18:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307","variant_ids":[41880683282531]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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-PB83","featured_media":{"alt":null,"id":23875634626659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880683348067,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31470728904803,"product_id":7407930605667,"position":3,"created_at":"2024-05-03T11:18:18+08:00","updated_at":"2024-05-03T11:18:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c8b0db2894d80269d010dcbce53bd856e84da5_540ea849-b9e8-4d04-bb9b-8b8878216047.webp?v=1714706298","variant_ids":[41880683348067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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-PB83","featured_media":{"alt":null,"id":23875632955491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c8b0db2894d80269d010dcbce53bd856e84da5_540ea849-b9e8-4d04-bb9b-8b8878216047.webp?v=1714706298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880683577443,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31470728347747,"product_id":7407930605667,"position":2,"created_at":"2024-05-03T11:18:16+08:00","updated_at":"2024-05-03T11:18:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44bad26b44acbd92fb5670b415d5c3276c51c3d9_cc81d2fe-a013-4403-ac2a-64d6a12fdbcc.webp?v=1714706296","variant_ids":[41880683577443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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-PB83","featured_media":{"alt":null,"id":23875632496739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44bad26b44acbd92fb5670b415d5c3276c51c3d9_cc81d2fe-a013-4403-ac2a-64d6a12fdbcc.webp?v=1714706296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880683282531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31470730543203,"product_id":7407930605667,"position":6,"created_at":"2024-05-03T11:18:27+08:00","updated_at":"2024-05-03T11:18:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307","variant_ids":[41880683282531]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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-PB83","featured_media":{"alt":null,"id":23875634626659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82977487ac9466d3c4e842185fdc804caea7b130_c8f0f0d7-0b71-420c-a727-944f1b7cd3a3.webp?v=1714706307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }