$product = {"id":7408046997603,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-13-mini-mod-nx-printable-pb102","description":null,"published_at":"2024-06-11T16:29:58+08:00","created_at":"2024-05-03T11:48:22+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":41882082967651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31471055568995,"product_id":7408046997603,"position":6,"created_at":"2024-05-03T11:48:37+08:00","updated_at":"2024-05-03T11:48:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117","variant_ids":[41882082967651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23875960668259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882083033187,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31471056879715,"product_id":7408046997603,"position":8,"created_at":"2024-05-03T11:48:42+08:00","updated_at":"2024-05-03T11:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afc8863de094e3b15cd0e9561147d13ef9fc8ed_819e8e97-c130-477e-98d8-afca654fa8ee.webp?v=1714708122","variant_ids":[41882083033187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23875961978979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afc8863de094e3b15cd0e9561147d13ef9fc8ed_819e8e97-c130-477e-98d8-afca654fa8ee.webp?v=1714708122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882083295331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31471056191587,"product_id":7408046997603,"position":7,"created_at":"2024-05-03T11:48:40+08:00","updated_at":"2024-05-03T11:48:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f1284035844e1db944acbdbf7e41411272b567_0c3d6999-4042-44ae-a243-feeb380bc3d9.webp?v=1714708120","variant_ids":[41882083295331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23875961225315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f1284035844e1db944acbdbf7e41411272b567_0c3d6999-4042-44ae-a243-feeb380bc3d9.webp?v=1714708120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e9dcf0cb488a74a28e1c27f03b88ba98872b63_329ac936-1fcc-4a7e-9e87-82dece48c096.webp?v=1714708105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/545d1a275d9ce65a26012c1b6b80c11e5d261131_16377937-184b-4da9-b20f-115dc7049323.webp?v=1714708107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34fff76cc4875bab461dc90bef023627e94e797f_d09a6690-b5ae-4d23-bc09-b40584e114e0.webp?v=1714708110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949e6c3d28667af6336a8f313f5dc359c391fc8_653dfb80-3e99-4627-bfe8-d584fb1fd69e.webp?v=1714708112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dc293a963d64b4aba38bc554c04010ecde0817_7c1d3142-7a27-479d-974e-59ca4d34e91a.webp?v=1714708115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f1284035844e1db944acbdbf7e41411272b567_0c3d6999-4042-44ae-a243-feeb380bc3d9.webp?v=1714708120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afc8863de094e3b15cd0e9561147d13ef9fc8ed_819e8e97-c130-477e-98d8-afca654fa8ee.webp?v=1714708122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bab6de024bf34dca7d9e5e2a3bbf4bf1327e82_d512cf31-e47e-4957-835b-f560021a66a3.webp?v=1714708125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d15c359d4ea438285f73b851a06c49fa46a8bf6_17344a28-d5f8-401c-8dfb-0890de1a929e.webp?v=1714708127"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e9dcf0cb488a74a28e1c27f03b88ba98872b63_329ac936-1fcc-4a7e-9e87-82dece48c096.webp?v=1714708105","options":["color"],"media":[{"alt":null,"id":23875957751907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e9dcf0cb488a74a28e1c27f03b88ba98872b63_329ac936-1fcc-4a7e-9e87-82dece48c096.webp?v=1714708105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e9dcf0cb488a74a28e1c27f03b88ba98872b63_329ac936-1fcc-4a7e-9e87-82dece48c096.webp?v=1714708105","width":2000},{"alt":null,"id":23875958374499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/545d1a275d9ce65a26012c1b6b80c11e5d261131_16377937-184b-4da9-b20f-115dc7049323.webp?v=1714708107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/545d1a275d9ce65a26012c1b6b80c11e5d261131_16377937-184b-4da9-b20f-115dc7049323.webp?v=1714708107","width":2000},{"alt":null,"id":23875959095395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34fff76cc4875bab461dc90bef023627e94e797f_d09a6690-b5ae-4d23-bc09-b40584e114e0.webp?v=1714708110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34fff76cc4875bab461dc90bef023627e94e797f_d09a6690-b5ae-4d23-bc09-b40584e114e0.webp?v=1714708110","width":2000},{"alt":null,"id":23875959619683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949e6c3d28667af6336a8f313f5dc359c391fc8_653dfb80-3e99-4627-bfe8-d584fb1fd69e.webp?v=1714708112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949e6c3d28667af6336a8f313f5dc359c391fc8_653dfb80-3e99-4627-bfe8-d584fb1fd69e.webp?v=1714708112","width":2000},{"alt":null,"id":23875960242275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dc293a963d64b4aba38bc554c04010ecde0817_7c1d3142-7a27-479d-974e-59ca4d34e91a.webp?v=1714708115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dc293a963d64b4aba38bc554c04010ecde0817_7c1d3142-7a27-479d-974e-59ca4d34e91a.webp?v=1714708115","width":2000},{"alt":null,"id":23875960668259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117","width":2000},{"alt":null,"id":23875961225315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f1284035844e1db944acbdbf7e41411272b567_0c3d6999-4042-44ae-a243-feeb380bc3d9.webp?v=1714708120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f1284035844e1db944acbdbf7e41411272b567_0c3d6999-4042-44ae-a243-feeb380bc3d9.webp?v=1714708120","width":2000},{"alt":null,"id":23875961978979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afc8863de094e3b15cd0e9561147d13ef9fc8ed_819e8e97-c130-477e-98d8-afca654fa8ee.webp?v=1714708122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afc8863de094e3b15cd0e9561147d13ef9fc8ed_819e8e97-c130-477e-98d8-afca654fa8ee.webp?v=1714708122","width":2000},{"alt":null,"id":23875962437731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bab6de024bf34dca7d9e5e2a3bbf4bf1327e82_d512cf31-e47e-4957-835b-f560021a66a3.webp?v=1714708125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bab6de024bf34dca7d9e5e2a3bbf4bf1327e82_d512cf31-e47e-4957-835b-f560021a66a3.webp?v=1714708125","width":2000},{"alt":null,"id":23875962994787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d15c359d4ea438285f73b851a06c49fa46a8bf6_17344a28-d5f8-401c-8dfb-0890de1a929e.webp?v=1714708127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d15c359d4ea438285f73b851a06c49fa46a8bf6_17344a28-d5f8-401c-8dfb-0890de1a929e.webp?v=1714708127","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882082967651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31471055568995,"product_id":7408046997603,"position":6,"created_at":"2024-05-03T11:48:37+08:00","updated_at":"2024-05-03T11:48:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117","variant_ids":[41882082967651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23875960668259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882083033187,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31471056879715,"product_id":7408046997603,"position":8,"created_at":"2024-05-03T11:48:42+08:00","updated_at":"2024-05-03T11:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afc8863de094e3b15cd0e9561147d13ef9fc8ed_819e8e97-c130-477e-98d8-afca654fa8ee.webp?v=1714708122","variant_ids":[41882083033187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23875961978979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afc8863de094e3b15cd0e9561147d13ef9fc8ed_819e8e97-c130-477e-98d8-afca654fa8ee.webp?v=1714708122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882083295331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31471056191587,"product_id":7408046997603,"position":7,"created_at":"2024-05-03T11:48:40+08:00","updated_at":"2024-05-03T11:48:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f1284035844e1db944acbdbf7e41411272b567_0c3d6999-4042-44ae-a243-feeb380bc3d9.webp?v=1714708120","variant_ids":[41882083295331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23875961225315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f1284035844e1db944acbdbf7e41411272b567_0c3d6999-4042-44ae-a243-feeb380bc3d9.webp?v=1714708120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882082967651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31471055568995,"product_id":7408046997603,"position":6,"created_at":"2024-05-03T11:48:37+08:00","updated_at":"2024-05-03T11:48:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117","variant_ids":[41882082967651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23875960668259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e2de233ca6ca69dd6ceb0589a31731ce15d71_b8b3aaac-f4b1-4cad-afd9-c20a1bbfaa13.webp?v=1714708117"}},"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: "停產" }