$product = {"id":7408195862627,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵","handle":"iphone-13-mini-mod-nx-printable-pc02","description":null,"published_at":"2024-06-11T16:33:58+08:00","created_at":"2024-05-03T12:18:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41883737129059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471444295779,"product_id":7408195862627,"position":7,"created_at":"2024-05-03T12:18:55+08:00","updated_at":"2024-05-03T12:18:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935","variant_ids":[41883737129059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PC02","featured_media":{"alt":null,"id":23876350672995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883737194595,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471442165859,"product_id":7408195862627,"position":3,"created_at":"2024-05-03T12:18:46+08:00","updated_at":"2024-05-03T12:18:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849e77d7e0168d6c69013b1a81f62f4cb7feba61_04c26047-1c5b-4346-8e43-ed69f3edbcda.webp?v=1714709926","variant_ids":[41883737194595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PC02","featured_media":{"alt":null,"id":23876348510307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849e77d7e0168d6c69013b1a81f62f4cb7feba61_04c26047-1c5b-4346-8e43-ed69f3edbcda.webp?v=1714709926"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883737423971,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471441739875,"product_id":7408195862627,"position":2,"created_at":"2024-05-03T12:18:43+08:00","updated_at":"2024-05-03T12:18:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2618d890b381c085ab2baa3b9210383c1f6bfc_f6a6c53e-534b-4d41-993e-d89fe3b76b5d.webp?v=1714709923","variant_ids":[41883737423971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PC02","featured_media":{"alt":null,"id":23876348051555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2618d890b381c085ab2baa3b9210383c1f6bfc_f6a6c53e-534b-4d41-993e-d89fe3b76b5d.webp?v=1714709923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff62d35731a5cd593c5d1a6e79c3fb01fc2292b0_c09ab9b7-8ae0-491d-bb0f-7d21bfb93faf.webp?v=1714709921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2618d890b381c085ab2baa3b9210383c1f6bfc_f6a6c53e-534b-4d41-993e-d89fe3b76b5d.webp?v=1714709923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849e77d7e0168d6c69013b1a81f62f4cb7feba61_04c26047-1c5b-4346-8e43-ed69f3edbcda.webp?v=1714709926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/640f68aa2f3cd018ebd59d23223bc6705be50006_a00d8fbb-2ad0-40ca-a6ff-f81ec96f50b6.webp?v=1714709928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbdbc8b9b6ee9ea130309acc6d92696fb221c396_e2b822a8-2d45-4bc6-8e17-64a87137e405.webp?v=1714709930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8717b865839d1361eb2575f88c31023d3f6f063d_2cc7ec59-bb47-4d54-913f-a4eabf1fe5a3.webp?v=1714709932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d2db66d2672d3911446a8202b6c4191fe9bed65_f13b7e70-aac5-46ad-bc9c-ce27eacc6fe0.webp?v=1714709937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe5a4795265926f939e35355784973ce6f9827_a80e281e-9f8b-4124-8c8d-19c2a6938734.webp?v=1714709939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd95caf0ceddaafb1d526324a87ded4710b0e7d_c2ce6f67-ccf8-402c-9176-f3785333c5e6.webp?v=1714709941"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff62d35731a5cd593c5d1a6e79c3fb01fc2292b0_c09ab9b7-8ae0-491d-bb0f-7d21bfb93faf.webp?v=1714709921","options":["color"],"media":[{"alt":null,"id":23876347461731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff62d35731a5cd593c5d1a6e79c3fb01fc2292b0_c09ab9b7-8ae0-491d-bb0f-7d21bfb93faf.webp?v=1714709921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff62d35731a5cd593c5d1a6e79c3fb01fc2292b0_c09ab9b7-8ae0-491d-bb0f-7d21bfb93faf.webp?v=1714709921","width":2000},{"alt":null,"id":23876348051555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2618d890b381c085ab2baa3b9210383c1f6bfc_f6a6c53e-534b-4d41-993e-d89fe3b76b5d.webp?v=1714709923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2618d890b381c085ab2baa3b9210383c1f6bfc_f6a6c53e-534b-4d41-993e-d89fe3b76b5d.webp?v=1714709923","width":2000},{"alt":null,"id":23876348510307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849e77d7e0168d6c69013b1a81f62f4cb7feba61_04c26047-1c5b-4346-8e43-ed69f3edbcda.webp?v=1714709926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849e77d7e0168d6c69013b1a81f62f4cb7feba61_04c26047-1c5b-4346-8e43-ed69f3edbcda.webp?v=1714709926","width":2000},{"alt":null,"id":23876348936291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/640f68aa2f3cd018ebd59d23223bc6705be50006_a00d8fbb-2ad0-40ca-a6ff-f81ec96f50b6.webp?v=1714709928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/640f68aa2f3cd018ebd59d23223bc6705be50006_a00d8fbb-2ad0-40ca-a6ff-f81ec96f50b6.webp?v=1714709928","width":2000},{"alt":null,"id":23876349395043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbdbc8b9b6ee9ea130309acc6d92696fb221c396_e2b822a8-2d45-4bc6-8e17-64a87137e405.webp?v=1714709930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbdbc8b9b6ee9ea130309acc6d92696fb221c396_e2b822a8-2d45-4bc6-8e17-64a87137e405.webp?v=1714709930","width":2000},{"alt":null,"id":23876350115939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8717b865839d1361eb2575f88c31023d3f6f063d_2cc7ec59-bb47-4d54-913f-a4eabf1fe5a3.webp?v=1714709932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8717b865839d1361eb2575f88c31023d3f6f063d_2cc7ec59-bb47-4d54-913f-a4eabf1fe5a3.webp?v=1714709932","width":2000},{"alt":null,"id":23876350672995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935","width":2000},{"alt":null,"id":23876351033443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d2db66d2672d3911446a8202b6c4191fe9bed65_f13b7e70-aac5-46ad-bc9c-ce27eacc6fe0.webp?v=1714709937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d2db66d2672d3911446a8202b6c4191fe9bed65_f13b7e70-aac5-46ad-bc9c-ce27eacc6fe0.webp?v=1714709937","width":2000},{"alt":null,"id":23876351524963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe5a4795265926f939e35355784973ce6f9827_a80e281e-9f8b-4124-8c8d-19c2a6938734.webp?v=1714709939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe5a4795265926f939e35355784973ce6f9827_a80e281e-9f8b-4124-8c8d-19c2a6938734.webp?v=1714709939","width":2000},{"alt":null,"id":23876351950947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd95caf0ceddaafb1d526324a87ded4710b0e7d_c2ce6f67-ccf8-402c-9176-f3785333c5e6.webp?v=1714709941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd95caf0ceddaafb1d526324a87ded4710b0e7d_c2ce6f67-ccf8-402c-9176-f3785333c5e6.webp?v=1714709941","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883737129059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471444295779,"product_id":7408195862627,"position":7,"created_at":"2024-05-03T12:18:55+08:00","updated_at":"2024-05-03T12:18:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935","variant_ids":[41883737129059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PC02","featured_media":{"alt":null,"id":23876350672995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883737194595,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471442165859,"product_id":7408195862627,"position":3,"created_at":"2024-05-03T12:18:46+08:00","updated_at":"2024-05-03T12:18:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849e77d7e0168d6c69013b1a81f62f4cb7feba61_04c26047-1c5b-4346-8e43-ed69f3edbcda.webp?v=1714709926","variant_ids":[41883737194595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PC02","featured_media":{"alt":null,"id":23876348510307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/849e77d7e0168d6c69013b1a81f62f4cb7feba61_04c26047-1c5b-4346-8e43-ed69f3edbcda.webp?v=1714709926"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883737423971,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471441739875,"product_id":7408195862627,"position":2,"created_at":"2024-05-03T12:18:43+08:00","updated_at":"2024-05-03T12:18:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2618d890b381c085ab2baa3b9210383c1f6bfc_f6a6c53e-534b-4d41-993e-d89fe3b76b5d.webp?v=1714709923","variant_ids":[41883737423971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PC02","featured_media":{"alt":null,"id":23876348051555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2618d890b381c085ab2baa3b9210383c1f6bfc_f6a6c53e-534b-4d41-993e-d89fe3b76b5d.webp?v=1714709923"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883737129059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471444295779,"product_id":7408195862627,"position":7,"created_at":"2024-05-03T12:18:55+08:00","updated_at":"2024-05-03T12:18:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935","variant_ids":[41883737129059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PC02","featured_media":{"alt":null,"id":23876350672995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c74359d121db5460f39ff5f912b577dbbb8cf1f0_0bb1188d-2ec3-4885-991e-353f20b23f87.webp?v=1714709935"}},"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: "停產" }