$product = {"id":7411395493987,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛","handle":"iphone-14-pro-mod-nx-magsafe-printable-yf02","description":null,"published_at":"2024-06-11T17:43:48+08:00","created_at":"2024-05-05T00:21:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41898347528291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480320557155,"product_id":7411395493987,"position":3,"created_at":"2024-05-05T00:21:43+08:00","updated_at":"2024-05-05T00:21:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703","variant_ids":[41898347528291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0126224-YF02","featured_media":{"alt":null,"id":23885572112483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898347593827,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480324751459,"product_id":7411395493987,"position":10,"created_at":"2024-05-05T00:22:01+08:00","updated_at":"2024-05-05T00:22:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1179191f058ad7420eee84faab9e6ee8da8ec1_57c596ef-1484-4328-92c9-c011ab68a75a.webp?v=1714839721","variant_ids":[41898347593827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0126204-YF02","featured_media":{"alt":null,"id":23885576863843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1179191f058ad7420eee84faab9e6ee8da8ec1_57c596ef-1484-4328-92c9-c011ab68a75a.webp?v=1714839721"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898347855971,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480322654307,"product_id":7411395493987,"position":7,"created_at":"2024-05-05T00:21:53+08:00","updated_at":"2024-05-05T00:21:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3daa5a280f9f9fcf9d064ee9edfc4e3ff3cdbb88_25ea4b4c-74de-4d6d-9f5b-3d3b0e0f836b.webp?v=1714839713","variant_ids":[41898347855971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB01262J5-YF02","featured_media":{"alt":null,"id":23885574242403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3daa5a280f9f9fcf9d064ee9edfc4e3ff3cdbb88_25ea4b4c-74de-4d6d-9f5b-3d3b0e0f836b.webp?v=1714839713"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/361261ad339b5214c12d9b42d72fead5c2dc7637_4155a667-1bca-4001-82f7-e529c15d9044.webp?v=1714839698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f39dc1e0953f96f103066d8aa35ed0429612cc9_6a8baef7-6368-4658-aaf4-1c9268296c7f.webp?v=1714839700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4669bc5f1b921e7c9ff3e312c0965dc0817bdd2_58e01a4d-aa44-4c7e-8754-f1135c16e793.webp?v=1714839706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b1703a23744c7b484af19164d6e59496c71667_09544c10-9136-4dd1-b683-844bc5a2b5be.webp?v=1714839708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cabf73c2c3ed349b9b8c1d2ba85255d5d75524b_95c8c071-9624-4422-8af4-6994fce14166.webp?v=1714839710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3daa5a280f9f9fcf9d064ee9edfc4e3ff3cdbb88_25ea4b4c-74de-4d6d-9f5b-3d3b0e0f836b.webp?v=1714839713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea772f282f589edf4f8f6edcaa76506c5b4ff3c_84c41252-eded-47f9-a41a-fbacfb8a62ce.webp?v=1714839716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf7f84d22734b3768340dc2840c08bbfc7321cc_1b7f3731-9256-4ef7-a87c-9f765f94d3ba.webp?v=1714839718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1179191f058ad7420eee84faab9e6ee8da8ec1_57c596ef-1484-4328-92c9-c011ab68a75a.webp?v=1714839721"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/361261ad339b5214c12d9b42d72fead5c2dc7637_4155a667-1bca-4001-82f7-e529c15d9044.webp?v=1714839698","options":["color"],"media":[{"alt":null,"id":23885571063907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/361261ad339b5214c12d9b42d72fead5c2dc7637_4155a667-1bca-4001-82f7-e529c15d9044.webp?v=1714839698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/361261ad339b5214c12d9b42d72fead5c2dc7637_4155a667-1bca-4001-82f7-e529c15d9044.webp?v=1714839698","width":2000},{"alt":null,"id":23885571522659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f39dc1e0953f96f103066d8aa35ed0429612cc9_6a8baef7-6368-4658-aaf4-1c9268296c7f.webp?v=1714839700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f39dc1e0953f96f103066d8aa35ed0429612cc9_6a8baef7-6368-4658-aaf4-1c9268296c7f.webp?v=1714839700","width":2000},{"alt":null,"id":23885572112483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703","width":2000},{"alt":null,"id":23885572669539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4669bc5f1b921e7c9ff3e312c0965dc0817bdd2_58e01a4d-aa44-4c7e-8754-f1135c16e793.webp?v=1714839706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4669bc5f1b921e7c9ff3e312c0965dc0817bdd2_58e01a4d-aa44-4c7e-8754-f1135c16e793.webp?v=1714839706","width":2000},{"alt":null,"id":23885573259363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b1703a23744c7b484af19164d6e59496c71667_09544c10-9136-4dd1-b683-844bc5a2b5be.webp?v=1714839708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b1703a23744c7b484af19164d6e59496c71667_09544c10-9136-4dd1-b683-844bc5a2b5be.webp?v=1714839708","width":2000},{"alt":null,"id":23885573718115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cabf73c2c3ed349b9b8c1d2ba85255d5d75524b_95c8c071-9624-4422-8af4-6994fce14166.webp?v=1714839710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cabf73c2c3ed349b9b8c1d2ba85255d5d75524b_95c8c071-9624-4422-8af4-6994fce14166.webp?v=1714839710","width":2000},{"alt":null,"id":23885574242403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3daa5a280f9f9fcf9d064ee9edfc4e3ff3cdbb88_25ea4b4c-74de-4d6d-9f5b-3d3b0e0f836b.webp?v=1714839713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3daa5a280f9f9fcf9d064ee9edfc4e3ff3cdbb88_25ea4b4c-74de-4d6d-9f5b-3d3b0e0f836b.webp?v=1714839713","width":2000},{"alt":null,"id":23885574930531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea772f282f589edf4f8f6edcaa76506c5b4ff3c_84c41252-eded-47f9-a41a-fbacfb8a62ce.webp?v=1714839716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea772f282f589edf4f8f6edcaa76506c5b4ff3c_84c41252-eded-47f9-a41a-fbacfb8a62ce.webp?v=1714839716","width":2000},{"alt":null,"id":23885575848035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf7f84d22734b3768340dc2840c08bbfc7321cc_1b7f3731-9256-4ef7-a87c-9f765f94d3ba.webp?v=1714839718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf7f84d22734b3768340dc2840c08bbfc7321cc_1b7f3731-9256-4ef7-a87c-9f765f94d3ba.webp?v=1714839718","width":2000},{"alt":null,"id":23885576863843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1179191f058ad7420eee84faab9e6ee8da8ec1_57c596ef-1484-4328-92c9-c011ab68a75a.webp?v=1714839721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1179191f058ad7420eee84faab9e6ee8da8ec1_57c596ef-1484-4328-92c9-c011ab68a75a.webp?v=1714839721","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898347528291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480320557155,"product_id":7411395493987,"position":3,"created_at":"2024-05-05T00:21:43+08:00","updated_at":"2024-05-05T00:21:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703","variant_ids":[41898347528291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0126224-YF02","featured_media":{"alt":null,"id":23885572112483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898347593827,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480324751459,"product_id":7411395493987,"position":10,"created_at":"2024-05-05T00:22:01+08:00","updated_at":"2024-05-05T00:22:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1179191f058ad7420eee84faab9e6ee8da8ec1_57c596ef-1484-4328-92c9-c011ab68a75a.webp?v=1714839721","variant_ids":[41898347593827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0126204-YF02","featured_media":{"alt":null,"id":23885576863843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1179191f058ad7420eee84faab9e6ee8da8ec1_57c596ef-1484-4328-92c9-c011ab68a75a.webp?v=1714839721"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898347855971,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480322654307,"product_id":7411395493987,"position":7,"created_at":"2024-05-05T00:21:53+08:00","updated_at":"2024-05-05T00:21:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3daa5a280f9f9fcf9d064ee9edfc4e3ff3cdbb88_25ea4b4c-74de-4d6d-9f5b-3d3b0e0f836b.webp?v=1714839713","variant_ids":[41898347855971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB01262J5-YF02","featured_media":{"alt":null,"id":23885574242403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3daa5a280f9f9fcf9d064ee9edfc4e3ff3cdbb88_25ea4b4c-74de-4d6d-9f5b-3d3b0e0f836b.webp?v=1714839713"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898347528291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480320557155,"product_id":7411395493987,"position":3,"created_at":"2024-05-05T00:21:43+08:00","updated_at":"2024-05-05T00:21:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703","variant_ids":[41898347528291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 史迪奇 - 搞怪系列-怪可愛 - 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":"MPB0126224-YF02","featured_media":{"alt":null,"id":23885572112483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f2c41cc1a08ab83f80fbf0252109dd07cd5adb_75c324d6-90da-4bfe-97b7-99bcec14ba44.webp?v=1714839703"}},"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: "停產" }