$product = {"id":7408171483235,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報","handle":"iphone-13-mini-mod-nx-printable-pb101","description":null,"published_at":"2024-06-11T16:33:19+08:00","created_at":"2024-05-03T12:13:47+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 13 mini","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":41883476394083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471374172259,"product_id":7408171483235,"position":1,"created_at":"2024-05-03T12:13:50+08:00","updated_at":"2024-05-03T12:13:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630","variant_ids":[41883476394083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB101","featured_media":{"alt":null,"id":23876280287331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883476492387,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471379447907,"product_id":7408171483235,"position":10,"created_at":"2024-05-03T12:14:11+08:00","updated_at":"2024-05-03T12:14:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dbb1842d16b21aec7c17af758676273adb0165_1ff1fe61-d00d-4a80-9f3e-1ed4a4cb7727.webp?v=1714709651","variant_ids":[41883476492387]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB101","featured_media":{"alt":null,"id":23876285562979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dbb1842d16b21aec7c17af758676273adb0165_1ff1fe61-d00d-4a80-9f3e-1ed4a4cb7727.webp?v=1714709651"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883476721763,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471376007267,"product_id":7408171483235,"position":3,"created_at":"2024-05-03T12:13:55+08:00","updated_at":"2024-05-03T12:13:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a211099f341a4cc92978dc2c07392055004f6041_76dd20e8-96d4-4607-a4b8-cd96dd7cff91.webp?v=1714709635","variant_ids":[41883476721763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB101","featured_media":{"alt":null,"id":23876282155107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a211099f341a4cc92978dc2c07392055004f6041_76dd20e8-96d4-4607-a4b8-cd96dd7cff91.webp?v=1714709635"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a2720359a0475b34a18735e2c41da4f6af60735_eeee6c4c-8794-49c7-bdde-4fa4be2eb0fe.webp?v=1714709632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a211099f341a4cc92978dc2c07392055004f6041_76dd20e8-96d4-4607-a4b8-cd96dd7cff91.webp?v=1714709635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cfdadeb70c768d93ec9a33247653c85fa516ac_7e6e4223-8aed-491e-9e4a-339cbaad8f3c.webp?v=1714709637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a39a8d0a751cea219977b4ed6fd70f9a87ba4d5_a34cb617-13f5-467e-aaf9-123ec468f6c1.webp?v=1714709639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6114d671bdeef1c368c5bc31bfe6aa7d2aad921_a4edffb1-3292-4446-9cf7-7c0297095aff.webp?v=1714709642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a683c1e03500711cd6b9e301deadd25db2fede8_4ee4da00-ca31-4eac-be63-28f723e150b6.webp?v=1714709644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a30dd463bae1cb990c0741001333dcf2c4daf1c_dd707561-c1ec-4579-859e-33a58ed4dfee.webp?v=1714709646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f4d0ee197629be5bdd4e60ae0b91782c9858f1_a3321e96-264e-48b4-8de1-fde9606b07cb.webp?v=1714709648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dbb1842d16b21aec7c17af758676273adb0165_1ff1fe61-d00d-4a80-9f3e-1ed4a4cb7727.webp?v=1714709651"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630","options":["color"],"media":[{"alt":null,"id":23876280287331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630","width":2000},{"alt":null,"id":23876281696355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a2720359a0475b34a18735e2c41da4f6af60735_eeee6c4c-8794-49c7-bdde-4fa4be2eb0fe.webp?v=1714709632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a2720359a0475b34a18735e2c41da4f6af60735_eeee6c4c-8794-49c7-bdde-4fa4be2eb0fe.webp?v=1714709632","width":2000},{"alt":null,"id":23876282155107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a211099f341a4cc92978dc2c07392055004f6041_76dd20e8-96d4-4607-a4b8-cd96dd7cff91.webp?v=1714709635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a211099f341a4cc92978dc2c07392055004f6041_76dd20e8-96d4-4607-a4b8-cd96dd7cff91.webp?v=1714709635","width":2000},{"alt":null,"id":23876282646627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cfdadeb70c768d93ec9a33247653c85fa516ac_7e6e4223-8aed-491e-9e4a-339cbaad8f3c.webp?v=1714709637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cfdadeb70c768d93ec9a33247653c85fa516ac_7e6e4223-8aed-491e-9e4a-339cbaad8f3c.webp?v=1714709637","width":2000},{"alt":null,"id":23876283039843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a39a8d0a751cea219977b4ed6fd70f9a87ba4d5_a34cb617-13f5-467e-aaf9-123ec468f6c1.webp?v=1714709639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a39a8d0a751cea219977b4ed6fd70f9a87ba4d5_a34cb617-13f5-467e-aaf9-123ec468f6c1.webp?v=1714709639","width":2000},{"alt":null,"id":23876283498595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6114d671bdeef1c368c5bc31bfe6aa7d2aad921_a4edffb1-3292-4446-9cf7-7c0297095aff.webp?v=1714709642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6114d671bdeef1c368c5bc31bfe6aa7d2aad921_a4edffb1-3292-4446-9cf7-7c0297095aff.webp?v=1714709642","width":2000},{"alt":null,"id":23876283957347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a683c1e03500711cd6b9e301deadd25db2fede8_4ee4da00-ca31-4eac-be63-28f723e150b6.webp?v=1714709644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a683c1e03500711cd6b9e301deadd25db2fede8_4ee4da00-ca31-4eac-be63-28f723e150b6.webp?v=1714709644","width":2000},{"alt":null,"id":23876284579939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a30dd463bae1cb990c0741001333dcf2c4daf1c_dd707561-c1ec-4579-859e-33a58ed4dfee.webp?v=1714709646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a30dd463bae1cb990c0741001333dcf2c4daf1c_dd707561-c1ec-4579-859e-33a58ed4dfee.webp?v=1714709646","width":2000},{"alt":null,"id":23876285071459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f4d0ee197629be5bdd4e60ae0b91782c9858f1_a3321e96-264e-48b4-8de1-fde9606b07cb.webp?v=1714709648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f4d0ee197629be5bdd4e60ae0b91782c9858f1_a3321e96-264e-48b4-8de1-fde9606b07cb.webp?v=1714709648","width":2000},{"alt":null,"id":23876285562979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dbb1842d16b21aec7c17af758676273adb0165_1ff1fe61-d00d-4a80-9f3e-1ed4a4cb7727.webp?v=1714709651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dbb1842d16b21aec7c17af758676273adb0165_1ff1fe61-d00d-4a80-9f3e-1ed4a4cb7727.webp?v=1714709651","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41883476394083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471374172259,"product_id":7408171483235,"position":1,"created_at":"2024-05-03T12:13:50+08:00","updated_at":"2024-05-03T12:13:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630","variant_ids":[41883476394083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB101","featured_media":{"alt":null,"id":23876280287331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883476492387,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471379447907,"product_id":7408171483235,"position":10,"created_at":"2024-05-03T12:14:11+08:00","updated_at":"2024-05-03T12:14:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dbb1842d16b21aec7c17af758676273adb0165_1ff1fe61-d00d-4a80-9f3e-1ed4a4cb7727.webp?v=1714709651","variant_ids":[41883476492387]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB101","featured_media":{"alt":null,"id":23876285562979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dbb1842d16b21aec7c17af758676273adb0165_1ff1fe61-d00d-4a80-9f3e-1ed4a4cb7727.webp?v=1714709651"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883476721763,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471376007267,"product_id":7408171483235,"position":3,"created_at":"2024-05-03T12:13:55+08:00","updated_at":"2024-05-03T12:13:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a211099f341a4cc92978dc2c07392055004f6041_76dd20e8-96d4-4607-a4b8-cd96dd7cff91.webp?v=1714709635","variant_ids":[41883476721763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB101","featured_media":{"alt":null,"id":23876282155107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a211099f341a4cc92978dc2c07392055004f6041_76dd20e8-96d4-4607-a4b8-cd96dd7cff91.webp?v=1714709635"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883476394083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471374172259,"product_id":7408171483235,"position":1,"created_at":"2024-05-03T12:13:50+08:00","updated_at":"2024-05-03T12:13:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630","variant_ids":[41883476394083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB101","featured_media":{"alt":null,"id":23876280287331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accac071d8f55e11f332da0ffbf2b1683ab6dba0_70ceb999-ff70-4fe1-a1c2-1e5a34481718.webp?v=1714709630"}},"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: "停產" }