$product = {"id":7414307029091,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb06","description":null,"published_at":"2024-06-11T17:50:41+08:00","created_at":"2024-05-05T14:21:18+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":41905603510371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485134372963,"product_id":7414307029091,"position":8,"created_at":"2024-05-05T14:21:36+08:00","updated_at":"2024-05-05T14:21:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096","variant_ids":[41905603510371]},"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-PB06","featured_media":{"alt":null,"id":23890450612323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905603575907,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485123002467,"product_id":7414307029091,"position":4,"created_at":"2024-05-05T14:21:27+08:00","updated_at":"2024-05-05T14:21:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae0a6647b7d3d1a84b7591ee3e8993d0b9d9aa9_acf8db2c-5e53-4802-b6e0-927e5f563642.webp?v=1714890087","variant_ids":[41905603575907]},"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-PB06","featured_media":{"alt":null,"id":23890439077987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae0a6647b7d3d1a84b7591ee3e8993d0b9d9aa9_acf8db2c-5e53-4802-b6e0-927e5f563642.webp?v=1714890087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905603903587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485128736867,"product_id":7414307029091,"position":6,"created_at":"2024-05-05T14:21:32+08:00","updated_at":"2024-05-05T14:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440d03d7193dc9e2044d7fd3d2b502d605aa845c_5500d7fc-a5d9-455e-8ebe-cd81817c4c48.webp?v=1714890092","variant_ids":[41905603903587]},"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-PB06","featured_media":{"alt":null,"id":23890444910691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440d03d7193dc9e2044d7fd3d2b502d605aa845c_5500d7fc-a5d9-455e-8ebe-cd81817c4c48.webp?v=1714890092"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dc90be3dc3469e7c49f34e76328519cc1ac6b5_efdc4ebb-a34b-4438-a874-72be38579b7a.webp?v=1714890080","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3873fb828c632ab8279c68d7a0efcc41745747_476b75f4-a3ae-41f9-9d95-3154795d98ba.webp?v=1714890082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f29654fbfc51773cb5eee741100597acb8fc11_f460e1ce-4da4-40c9-b4a4-34c726bb8cfc.webp?v=1714890084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae0a6647b7d3d1a84b7591ee3e8993d0b9d9aa9_acf8db2c-5e53-4802-b6e0-927e5f563642.webp?v=1714890087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe66af4925a8fb84c2f3a4ff2401f9c1821f067_f788cf3a-315c-46a3-9906-d752d6918118.webp?v=1714890089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440d03d7193dc9e2044d7fd3d2b502d605aa845c_5500d7fc-a5d9-455e-8ebe-cd81817c4c48.webp?v=1714890092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f8a3c68571c506d0bb5fb297573ddd270fd65a_985fdb38-2c0a-44e5-a03f-92f038550a1e.webp?v=1714890094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be1c89b2cf21c57d86c146bdcbfb0085f977c57_187f0e21-55dc-4473-989b-0b66db9804c7.webp?v=1714890098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2210af166aa524d019fc25c009cde2e6d25177_3ccca189-480d-443c-9893-b8f3a92700c9.webp?v=1714890101"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dc90be3dc3469e7c49f34e76328519cc1ac6b5_efdc4ebb-a34b-4438-a874-72be38579b7a.webp?v=1714890080","options":["color"],"media":[{"alt":null,"id":23890431213667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dc90be3dc3469e7c49f34e76328519cc1ac6b5_efdc4ebb-a34b-4438-a874-72be38579b7a.webp?v=1714890080"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dc90be3dc3469e7c49f34e76328519cc1ac6b5_efdc4ebb-a34b-4438-a874-72be38579b7a.webp?v=1714890080","width":2000},{"alt":null,"id":23890433671267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3873fb828c632ab8279c68d7a0efcc41745747_476b75f4-a3ae-41f9-9d95-3154795d98ba.webp?v=1714890082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3873fb828c632ab8279c68d7a0efcc41745747_476b75f4-a3ae-41f9-9d95-3154795d98ba.webp?v=1714890082","width":2000},{"alt":null,"id":23890436096099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f29654fbfc51773cb5eee741100597acb8fc11_f460e1ce-4da4-40c9-b4a4-34c726bb8cfc.webp?v=1714890084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f29654fbfc51773cb5eee741100597acb8fc11_f460e1ce-4da4-40c9-b4a4-34c726bb8cfc.webp?v=1714890084","width":2000},{"alt":null,"id":23890439077987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae0a6647b7d3d1a84b7591ee3e8993d0b9d9aa9_acf8db2c-5e53-4802-b6e0-927e5f563642.webp?v=1714890087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae0a6647b7d3d1a84b7591ee3e8993d0b9d9aa9_acf8db2c-5e53-4802-b6e0-927e5f563642.webp?v=1714890087","width":2000},{"alt":null,"id":23890441830499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe66af4925a8fb84c2f3a4ff2401f9c1821f067_f788cf3a-315c-46a3-9906-d752d6918118.webp?v=1714890089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe66af4925a8fb84c2f3a4ff2401f9c1821f067_f788cf3a-315c-46a3-9906-d752d6918118.webp?v=1714890089","width":2000},{"alt":null,"id":23890444910691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440d03d7193dc9e2044d7fd3d2b502d605aa845c_5500d7fc-a5d9-455e-8ebe-cd81817c4c48.webp?v=1714890092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440d03d7193dc9e2044d7fd3d2b502d605aa845c_5500d7fc-a5d9-455e-8ebe-cd81817c4c48.webp?v=1714890092","width":2000},{"alt":null,"id":23890447794275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f8a3c68571c506d0bb5fb297573ddd270fd65a_985fdb38-2c0a-44e5-a03f-92f038550a1e.webp?v=1714890094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f8a3c68571c506d0bb5fb297573ddd270fd65a_985fdb38-2c0a-44e5-a03f-92f038550a1e.webp?v=1714890094","width":2000},{"alt":null,"id":23890450612323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096","width":2000},{"alt":null,"id":23890453168227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be1c89b2cf21c57d86c146bdcbfb0085f977c57_187f0e21-55dc-4473-989b-0b66db9804c7.webp?v=1714890098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7be1c89b2cf21c57d86c146bdcbfb0085f977c57_187f0e21-55dc-4473-989b-0b66db9804c7.webp?v=1714890098","width":2000},{"alt":null,"id":23890455691363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2210af166aa524d019fc25c009cde2e6d25177_3ccca189-480d-443c-9893-b8f3a92700c9.webp?v=1714890101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2210af166aa524d019fc25c009cde2e6d25177_3ccca189-480d-443c-9893-b8f3a92700c9.webp?v=1714890101","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905603510371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485134372963,"product_id":7414307029091,"position":8,"created_at":"2024-05-05T14:21:36+08:00","updated_at":"2024-05-05T14:21:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096","variant_ids":[41905603510371]},"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-PB06","featured_media":{"alt":null,"id":23890450612323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905603575907,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485123002467,"product_id":7414307029091,"position":4,"created_at":"2024-05-05T14:21:27+08:00","updated_at":"2024-05-05T14:21:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae0a6647b7d3d1a84b7591ee3e8993d0b9d9aa9_acf8db2c-5e53-4802-b6e0-927e5f563642.webp?v=1714890087","variant_ids":[41905603575907]},"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-PB06","featured_media":{"alt":null,"id":23890439077987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae0a6647b7d3d1a84b7591ee3e8993d0b9d9aa9_acf8db2c-5e53-4802-b6e0-927e5f563642.webp?v=1714890087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905603903587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485128736867,"product_id":7414307029091,"position":6,"created_at":"2024-05-05T14:21:32+08:00","updated_at":"2024-05-05T14:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440d03d7193dc9e2044d7fd3d2b502d605aa845c_5500d7fc-a5d9-455e-8ebe-cd81817c4c48.webp?v=1714890092","variant_ids":[41905603903587]},"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-PB06","featured_media":{"alt":null,"id":23890444910691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440d03d7193dc9e2044d7fd3d2b502d605aa845c_5500d7fc-a5d9-455e-8ebe-cd81817c4c48.webp?v=1714890092"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905603510371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485134372963,"product_id":7414307029091,"position":8,"created_at":"2024-05-05T14:21:36+08:00","updated_at":"2024-05-05T14:21:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096","variant_ids":[41905603510371]},"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-PB06","featured_media":{"alt":null,"id":23890450612323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ca2d9763b7e95f23813e42de45feff1f02f18_27ef9aac-335e-477c-b6ee-ee3d4240fd98.webp?v=1714890096"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(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: "停產" }