$product = {"id":7414013034595,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb74","description":null,"published_at":"2024-06-11T17:47:42+08:00","created_at":"2024-05-05T14:00:48+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":41903317680227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484456960099,"product_id":7414013034595,"position":6,"created_at":"2024-05-05T14:01:03+08:00","updated_at":"2024-05-05T14:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863","variant_ids":[41903317680227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889751081059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903317745763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484457484387,"product_id":7414013034595,"position":7,"created_at":"2024-05-05T14:01:05+08:00","updated_at":"2024-05-05T14:01:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f718a77cc2d8a44fa6c981cd0f6beae82eac035a_552c5c75-c37e-49f1-a301-df08d0955ce4.webp?v=1714888865","variant_ids":[41903317745763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889751572579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f718a77cc2d8a44fa6c981cd0f6beae82eac035a_552c5c75-c37e-49f1-a301-df08d0955ce4.webp?v=1714888865"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903317975139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484455420003,"product_id":7414013034595,"position":4,"created_at":"2024-05-05T14:00:58+08:00","updated_at":"2024-05-05T14:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3492d0acd1bd8c7f127c35adf634f35ab2e33ec_9debb3c0-4fe8-40c3-9a4f-67c624bf62a9.webp?v=1714888858","variant_ids":[41903317975139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889749540963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3492d0acd1bd8c7f127c35adf634f35ab2e33ec_9debb3c0-4fe8-40c3-9a4f-67c624bf62a9.webp?v=1714888858"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca3215bbabceb276f12814fb299d93a3f415930_1d23b63d-bfe6-4164-8953-23fef73e8cc2.webp?v=1714888850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a509cc84b0f92b975f7f98d4836852397502a452_c49f9b4c-88a4-4208-b1be-640f1b3f3140.webp?v=1714888853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21a7b07bb543f0f5be259b69969d7dd1b01f26ee_a91f21b2-0c26-4b48-9d9c-591d6701f58f.webp?v=1714888855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3492d0acd1bd8c7f127c35adf634f35ab2e33ec_9debb3c0-4fe8-40c3-9a4f-67c624bf62a9.webp?v=1714888858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da44e913c15c07cc9da4fa3a06c9342de519e2e4_fef09f4e-ae6f-40c1-a241-a7d7415c135a.webp?v=1714888860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f718a77cc2d8a44fa6c981cd0f6beae82eac035a_552c5c75-c37e-49f1-a301-df08d0955ce4.webp?v=1714888865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0256196ed35039ac460efee211fa0ac18fa039_60f23ac6-d906-4a99-a508-5a57c95c4b8a.webp?v=1714888868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6940a575c23680e3c72c8b8567bacda8411587b7_f4b42acc-6a22-46a6-a97a-f26ee9890a4a.webp?v=1714888870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b7eb4f617c8cf30bce41b0ec8b5a7ee1be4fe2_f29c5b3a-4e43-4f27-ac5d-44899c19f9ce.webp?v=1714888872"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca3215bbabceb276f12814fb299d93a3f415930_1d23b63d-bfe6-4164-8953-23fef73e8cc2.webp?v=1714888850","options":["color"],"media":[{"alt":null,"id":23889748099171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca3215bbabceb276f12814fb299d93a3f415930_1d23b63d-bfe6-4164-8953-23fef73e8cc2.webp?v=1714888850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca3215bbabceb276f12814fb299d93a3f415930_1d23b63d-bfe6-4164-8953-23fef73e8cc2.webp?v=1714888850","width":2000},{"alt":null,"id":23889748557923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a509cc84b0f92b975f7f98d4836852397502a452_c49f9b4c-88a4-4208-b1be-640f1b3f3140.webp?v=1714888853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a509cc84b0f92b975f7f98d4836852397502a452_c49f9b4c-88a4-4208-b1be-640f1b3f3140.webp?v=1714888853","width":2000},{"alt":null,"id":23889749049443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21a7b07bb543f0f5be259b69969d7dd1b01f26ee_a91f21b2-0c26-4b48-9d9c-591d6701f58f.webp?v=1714888855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21a7b07bb543f0f5be259b69969d7dd1b01f26ee_a91f21b2-0c26-4b48-9d9c-591d6701f58f.webp?v=1714888855","width":2000},{"alt":null,"id":23889749540963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3492d0acd1bd8c7f127c35adf634f35ab2e33ec_9debb3c0-4fe8-40c3-9a4f-67c624bf62a9.webp?v=1714888858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3492d0acd1bd8c7f127c35adf634f35ab2e33ec_9debb3c0-4fe8-40c3-9a4f-67c624bf62a9.webp?v=1714888858","width":2000},{"alt":null,"id":23889750491235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da44e913c15c07cc9da4fa3a06c9342de519e2e4_fef09f4e-ae6f-40c1-a241-a7d7415c135a.webp?v=1714888860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da44e913c15c07cc9da4fa3a06c9342de519e2e4_fef09f4e-ae6f-40c1-a241-a7d7415c135a.webp?v=1714888860","width":2000},{"alt":null,"id":23889751081059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863","width":2000},{"alt":null,"id":23889751572579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f718a77cc2d8a44fa6c981cd0f6beae82eac035a_552c5c75-c37e-49f1-a301-df08d0955ce4.webp?v=1714888865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f718a77cc2d8a44fa6c981cd0f6beae82eac035a_552c5c75-c37e-49f1-a301-df08d0955ce4.webp?v=1714888865","width":2000},{"alt":null,"id":23889752195171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0256196ed35039ac460efee211fa0ac18fa039_60f23ac6-d906-4a99-a508-5a57c95c4b8a.webp?v=1714888868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0256196ed35039ac460efee211fa0ac18fa039_60f23ac6-d906-4a99-a508-5a57c95c4b8a.webp?v=1714888868","width":2000},{"alt":null,"id":23889752686691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6940a575c23680e3c72c8b8567bacda8411587b7_f4b42acc-6a22-46a6-a97a-f26ee9890a4a.webp?v=1714888870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6940a575c23680e3c72c8b8567bacda8411587b7_f4b42acc-6a22-46a6-a97a-f26ee9890a4a.webp?v=1714888870","width":2000},{"alt":null,"id":23889753276515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b7eb4f617c8cf30bce41b0ec8b5a7ee1be4fe2_f29c5b3a-4e43-4f27-ac5d-44899c19f9ce.webp?v=1714888872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91b7eb4f617c8cf30bce41b0ec8b5a7ee1be4fe2_f29c5b3a-4e43-4f27-ac5d-44899c19f9ce.webp?v=1714888872","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903317680227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484456960099,"product_id":7414013034595,"position":6,"created_at":"2024-05-05T14:01:03+08:00","updated_at":"2024-05-05T14:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863","variant_ids":[41903317680227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889751081059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903317745763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484457484387,"product_id":7414013034595,"position":7,"created_at":"2024-05-05T14:01:05+08:00","updated_at":"2024-05-05T14:01:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f718a77cc2d8a44fa6c981cd0f6beae82eac035a_552c5c75-c37e-49f1-a301-df08d0955ce4.webp?v=1714888865","variant_ids":[41903317745763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889751572579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f718a77cc2d8a44fa6c981cd0f6beae82eac035a_552c5c75-c37e-49f1-a301-df08d0955ce4.webp?v=1714888865"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903317975139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484455420003,"product_id":7414013034595,"position":4,"created_at":"2024-05-05T14:00:58+08:00","updated_at":"2024-05-05T14:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3492d0acd1bd8c7f127c35adf634f35ab2e33ec_9debb3c0-4fe8-40c3-9a4f-67c624bf62a9.webp?v=1714888858","variant_ids":[41903317975139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889749540963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3492d0acd1bd8c7f127c35adf634f35ab2e33ec_9debb3c0-4fe8-40c3-9a4f-67c624bf62a9.webp?v=1714888858"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903317680227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484456960099,"product_id":7414013034595,"position":6,"created_at":"2024-05-05T14:01:03+08:00","updated_at":"2024-05-05T14:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863","variant_ids":[41903317680227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889751081059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7edcf0161a9770b2374c9d9a2ffaf52052464209_e6551467-0a4d-47bd-976d-2ce761e4ce6b.webp?v=1714888863"}},"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: "停產" }