$product = {"id":7411444318307,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火)","handle":"iphone-14-pro-mod-nx-magsafe-printable-af03","description":null,"published_at":"2024-06-11T17:45:11+08:00","created_at":"2024-05-05T00:31:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41898969399395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480442028131,"product_id":7411444318307,"position":5,"created_at":"2024-05-05T00:31:14+08:00","updated_at":"2024-05-05T00:31:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274","variant_ids":[41898969399395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF03","featured_media":{"alt":null,"id":23885693714531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898969464931,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480443011171,"product_id":7411444318307,"position":7,"created_at":"2024-05-05T00:31:19+08:00","updated_at":"2024-05-05T00:31:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ffb6d5f18dc6b2a8e27867e3d8e4125c33378c_c48be600-8010-4b10-a55d-791ff12fe5b9.webp?v=1714840279","variant_ids":[41898969464931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-AF03","featured_media":{"alt":null,"id":23885694697571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ffb6d5f18dc6b2a8e27867e3d8e4125c33378c_c48be600-8010-4b10-a55d-791ff12fe5b9.webp?v=1714840279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898969694307,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480442650723,"product_id":7411444318307,"position":6,"created_at":"2024-05-05T00:31:17+08:00","updated_at":"2024-05-05T00:31:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e88d4c60812d6edecb773697a2b91e6e6d9ac7_eced04bc-92a8-4183-86a0-83d1ded3dc71.webp?v=1714840277","variant_ids":[41898969694307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-AF03","featured_media":{"alt":null,"id":23885694337123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e88d4c60812d6edecb773697a2b91e6e6d9ac7_eced04bc-92a8-4183-86a0-83d1ded3dc71.webp?v=1714840277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/901449aeb4b340c76ee43c5d8afa087b0d580b27_297b0557-5353-42cc-a757-dadadc82ef72.webp?v=1714840264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925fbf9c0de818f449cdd2b2cb6ce0aa1536046b_777c13c2-7fac-474e-a4c3-09e3eb9ec5ed.webp?v=1714840267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec5b05996b984bf901cc37338ee476c1918ffe3_8e272ef3-af2e-4c99-bd81-9be7e619d597.webp?v=1714840269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6161bf553c0429e45d5de9e6497f28889a1164_796028b5-ea31-437d-b95d-9e86caf56723.webp?v=1714840272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e88d4c60812d6edecb773697a2b91e6e6d9ac7_eced04bc-92a8-4183-86a0-83d1ded3dc71.webp?v=1714840277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ffb6d5f18dc6b2a8e27867e3d8e4125c33378c_c48be600-8010-4b10-a55d-791ff12fe5b9.webp?v=1714840279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c42be4a6ecaa143944058a40ffecf4ee09e38cd_ddf04bc9-ddcf-4815-b1d3-961c67045745.webp?v=1714840282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07d04e99e9a0055c9fafbe44ded7016ad8f5852a_1001b37c-07d2-4539-b6d8-c24ece80f412.webp?v=1714840285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6757e2521e7d62eae22c65383fcbd951a2e3e01_00355d32-f8cd-4f9a-b36a-384a59345be0.webp?v=1714840287"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/901449aeb4b340c76ee43c5d8afa087b0d580b27_297b0557-5353-42cc-a757-dadadc82ef72.webp?v=1714840264","options":["color"],"media":[{"alt":null,"id":23885690929251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/901449aeb4b340c76ee43c5d8afa087b0d580b27_297b0557-5353-42cc-a757-dadadc82ef72.webp?v=1714840264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/901449aeb4b340c76ee43c5d8afa087b0d580b27_297b0557-5353-42cc-a757-dadadc82ef72.webp?v=1714840264","width":2000},{"alt":null,"id":23885691519075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925fbf9c0de818f449cdd2b2cb6ce0aa1536046b_777c13c2-7fac-474e-a4c3-09e3eb9ec5ed.webp?v=1714840267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/925fbf9c0de818f449cdd2b2cb6ce0aa1536046b_777c13c2-7fac-474e-a4c3-09e3eb9ec5ed.webp?v=1714840267","width":2000},{"alt":null,"id":23885692567651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec5b05996b984bf901cc37338ee476c1918ffe3_8e272ef3-af2e-4c99-bd81-9be7e619d597.webp?v=1714840269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eec5b05996b984bf901cc37338ee476c1918ffe3_8e272ef3-af2e-4c99-bd81-9be7e619d597.webp?v=1714840269","width":2000},{"alt":null,"id":23885693124707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6161bf553c0429e45d5de9e6497f28889a1164_796028b5-ea31-437d-b95d-9e86caf56723.webp?v=1714840272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6161bf553c0429e45d5de9e6497f28889a1164_796028b5-ea31-437d-b95d-9e86caf56723.webp?v=1714840272","width":2000},{"alt":null,"id":23885693714531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274","width":2000},{"alt":null,"id":23885694337123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e88d4c60812d6edecb773697a2b91e6e6d9ac7_eced04bc-92a8-4183-86a0-83d1ded3dc71.webp?v=1714840277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e88d4c60812d6edecb773697a2b91e6e6d9ac7_eced04bc-92a8-4183-86a0-83d1ded3dc71.webp?v=1714840277","width":2000},{"alt":null,"id":23885694697571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ffb6d5f18dc6b2a8e27867e3d8e4125c33378c_c48be600-8010-4b10-a55d-791ff12fe5b9.webp?v=1714840279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ffb6d5f18dc6b2a8e27867e3d8e4125c33378c_c48be600-8010-4b10-a55d-791ff12fe5b9.webp?v=1714840279","width":2000},{"alt":null,"id":23885695352931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c42be4a6ecaa143944058a40ffecf4ee09e38cd_ddf04bc9-ddcf-4815-b1d3-961c67045745.webp?v=1714840282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c42be4a6ecaa143944058a40ffecf4ee09e38cd_ddf04bc9-ddcf-4815-b1d3-961c67045745.webp?v=1714840282","width":2000},{"alt":null,"id":23885695909987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07d04e99e9a0055c9fafbe44ded7016ad8f5852a_1001b37c-07d2-4539-b6d8-c24ece80f412.webp?v=1714840285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07d04e99e9a0055c9fafbe44ded7016ad8f5852a_1001b37c-07d2-4539-b6d8-c24ece80f412.webp?v=1714840285","width":2000},{"alt":null,"id":23885696467043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6757e2521e7d62eae22c65383fcbd951a2e3e01_00355d32-f8cd-4f9a-b36a-384a59345be0.webp?v=1714840287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6757e2521e7d62eae22c65383fcbd951a2e3e01_00355d32-f8cd-4f9a-b36a-384a59345be0.webp?v=1714840287","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41898969399395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480442028131,"product_id":7411444318307,"position":5,"created_at":"2024-05-05T00:31:14+08:00","updated_at":"2024-05-05T00:31:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274","variant_ids":[41898969399395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF03","featured_media":{"alt":null,"id":23885693714531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898969464931,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480443011171,"product_id":7411444318307,"position":7,"created_at":"2024-05-05T00:31:19+08:00","updated_at":"2024-05-05T00:31:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ffb6d5f18dc6b2a8e27867e3d8e4125c33378c_c48be600-8010-4b10-a55d-791ff12fe5b9.webp?v=1714840279","variant_ids":[41898969464931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-AF03","featured_media":{"alt":null,"id":23885694697571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29ffb6d5f18dc6b2a8e27867e3d8e4125c33378c_c48be600-8010-4b10-a55d-791ff12fe5b9.webp?v=1714840279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898969694307,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480442650723,"product_id":7411444318307,"position":6,"created_at":"2024-05-05T00:31:17+08:00","updated_at":"2024-05-05T00:31:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e88d4c60812d6edecb773697a2b91e6e6d9ac7_eced04bc-92a8-4183-86a0-83d1ded3dc71.webp?v=1714840277","variant_ids":[41898969694307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-AF03","featured_media":{"alt":null,"id":23885694337123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e88d4c60812d6edecb773697a2b91e6e6d9ac7_eced04bc-92a8-4183-86a0-83d1ded3dc71.webp?v=1714840277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898969399395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31480442028131,"product_id":7411444318307,"position":5,"created_at":"2024-05-05T00:31:14+08:00","updated_at":"2024-05-05T00:31:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274","variant_ids":[41898969399395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(加州野火) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF03","featured_media":{"alt":null,"id":23885693714531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d89fd7dc66b0d58e1af653276c69b69cf58fff_c1640f3b-8721-4173-9eb1-93c59c0b01ff.webp?v=1714840274"}},"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: "停產" }