$product = {"id":7414000713827,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb47","description":null,"published_at":"2024-06-11T17:47:21+08:00","created_at":"2024-05-05T13:58:39+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":41903186313315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31484430581859,"product_id":7414000713827,"position":5,"created_at":"2024-05-05T13:58:50+08:00","updated_at":"2024-05-05T13:58:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730","variant_ids":[41903186313315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23889724637283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903186378851,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31484429402211,"product_id":7414000713827,"position":2,"created_at":"2024-05-05T13:58:44+08:00","updated_at":"2024-05-05T13:58:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fa17324bd7ad398899f7be664ed7d5e374f54e_9a9127d2-86cd-4f36-89bb-1a219f5ad2de.webp?v=1714888724","variant_ids":[41903186378851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23889723424867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fa17324bd7ad398899f7be664ed7d5e374f54e_9a9127d2-86cd-4f36-89bb-1a219f5ad2de.webp?v=1714888724"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903186608227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31484430975075,"product_id":7414000713827,"position":6,"created_at":"2024-05-05T13:58:52+08:00","updated_at":"2024-05-05T13:58:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b36051326a990690729e6b3490735c7fd1f0d_221b5954-87e5-43a3-b435-42d2a623d598.webp?v=1714888732","variant_ids":[41903186608227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23889724997731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b36051326a990690729e6b3490735c7fd1f0d_221b5954-87e5-43a3-b435-42d2a623d598.webp?v=1714888732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5471d5b27cacc6e5cfdd38cdf2b7bbbb7a90a25_d236659d-9bfa-4456-a367-31aac70e363c.webp?v=1714888721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fa17324bd7ad398899f7be664ed7d5e374f54e_9a9127d2-86cd-4f36-89bb-1a219f5ad2de.webp?v=1714888724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a73448832d81280ad5bd2ddd62516951f76464_3b5c98d4-ea8f-451d-89ef-e322aa8f0a02.webp?v=1714888726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b68b8595f2e875a3b197636bc1dcecb407ce234e_5625d47f-a5a9-40d6-8f6b-622c67bda8c2.webp?v=1714888728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b36051326a990690729e6b3490735c7fd1f0d_221b5954-87e5-43a3-b435-42d2a623d598.webp?v=1714888732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0804a39587e3664195e4294c48e79161ce83520f_a49a3779-8d1e-408d-a16d-662c1bcc6cc0.webp?v=1714888735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65db38a709a8ffd00f5a85b5007f2b11baf6e5f_59a8864c-27c4-4356-b110-c21365f1118d.webp?v=1714888737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc7d64ecdf30b44c847bab05e9cd8e70f655a43_d4780ca9-8fce-4461-919d-e0f27bf57c6e.webp?v=1714888739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f593e9f00b9216db44fe54011c51c55b1be5771f_f729a500-69dc-4a3a-ab38-18f5854f1319.webp?v=1714888741"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5471d5b27cacc6e5cfdd38cdf2b7bbbb7a90a25_d236659d-9bfa-4456-a367-31aac70e363c.webp?v=1714888721","options":["color"],"media":[{"alt":null,"id":23889722933347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5471d5b27cacc6e5cfdd38cdf2b7bbbb7a90a25_d236659d-9bfa-4456-a367-31aac70e363c.webp?v=1714888721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5471d5b27cacc6e5cfdd38cdf2b7bbbb7a90a25_d236659d-9bfa-4456-a367-31aac70e363c.webp?v=1714888721","width":2000},{"alt":null,"id":23889723424867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fa17324bd7ad398899f7be664ed7d5e374f54e_9a9127d2-86cd-4f36-89bb-1a219f5ad2de.webp?v=1714888724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fa17324bd7ad398899f7be664ed7d5e374f54e_9a9127d2-86cd-4f36-89bb-1a219f5ad2de.webp?v=1714888724","width":2000},{"alt":null,"id":23889723883619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a73448832d81280ad5bd2ddd62516951f76464_3b5c98d4-ea8f-451d-89ef-e322aa8f0a02.webp?v=1714888726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42a73448832d81280ad5bd2ddd62516951f76464_3b5c98d4-ea8f-451d-89ef-e322aa8f0a02.webp?v=1714888726","width":2000},{"alt":null,"id":23889724309603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b68b8595f2e875a3b197636bc1dcecb407ce234e_5625d47f-a5a9-40d6-8f6b-622c67bda8c2.webp?v=1714888728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b68b8595f2e875a3b197636bc1dcecb407ce234e_5625d47f-a5a9-40d6-8f6b-622c67bda8c2.webp?v=1714888728","width":2000},{"alt":null,"id":23889724637283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730","width":2000},{"alt":null,"id":23889724997731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b36051326a990690729e6b3490735c7fd1f0d_221b5954-87e5-43a3-b435-42d2a623d598.webp?v=1714888732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b36051326a990690729e6b3490735c7fd1f0d_221b5954-87e5-43a3-b435-42d2a623d598.webp?v=1714888732","width":2000},{"alt":null,"id":23889725456483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0804a39587e3664195e4294c48e79161ce83520f_a49a3779-8d1e-408d-a16d-662c1bcc6cc0.webp?v=1714888735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0804a39587e3664195e4294c48e79161ce83520f_a49a3779-8d1e-408d-a16d-662c1bcc6cc0.webp?v=1714888735","width":2000},{"alt":null,"id":23889725816931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65db38a709a8ffd00f5a85b5007f2b11baf6e5f_59a8864c-27c4-4356-b110-c21365f1118d.webp?v=1714888737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65db38a709a8ffd00f5a85b5007f2b11baf6e5f_59a8864c-27c4-4356-b110-c21365f1118d.webp?v=1714888737","width":2000},{"alt":null,"id":23889726308451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc7d64ecdf30b44c847bab05e9cd8e70f655a43_d4780ca9-8fce-4461-919d-e0f27bf57c6e.webp?v=1714888739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc7d64ecdf30b44c847bab05e9cd8e70f655a43_d4780ca9-8fce-4461-919d-e0f27bf57c6e.webp?v=1714888739","width":2000},{"alt":null,"id":23889726734435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f593e9f00b9216db44fe54011c51c55b1be5771f_f729a500-69dc-4a3a-ab38-18f5854f1319.webp?v=1714888741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f593e9f00b9216db44fe54011c51c55b1be5771f_f729a500-69dc-4a3a-ab38-18f5854f1319.webp?v=1714888741","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903186313315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31484430581859,"product_id":7414000713827,"position":5,"created_at":"2024-05-05T13:58:50+08:00","updated_at":"2024-05-05T13:58:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730","variant_ids":[41903186313315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23889724637283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903186378851,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31484429402211,"product_id":7414000713827,"position":2,"created_at":"2024-05-05T13:58:44+08:00","updated_at":"2024-05-05T13:58:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fa17324bd7ad398899f7be664ed7d5e374f54e_9a9127d2-86cd-4f36-89bb-1a219f5ad2de.webp?v=1714888724","variant_ids":[41903186378851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23889723424867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fa17324bd7ad398899f7be664ed7d5e374f54e_9a9127d2-86cd-4f36-89bb-1a219f5ad2de.webp?v=1714888724"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903186608227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31484430975075,"product_id":7414000713827,"position":6,"created_at":"2024-05-05T13:58:52+08:00","updated_at":"2024-05-05T13:58:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b36051326a990690729e6b3490735c7fd1f0d_221b5954-87e5-43a3-b435-42d2a623d598.webp?v=1714888732","variant_ids":[41903186608227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23889724997731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2b36051326a990690729e6b3490735c7fd1f0d_221b5954-87e5-43a3-b435-42d2a623d598.webp?v=1714888732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903186313315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31484430581859,"product_id":7414000713827,"position":5,"created_at":"2024-05-05T13:58:50+08:00","updated_at":"2024-05-05T13:58:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730","variant_ids":[41903186313315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23889724637283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab7128358c619ca218274845c70a74a25f20cd4_0a2ab182-c7f2-4d00-9b11-b359e6e02573.webp?v=1714888730"}},"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: "停產" }