$product = {"id":7408232104035,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy","handle":"iphone-13-mini-mod-nx-printable-pb60","description":null,"published_at":"2024-06-11T16:34:55+08:00","created_at":"2024-05-03T12:25:36+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":41884129755235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31471538110563,"product_id":7408232104035,"position":9,"created_at":"2024-05-03T12:25:59+08:00","updated_at":"2024-05-03T12:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359","variant_ids":[41884129755235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23876444815459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884129820771,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31471536242787,"product_id":7408232104035,"position":6,"created_at":"2024-05-03T12:25:51+08:00","updated_at":"2024-05-03T12:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fc869e5429e79743efeec32fc62cd1bc2d521a_9da97d8d-9f1d-4908-90de-6d017a8dd2a6.webp?v=1714710351","variant_ids":[41884129820771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23876442947683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fc869e5429e79743efeec32fc62cd1bc2d521a_9da97d8d-9f1d-4908-90de-6d017a8dd2a6.webp?v=1714710351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884130050147,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31471534342243,"product_id":7408232104035,"position":2,"created_at":"2024-05-03T12:25:41+08:00","updated_at":"2024-05-03T12:25:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c903ad9e5414aa96991ae3ad81981a8e7433ac_46c5dd82-4d49-453d-a9e9-b47153a61b11.webp?v=1714710341","variant_ids":[41884130050147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23876441079907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c903ad9e5414aa96991ae3ad81981a8e7433ac_46c5dd82-4d49-453d-a9e9-b47153a61b11.webp?v=1714710341"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7f15b0f7b051ac61c88e20edebb01c83c7a5ab_f6b1c3a0-725d-44e1-80d9-9cebef8ccb3d.webp?v=1714710339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c903ad9e5414aa96991ae3ad81981a8e7433ac_46c5dd82-4d49-453d-a9e9-b47153a61b11.webp?v=1714710341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1516fe9b15b36e3436bac8a00ebca1e7cdb3_b0549c48-3192-4815-b3da-c5ab6049ca2a.webp?v=1714710344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f6c1ad7300185633e33eb7523224606f8aac61_f2a9edf9-5bb0-4501-9794-09a101590836.webp?v=1714710346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d03f0f176143b47a937b3c39f201f3aca7a647a2_3992bb47-a0b0-45ba-ac7f-5b78e4273826.webp?v=1714710349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fc869e5429e79743efeec32fc62cd1bc2d521a_9da97d8d-9f1d-4908-90de-6d017a8dd2a6.webp?v=1714710351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95470491b8aecef59e87c0d7b30f3843abe06013_17b5bea0-e311-4f93-ac74-316805261900.webp?v=1714710354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54dc9226be49525309f909bc1dcfc5037529a23e_acdb6d6a-1aeb-4ff3-b0fa-739be7976239.webp?v=1714710357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3bc65c62941464a69379c535a03732dd1edd6e9_a193d7f5-da80-4044-b716-25982f7754ad.webp?v=1714710362"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7f15b0f7b051ac61c88e20edebb01c83c7a5ab_f6b1c3a0-725d-44e1-80d9-9cebef8ccb3d.webp?v=1714710339","options":["color"],"media":[{"alt":null,"id":23876440621155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7f15b0f7b051ac61c88e20edebb01c83c7a5ab_f6b1c3a0-725d-44e1-80d9-9cebef8ccb3d.webp?v=1714710339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7f15b0f7b051ac61c88e20edebb01c83c7a5ab_f6b1c3a0-725d-44e1-80d9-9cebef8ccb3d.webp?v=1714710339","width":2000},{"alt":null,"id":23876441079907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c903ad9e5414aa96991ae3ad81981a8e7433ac_46c5dd82-4d49-453d-a9e9-b47153a61b11.webp?v=1714710341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c903ad9e5414aa96991ae3ad81981a8e7433ac_46c5dd82-4d49-453d-a9e9-b47153a61b11.webp?v=1714710341","width":2000},{"alt":null,"id":23876441636963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1516fe9b15b36e3436bac8a00ebca1e7cdb3_b0549c48-3192-4815-b3da-c5ab6049ca2a.webp?v=1714710344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1516fe9b15b36e3436bac8a00ebca1e7cdb3_b0549c48-3192-4815-b3da-c5ab6049ca2a.webp?v=1714710344","width":2000},{"alt":null,"id":23876442030179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f6c1ad7300185633e33eb7523224606f8aac61_f2a9edf9-5bb0-4501-9794-09a101590836.webp?v=1714710346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f6c1ad7300185633e33eb7523224606f8aac61_f2a9edf9-5bb0-4501-9794-09a101590836.webp?v=1714710346","width":2000},{"alt":null,"id":23876442521699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d03f0f176143b47a937b3c39f201f3aca7a647a2_3992bb47-a0b0-45ba-ac7f-5b78e4273826.webp?v=1714710349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d03f0f176143b47a937b3c39f201f3aca7a647a2_3992bb47-a0b0-45ba-ac7f-5b78e4273826.webp?v=1714710349","width":2000},{"alt":null,"id":23876442947683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fc869e5429e79743efeec32fc62cd1bc2d521a_9da97d8d-9f1d-4908-90de-6d017a8dd2a6.webp?v=1714710351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fc869e5429e79743efeec32fc62cd1bc2d521a_9da97d8d-9f1d-4908-90de-6d017a8dd2a6.webp?v=1714710351","width":2000},{"alt":null,"id":23876443668579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95470491b8aecef59e87c0d7b30f3843abe06013_17b5bea0-e311-4f93-ac74-316805261900.webp?v=1714710354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95470491b8aecef59e87c0d7b30f3843abe06013_17b5bea0-e311-4f93-ac74-316805261900.webp?v=1714710354","width":2000},{"alt":null,"id":23876444291171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54dc9226be49525309f909bc1dcfc5037529a23e_acdb6d6a-1aeb-4ff3-b0fa-739be7976239.webp?v=1714710357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54dc9226be49525309f909bc1dcfc5037529a23e_acdb6d6a-1aeb-4ff3-b0fa-739be7976239.webp?v=1714710357","width":2000},{"alt":null,"id":23876444815459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359","width":2000},{"alt":null,"id":23876445569123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3bc65c62941464a69379c535a03732dd1edd6e9_a193d7f5-da80-4044-b716-25982f7754ad.webp?v=1714710362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3bc65c62941464a69379c535a03732dd1edd6e9_a193d7f5-da80-4044-b716-25982f7754ad.webp?v=1714710362","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884129755235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31471538110563,"product_id":7408232104035,"position":9,"created_at":"2024-05-03T12:25:59+08:00","updated_at":"2024-05-03T12:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359","variant_ids":[41884129755235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23876444815459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884129820771,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31471536242787,"product_id":7408232104035,"position":6,"created_at":"2024-05-03T12:25:51+08:00","updated_at":"2024-05-03T12:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fc869e5429e79743efeec32fc62cd1bc2d521a_9da97d8d-9f1d-4908-90de-6d017a8dd2a6.webp?v=1714710351","variant_ids":[41884129820771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23876442947683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fc869e5429e79743efeec32fc62cd1bc2d521a_9da97d8d-9f1d-4908-90de-6d017a8dd2a6.webp?v=1714710351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884130050147,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31471534342243,"product_id":7408232104035,"position":2,"created_at":"2024-05-03T12:25:41+08:00","updated_at":"2024-05-03T12:25:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c903ad9e5414aa96991ae3ad81981a8e7433ac_46c5dd82-4d49-453d-a9e9-b47153a61b11.webp?v=1714710341","variant_ids":[41884130050147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23876441079907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57c903ad9e5414aa96991ae3ad81981a8e7433ac_46c5dd82-4d49-453d-a9e9-b47153a61b11.webp?v=1714710341"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884129755235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31471538110563,"product_id":7408232104035,"position":9,"created_at":"2024-05-03T12:25:59+08:00","updated_at":"2024-05-03T12:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359","variant_ids":[41884129755235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23876444815459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36948edc6e0ce2e3cec7168ad7ac2b80cb579c5c_c0767bf2-cb4e-4034-b8a9-23211449c17b.webp?v=1714710359"}},"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: "停產" }