$product = {"id":7414494691427,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pc13","description":null,"published_at":"2024-06-11T17:51:39+08:00","created_at":"2024-05-05T14:27:55+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":41906902794339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31485631561827,"product_id":7414494691427,"position":9,"created_at":"2024-05-05T14:28:16+08:00","updated_at":"2024-05-05T14:28:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496","variant_ids":[41906902794339]},"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-PC13","featured_media":{"alt":null,"id":23890948620387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906902892643,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31485621567587,"product_id":7414494691427,"position":3,"created_at":"2024-05-05T14:28:02+08:00","updated_at":"2024-05-05T14:28:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f2865078bf8c5544ab02989dda2960172eb214_a66d3b0b-21fd-4c42-bbd1-c6ddc433c9a1.webp?v=1714890482","variant_ids":[41906902892643]},"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-PC13","featured_media":{"alt":null,"id":23890938036323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f2865078bf8c5544ab02989dda2960172eb214_a66d3b0b-21fd-4c42-bbd1-c6ddc433c9a1.webp?v=1714890482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906903220323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31485617635427,"product_id":7414494691427,"position":1,"created_at":"2024-05-05T14:27:57+08:00","updated_at":"2024-05-05T14:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477","variant_ids":[41906903220323]},"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-PC13","featured_media":{"alt":null,"id":23890934005859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c097028b0df99e4542515d6f933f19867fe570a_4071afaf-118c-495f-a509-b0623cc2acdd.webp?v=1714890480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f2865078bf8c5544ab02989dda2960172eb214_a66d3b0b-21fd-4c42-bbd1-c6ddc433c9a1.webp?v=1714890482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e806935c81f647ac766625511708dff3658976d6_7b1e9849-f8da-4636-a0fe-7960fa2e1289.webp?v=1714890484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/080c963d04e1bb4f0b6eccfde86ef1d6a95f40cd_8900a98a-2899-4bce-8e07-a6ce31c8bb8c.webp?v=1714890487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c534649157d1485abeea7b3b30f2a40f1e5fa9_e1783bec-8b9d-4975-bb0f-f770aa6421e9.webp?v=1714890489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49d7b88082f1308b956391ae76fb5867db06ecf_097748e6-2055-4797-8a5e-41a27ce08430.webp?v=1714890491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ac1c07a270eb0e29209d59d35fb14a88070bcc_530fdb27-d633-4e71-a1cb-bef93f739dc1.webp?v=1714890493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd36a4590c0b67c7f20e3af78b25c65a7e7715b7_aa6eaf6b-b44a-4f92-a7bf-137d20ddba61.webp?v=1714890498"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477","options":["color"],"media":[{"alt":null,"id":23890934005859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477","width":2000},{"alt":null,"id":23890936070243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c097028b0df99e4542515d6f933f19867fe570a_4071afaf-118c-495f-a509-b0623cc2acdd.webp?v=1714890480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c097028b0df99e4542515d6f933f19867fe570a_4071afaf-118c-495f-a509-b0623cc2acdd.webp?v=1714890480","width":2000},{"alt":null,"id":23890938036323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f2865078bf8c5544ab02989dda2960172eb214_a66d3b0b-21fd-4c42-bbd1-c6ddc433c9a1.webp?v=1714890482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f2865078bf8c5544ab02989dda2960172eb214_a66d3b0b-21fd-4c42-bbd1-c6ddc433c9a1.webp?v=1714890482","width":2000},{"alt":null,"id":23890940166243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e806935c81f647ac766625511708dff3658976d6_7b1e9849-f8da-4636-a0fe-7960fa2e1289.webp?v=1714890484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e806935c81f647ac766625511708dff3658976d6_7b1e9849-f8da-4636-a0fe-7960fa2e1289.webp?v=1714890484","width":2000},{"alt":null,"id":23890941771875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/080c963d04e1bb4f0b6eccfde86ef1d6a95f40cd_8900a98a-2899-4bce-8e07-a6ce31c8bb8c.webp?v=1714890487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/080c963d04e1bb4f0b6eccfde86ef1d6a95f40cd_8900a98a-2899-4bce-8e07-a6ce31c8bb8c.webp?v=1714890487","width":2000},{"alt":null,"id":23890943344739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c534649157d1485abeea7b3b30f2a40f1e5fa9_e1783bec-8b9d-4975-bb0f-f770aa6421e9.webp?v=1714890489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c534649157d1485abeea7b3b30f2a40f1e5fa9_e1783bec-8b9d-4975-bb0f-f770aa6421e9.webp?v=1714890489","width":2000},{"alt":null,"id":23890945015907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49d7b88082f1308b956391ae76fb5867db06ecf_097748e6-2055-4797-8a5e-41a27ce08430.webp?v=1714890491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49d7b88082f1308b956391ae76fb5867db06ecf_097748e6-2055-4797-8a5e-41a27ce08430.webp?v=1714890491","width":2000},{"alt":null,"id":23890946326627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ac1c07a270eb0e29209d59d35fb14a88070bcc_530fdb27-d633-4e71-a1cb-bef93f739dc1.webp?v=1714890493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ac1c07a270eb0e29209d59d35fb14a88070bcc_530fdb27-d633-4e71-a1cb-bef93f739dc1.webp?v=1714890493","width":2000},{"alt":null,"id":23890948620387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496","width":2000},{"alt":null,"id":23890952224867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd36a4590c0b67c7f20e3af78b25c65a7e7715b7_aa6eaf6b-b44a-4f92-a7bf-137d20ddba61.webp?v=1714890498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd36a4590c0b67c7f20e3af78b25c65a7e7715b7_aa6eaf6b-b44a-4f92-a7bf-137d20ddba61.webp?v=1714890498","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906902794339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31485631561827,"product_id":7414494691427,"position":9,"created_at":"2024-05-05T14:28:16+08:00","updated_at":"2024-05-05T14:28:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496","variant_ids":[41906902794339]},"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-PC13","featured_media":{"alt":null,"id":23890948620387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906902892643,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31485621567587,"product_id":7414494691427,"position":3,"created_at":"2024-05-05T14:28:02+08:00","updated_at":"2024-05-05T14:28:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f2865078bf8c5544ab02989dda2960172eb214_a66d3b0b-21fd-4c42-bbd1-c6ddc433c9a1.webp?v=1714890482","variant_ids":[41906902892643]},"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-PC13","featured_media":{"alt":null,"id":23890938036323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f2865078bf8c5544ab02989dda2960172eb214_a66d3b0b-21fd-4c42-bbd1-c6ddc433c9a1.webp?v=1714890482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906903220323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31485617635427,"product_id":7414494691427,"position":1,"created_at":"2024-05-05T14:27:57+08:00","updated_at":"2024-05-05T14:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477","variant_ids":[41906903220323]},"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-PC13","featured_media":{"alt":null,"id":23890934005859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a5a3ff2905598d85c45e3f2b28a9ada76a8e7d_3e71f119-fb29-4659-809d-6cd5cf33a8d2.webp?v=1714890477"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906902794339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31485631561827,"product_id":7414494691427,"position":9,"created_at":"2024-05-05T14:28:16+08:00","updated_at":"2024-05-05T14:28:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496","variant_ids":[41906902794339]},"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-PC13","featured_media":{"alt":null,"id":23890948620387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ec2aada9ad386363366336930c3f96d2678611f_8707296f-0638-4d36-8951-4dde0a7c6af7.webp?v=1714890496"}},"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: "停產" }