$product = {"id":7414437970019,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb08","description":null,"published_at":"2024-06-11T17:51:19+08:00","created_at":"2024-05-05T14:25:30+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":41906487099491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485480829027,"product_id":7414437970019,"position":10,"created_at":"2024-05-05T14:25:53+08:00","updated_at":"2024-05-05T14:25:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353","variant_ids":[41906487099491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890797985891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906487296099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485462184035,"product_id":7414437970019,"position":4,"created_at":"2024-05-05T14:25:39+08:00","updated_at":"2024-05-05T14:25:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44049d4afc85b08f9d729174fe85b5ec53b7c68_bcbc9dae-6fc1-4b2d-80b7-60881414f779.webp?v=1714890339","variant_ids":[41906487296099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890779340899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44049d4afc85b08f9d729174fe85b5ec53b7c68_bcbc9dae-6fc1-4b2d-80b7-60881414f779.webp?v=1714890339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906487951459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485478076515,"product_id":7414437970019,"position":9,"created_at":"2024-05-05T14:25:51+08:00","updated_at":"2024-05-05T14:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb36b58505131a879e9ad0d502a34e1911efd7f_133c0ba0-fcf3-4af5-bd1f-0415b0da787b.webp?v=1714890351","variant_ids":[41906487951459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890794938467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb36b58505131a879e9ad0d502a34e1911efd7f_133c0ba0-fcf3-4af5-bd1f-0415b0da787b.webp?v=1714890351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd583c58be3a83ab5c10c4980f3be02be287845_739c0c8a-9fd8-4fc4-ae24-500e606bdf05.webp?v=1714890332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df97cb3b4c339564aa3aa4bd20f199bda07e3ad7_256743ea-074a-4fa2-8d11-5e888f6c8706.webp?v=1714890334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97ed775f4665b8ec00f5ec76bb72ed713f218df3_54405f63-a690-4837-8255-b0ee6af6a793.webp?v=1714890337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44049d4afc85b08f9d729174fe85b5ec53b7c68_bcbc9dae-6fc1-4b2d-80b7-60881414f779.webp?v=1714890339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e2ae5e2488b4a2b3dcd86ea8c6248620023a6d5_7c08a969-f705-4422-a32f-eb51f6100efb.webp?v=1714890342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f69f52cf59ceda58369821cd69b7be32c138b6_54e3837a-fc5a-4e12-a685-7f95bca74c00.webp?v=1714890344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b495455084a4b1f6b6c05fb341c28ac45f74727_f11396d6-70fd-45bc-8124-9b86ecaf3909.webp?v=1714890346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9defcf88e058646b28faf79264e5db605017ab3_ab70e993-4a56-43fa-8fda-b150a024e35b.webp?v=1714890349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb36b58505131a879e9ad0d502a34e1911efd7f_133c0ba0-fcf3-4af5-bd1f-0415b0da787b.webp?v=1714890351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd583c58be3a83ab5c10c4980f3be02be287845_739c0c8a-9fd8-4fc4-ae24-500e606bdf05.webp?v=1714890332","options":["color"],"media":[{"alt":null,"id":23890769248355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd583c58be3a83ab5c10c4980f3be02be287845_739c0c8a-9fd8-4fc4-ae24-500e606bdf05.webp?v=1714890332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bd583c58be3a83ab5c10c4980f3be02be287845_739c0c8a-9fd8-4fc4-ae24-500e606bdf05.webp?v=1714890332","width":2000},{"alt":null,"id":23890772820067,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df97cb3b4c339564aa3aa4bd20f199bda07e3ad7_256743ea-074a-4fa2-8d11-5e888f6c8706.webp?v=1714890334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df97cb3b4c339564aa3aa4bd20f199bda07e3ad7_256743ea-074a-4fa2-8d11-5e888f6c8706.webp?v=1714890334","width":2000},{"alt":null,"id":23890776162403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97ed775f4665b8ec00f5ec76bb72ed713f218df3_54405f63-a690-4837-8255-b0ee6af6a793.webp?v=1714890337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97ed775f4665b8ec00f5ec76bb72ed713f218df3_54405f63-a690-4837-8255-b0ee6af6a793.webp?v=1714890337","width":2000},{"alt":null,"id":23890779340899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44049d4afc85b08f9d729174fe85b5ec53b7c68_bcbc9dae-6fc1-4b2d-80b7-60881414f779.webp?v=1714890339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44049d4afc85b08f9d729174fe85b5ec53b7c68_bcbc9dae-6fc1-4b2d-80b7-60881414f779.webp?v=1714890339","width":2000},{"alt":null,"id":23890782912611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e2ae5e2488b4a2b3dcd86ea8c6248620023a6d5_7c08a969-f705-4422-a32f-eb51f6100efb.webp?v=1714890342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e2ae5e2488b4a2b3dcd86ea8c6248620023a6d5_7c08a969-f705-4422-a32f-eb51f6100efb.webp?v=1714890342","width":2000},{"alt":null,"id":23890786091107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f69f52cf59ceda58369821cd69b7be32c138b6_54e3837a-fc5a-4e12-a685-7f95bca74c00.webp?v=1714890344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f69f52cf59ceda58369821cd69b7be32c138b6_54e3837a-fc5a-4e12-a685-7f95bca74c00.webp?v=1714890344","width":2000},{"alt":null,"id":23890789105763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b495455084a4b1f6b6c05fb341c28ac45f74727_f11396d6-70fd-45bc-8124-9b86ecaf3909.webp?v=1714890346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b495455084a4b1f6b6c05fb341c28ac45f74727_f11396d6-70fd-45bc-8124-9b86ecaf3909.webp?v=1714890346","width":2000},{"alt":null,"id":23890792153187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9defcf88e058646b28faf79264e5db605017ab3_ab70e993-4a56-43fa-8fda-b150a024e35b.webp?v=1714890349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9defcf88e058646b28faf79264e5db605017ab3_ab70e993-4a56-43fa-8fda-b150a024e35b.webp?v=1714890349","width":2000},{"alt":null,"id":23890794938467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb36b58505131a879e9ad0d502a34e1911efd7f_133c0ba0-fcf3-4af5-bd1f-0415b0da787b.webp?v=1714890351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb36b58505131a879e9ad0d502a34e1911efd7f_133c0ba0-fcf3-4af5-bd1f-0415b0da787b.webp?v=1714890351","width":2000},{"alt":null,"id":23890797985891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41906487099491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485480829027,"product_id":7414437970019,"position":10,"created_at":"2024-05-05T14:25:53+08:00","updated_at":"2024-05-05T14:25:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353","variant_ids":[41906487099491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890797985891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906487296099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485462184035,"product_id":7414437970019,"position":4,"created_at":"2024-05-05T14:25:39+08:00","updated_at":"2024-05-05T14:25:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44049d4afc85b08f9d729174fe85b5ec53b7c68_bcbc9dae-6fc1-4b2d-80b7-60881414f779.webp?v=1714890339","variant_ids":[41906487296099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890779340899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44049d4afc85b08f9d729174fe85b5ec53b7c68_bcbc9dae-6fc1-4b2d-80b7-60881414f779.webp?v=1714890339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906487951459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485478076515,"product_id":7414437970019,"position":9,"created_at":"2024-05-05T14:25:51+08:00","updated_at":"2024-05-05T14:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb36b58505131a879e9ad0d502a34e1911efd7f_133c0ba0-fcf3-4af5-bd1f-0415b0da787b.webp?v=1714890351","variant_ids":[41906487951459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890794938467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb36b58505131a879e9ad0d502a34e1911efd7f_133c0ba0-fcf3-4af5-bd1f-0415b0da787b.webp?v=1714890351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906487099491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485480829027,"product_id":7414437970019,"position":10,"created_at":"2024-05-05T14:25:53+08:00","updated_at":"2024-05-05T14:25:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353","variant_ids":[41906487099491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23890797985891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78eec3c983e4ce48f06595165f158f69e6e7a916_dee09b7a-db73-4840-ab8c-97cdc07353e5.webp?v=1714890353"}},"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: "停產" }