$product = {"id":7407965896803,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-14-pro-mod-nx-printable-pb81","description":null,"published_at":"2024-06-11T16:27:49+08:00","created_at":"2024-05-03T11:25:02+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":41881137741923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825865315,"product_id":7407965896803,"position":10,"created_at":"2024-05-03T11:25:26+08:00","updated_at":"2024-05-03T11:25:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726","variant_ids":[41881137741923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875730440291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881137905763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825111651,"product_id":7407965896803,"position":8,"created_at":"2024-05-03T11:25:22+08:00","updated_at":"2024-05-03T11:25:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b20ec867c94e2f80404d082e94393d52483eb5_7b3b7920-50f9-45d1-b34c-2151cf652382.webp?v=1714706722","variant_ids":[41881137905763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875729621091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b20ec867c94e2f80404d082e94393d52483eb5_7b3b7920-50f9-45d1-b34c-2151cf652382.webp?v=1714706722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881138331747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470822817891,"product_id":7407965896803,"position":3,"created_at":"2024-05-03T11:25:10+08:00","updated_at":"2024-05-03T11:25:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44ea0bef4b4f170912e83e7c43c6c1b3d2903a4_8fc2fbdc-d881-4147-a269-506e6a1145ad.webp?v=1714706710","variant_ids":[41881138331747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875727261795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44ea0bef4b4f170912e83e7c43c6c1b3d2903a4_8fc2fbdc-d881-4147-a269-506e6a1145ad.webp?v=1714706710"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98bb5dfccb2915dd06ed9d721620104014848f0f_5f210f2f-cfa5-429c-b1ae-fc6aaa9d06d7.webp?v=1714706705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7a10227f732dca0eeb1992c985a908994949b7_42bda6aa-dc0b-4dbb-8fee-108fce4185b3.webp?v=1714706707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44ea0bef4b4f170912e83e7c43c6c1b3d2903a4_8fc2fbdc-d881-4147-a269-506e6a1145ad.webp?v=1714706710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45c6ebfd1d1b0ae8c8bb07ac570a16d59024af46_855a255d-cea7-4590-b42d-664c1ee5e2a2.webp?v=1714706712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99959db9b8a6cc57e3c464eff1845450d5ed8401_1883a623-04d0-4349-82ef-0cd21b183195.webp?v=1714706715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b40d442884c3b219c82ac0795489c69955c4495_83470098-14d5-4085-9cf1-5aeaf6bf1ce5.webp?v=1714706717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/772c23b8b31117914e435c7fb8b28099f598e2a6_0805f4af-d5cb-43db-97d0-2f5d676c89b5.webp?v=1714706719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b20ec867c94e2f80404d082e94393d52483eb5_7b3b7920-50f9-45d1-b34c-2151cf652382.webp?v=1714706722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f05a907246dfe856d169a01f430bc29acdc52f_0a4d8992-8b7d-4b7d-908a-a875997ddc70.webp?v=1714706724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98bb5dfccb2915dd06ed9d721620104014848f0f_5f210f2f-cfa5-429c-b1ae-fc6aaa9d06d7.webp?v=1714706705","options":["color"],"media":[{"alt":null,"id":23875726180451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98bb5dfccb2915dd06ed9d721620104014848f0f_5f210f2f-cfa5-429c-b1ae-fc6aaa9d06d7.webp?v=1714706705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98bb5dfccb2915dd06ed9d721620104014848f0f_5f210f2f-cfa5-429c-b1ae-fc6aaa9d06d7.webp?v=1714706705","width":2000},{"alt":null,"id":23875726737507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7a10227f732dca0eeb1992c985a908994949b7_42bda6aa-dc0b-4dbb-8fee-108fce4185b3.webp?v=1714706707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7a10227f732dca0eeb1992c985a908994949b7_42bda6aa-dc0b-4dbb-8fee-108fce4185b3.webp?v=1714706707","width":2000},{"alt":null,"id":23875727261795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44ea0bef4b4f170912e83e7c43c6c1b3d2903a4_8fc2fbdc-d881-4147-a269-506e6a1145ad.webp?v=1714706710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44ea0bef4b4f170912e83e7c43c6c1b3d2903a4_8fc2fbdc-d881-4147-a269-506e6a1145ad.webp?v=1714706710","width":2000},{"alt":null,"id":23875727851619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45c6ebfd1d1b0ae8c8bb07ac570a16d59024af46_855a255d-cea7-4590-b42d-664c1ee5e2a2.webp?v=1714706712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45c6ebfd1d1b0ae8c8bb07ac570a16d59024af46_855a255d-cea7-4590-b42d-664c1ee5e2a2.webp?v=1714706712","width":2000},{"alt":null,"id":23875728310371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99959db9b8a6cc57e3c464eff1845450d5ed8401_1883a623-04d0-4349-82ef-0cd21b183195.webp?v=1714706715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99959db9b8a6cc57e3c464eff1845450d5ed8401_1883a623-04d0-4349-82ef-0cd21b183195.webp?v=1714706715","width":2000},{"alt":null,"id":23875728801891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b40d442884c3b219c82ac0795489c69955c4495_83470098-14d5-4085-9cf1-5aeaf6bf1ce5.webp?v=1714706717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b40d442884c3b219c82ac0795489c69955c4495_83470098-14d5-4085-9cf1-5aeaf6bf1ce5.webp?v=1714706717","width":2000},{"alt":null,"id":23875729195107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/772c23b8b31117914e435c7fb8b28099f598e2a6_0805f4af-d5cb-43db-97d0-2f5d676c89b5.webp?v=1714706719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/772c23b8b31117914e435c7fb8b28099f598e2a6_0805f4af-d5cb-43db-97d0-2f5d676c89b5.webp?v=1714706719","width":2000},{"alt":null,"id":23875729621091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b20ec867c94e2f80404d082e94393d52483eb5_7b3b7920-50f9-45d1-b34c-2151cf652382.webp?v=1714706722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b20ec867c94e2f80404d082e94393d52483eb5_7b3b7920-50f9-45d1-b34c-2151cf652382.webp?v=1714706722","width":2000},{"alt":null,"id":23875730014307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f05a907246dfe856d169a01f430bc29acdc52f_0a4d8992-8b7d-4b7d-908a-a875997ddc70.webp?v=1714706724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f05a907246dfe856d169a01f430bc29acdc52f_0a4d8992-8b7d-4b7d-908a-a875997ddc70.webp?v=1714706724","width":2000},{"alt":null,"id":23875730440291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41881137741923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825865315,"product_id":7407965896803,"position":10,"created_at":"2024-05-03T11:25:26+08:00","updated_at":"2024-05-03T11:25:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726","variant_ids":[41881137741923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875730440291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881137905763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825111651,"product_id":7407965896803,"position":8,"created_at":"2024-05-03T11:25:22+08:00","updated_at":"2024-05-03T11:25:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b20ec867c94e2f80404d082e94393d52483eb5_7b3b7920-50f9-45d1-b34c-2151cf652382.webp?v=1714706722","variant_ids":[41881137905763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875729621091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b20ec867c94e2f80404d082e94393d52483eb5_7b3b7920-50f9-45d1-b34c-2151cf652382.webp?v=1714706722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881138331747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470822817891,"product_id":7407965896803,"position":3,"created_at":"2024-05-03T11:25:10+08:00","updated_at":"2024-05-03T11:25:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44ea0bef4b4f170912e83e7c43c6c1b3d2903a4_8fc2fbdc-d881-4147-a269-506e6a1145ad.webp?v=1714706710","variant_ids":[41881138331747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875727261795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44ea0bef4b4f170912e83e7c43c6c1b3d2903a4_8fc2fbdc-d881-4147-a269-506e6a1145ad.webp?v=1714706710"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881137741923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825865315,"product_id":7407965896803,"position":10,"created_at":"2024-05-03T11:25:26+08:00","updated_at":"2024-05-03T11:25:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726","variant_ids":[41881137741923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875730440291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80377827a68408df9c03cf8395e78d488d54d957_be34ae0a-3ad4-4899-87f6-5c1ec02f4a82.webp?v=1714706726"}},"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: "停產" }