$product = {"id":7414034661475,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb21","description":null,"published_at":"2024-06-11T17:48:20+08:00","created_at":"2024-05-05T14:05:19+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 13 mini","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":41903570878563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515549283,"product_id":7414034661475,"position":7,"created_at":"2024-05-05T14:05:37+08:00","updated_at":"2024-05-05T14:05:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137","variant_ids":[41903570878563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - 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":"MPB0122824-PB21","featured_media":{"alt":null,"id":23889809670243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903570944099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515811427,"product_id":7414034661475,"position":8,"created_at":"2024-05-05T14:05:40+08:00","updated_at":"2024-05-05T14:05:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194972a317cccc51e3793808b025165e01fd173e_64494c7b-9e86-4a9a-b7b6-9435e50456ee.webp?v=1714889140","variant_ids":[41903570944099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - 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":"MPB0122804-PB21","featured_media":{"alt":null,"id":23889809997923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194972a317cccc51e3793808b025165e01fd173e_64494c7b-9e86-4a9a-b7b6-9435e50456ee.webp?v=1714889140"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903571173475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515057763,"product_id":7414034661475,"position":6,"created_at":"2024-05-05T14:05:35+08:00","updated_at":"2024-05-05T14:05:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2e98be2fdb981736945c4d4b678b8b2a8dad96_c4b954e1-53c7-419b-a5fb-38a17c8e4385.webp?v=1714889135","variant_ids":[41903571173475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - 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":"MPB01228J5-PB21","featured_media":{"alt":null,"id":23889809211491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2e98be2fdb981736945c4d4b678b8b2a8dad96_c4b954e1-53c7-419b-a5fb-38a17c8e4385.webp?v=1714889135"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4518ac9fb492365e123c4f78949ee05652decd9d_7c9da482-2e7d-4d2c-b549-650fd638c1d5.webp?v=1714889122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33dd017f726bbea6d4c6c154b12a11e7c5c9a8fb_b3e19cce-dff5-4153-891d-a5c1a0023758.webp?v=1714889124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53649ef0ff76f372110ccd43072ec89780d6faf6_c797903f-e3ce-41c3-85a9-8fdaf0d11c1d.webp?v=1714889127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/127e5dc785c92b47b203bbcdfdcbd8a3a9c7f433_ec632a6d-adb8-4d95-b044-58d4ae9d3d3c.webp?v=1714889130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d612169daf164be5a67559601972e0fc290b45a_7f33fbd7-eb19-4247-8a10-656bf4b83ccd.webp?v=1714889132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2e98be2fdb981736945c4d4b678b8b2a8dad96_c4b954e1-53c7-419b-a5fb-38a17c8e4385.webp?v=1714889135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194972a317cccc51e3793808b025165e01fd173e_64494c7b-9e86-4a9a-b7b6-9435e50456ee.webp?v=1714889140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cee1ca744ae59f95c1e3bc7158feead4c5d742_1c0c21fd-531d-44a5-b6f3-ba4b68a52cc1.webp?v=1714889142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47cf5569079dae14984aea6432eec6674bc3f3a_f6cecdff-d52e-4fd6-86bf-dc0acb889e67.webp?v=1714889145"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4518ac9fb492365e123c4f78949ee05652decd9d_7c9da482-2e7d-4d2c-b549-650fd638c1d5.webp?v=1714889122","options":["color"],"media":[{"alt":null,"id":23889806688355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4518ac9fb492365e123c4f78949ee05652decd9d_7c9da482-2e7d-4d2c-b549-650fd638c1d5.webp?v=1714889122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4518ac9fb492365e123c4f78949ee05652decd9d_7c9da482-2e7d-4d2c-b549-650fd638c1d5.webp?v=1714889122","width":2000},{"alt":null,"id":23889807343715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33dd017f726bbea6d4c6c154b12a11e7c5c9a8fb_b3e19cce-dff5-4153-891d-a5c1a0023758.webp?v=1714889124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33dd017f726bbea6d4c6c154b12a11e7c5c9a8fb_b3e19cce-dff5-4153-891d-a5c1a0023758.webp?v=1714889124","width":2000},{"alt":null,"id":23889807769699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53649ef0ff76f372110ccd43072ec89780d6faf6_c797903f-e3ce-41c3-85a9-8fdaf0d11c1d.webp?v=1714889127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53649ef0ff76f372110ccd43072ec89780d6faf6_c797903f-e3ce-41c3-85a9-8fdaf0d11c1d.webp?v=1714889127","width":2000},{"alt":null,"id":23889808293987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/127e5dc785c92b47b203bbcdfdcbd8a3a9c7f433_ec632a6d-adb8-4d95-b044-58d4ae9d3d3c.webp?v=1714889130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/127e5dc785c92b47b203bbcdfdcbd8a3a9c7f433_ec632a6d-adb8-4d95-b044-58d4ae9d3d3c.webp?v=1714889130","width":2000},{"alt":null,"id":23889808785507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d612169daf164be5a67559601972e0fc290b45a_7f33fbd7-eb19-4247-8a10-656bf4b83ccd.webp?v=1714889132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d612169daf164be5a67559601972e0fc290b45a_7f33fbd7-eb19-4247-8a10-656bf4b83ccd.webp?v=1714889132","width":2000},{"alt":null,"id":23889809211491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2e98be2fdb981736945c4d4b678b8b2a8dad96_c4b954e1-53c7-419b-a5fb-38a17c8e4385.webp?v=1714889135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2e98be2fdb981736945c4d4b678b8b2a8dad96_c4b954e1-53c7-419b-a5fb-38a17c8e4385.webp?v=1714889135","width":2000},{"alt":null,"id":23889809670243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137","width":2000},{"alt":null,"id":23889809997923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194972a317cccc51e3793808b025165e01fd173e_64494c7b-9e86-4a9a-b7b6-9435e50456ee.webp?v=1714889140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194972a317cccc51e3793808b025165e01fd173e_64494c7b-9e86-4a9a-b7b6-9435e50456ee.webp?v=1714889140","width":2000},{"alt":null,"id":23889810391139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cee1ca744ae59f95c1e3bc7158feead4c5d742_1c0c21fd-531d-44a5-b6f3-ba4b68a52cc1.webp?v=1714889142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7cee1ca744ae59f95c1e3bc7158feead4c5d742_1c0c21fd-531d-44a5-b6f3-ba4b68a52cc1.webp?v=1714889142","width":2000},{"alt":null,"id":23889810718819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47cf5569079dae14984aea6432eec6674bc3f3a_f6cecdff-d52e-4fd6-86bf-dc0acb889e67.webp?v=1714889145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47cf5569079dae14984aea6432eec6674bc3f3a_f6cecdff-d52e-4fd6-86bf-dc0acb889e67.webp?v=1714889145","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41903570878563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515549283,"product_id":7414034661475,"position":7,"created_at":"2024-05-05T14:05:37+08:00","updated_at":"2024-05-05T14:05:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137","variant_ids":[41903570878563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - 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":"MPB0122824-PB21","featured_media":{"alt":null,"id":23889809670243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903570944099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515811427,"product_id":7414034661475,"position":8,"created_at":"2024-05-05T14:05:40+08:00","updated_at":"2024-05-05T14:05:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194972a317cccc51e3793808b025165e01fd173e_64494c7b-9e86-4a9a-b7b6-9435e50456ee.webp?v=1714889140","variant_ids":[41903570944099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - 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":"MPB0122804-PB21","featured_media":{"alt":null,"id":23889809997923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/194972a317cccc51e3793808b025165e01fd173e_64494c7b-9e86-4a9a-b7b6-9435e50456ee.webp?v=1714889140"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903571173475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515057763,"product_id":7414034661475,"position":6,"created_at":"2024-05-05T14:05:35+08:00","updated_at":"2024-05-05T14:05:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2e98be2fdb981736945c4d4b678b8b2a8dad96_c4b954e1-53c7-419b-a5fb-38a17c8e4385.webp?v=1714889135","variant_ids":[41903571173475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - 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":"MPB01228J5-PB21","featured_media":{"alt":null,"id":23889809211491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c2e98be2fdb981736945c4d4b678b8b2a8dad96_c4b954e1-53c7-419b-a5fb-38a17c8e4385.webp?v=1714889135"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903570878563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515549283,"product_id":7414034661475,"position":7,"created_at":"2024-05-05T14:05:37+08:00","updated_at":"2024-05-05T14:05:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137","variant_ids":[41903570878563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - 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":"MPB0122824-PB21","featured_media":{"alt":null,"id":23889809670243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05406779aaa1ffcb7612eff335ef8c08e5aa2698_cc30a0df-c882-4356-9427-1aae041739dd.webp?v=1714889137"}},"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: "停產" }