$product = {"id":7407663612003,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3","handle":"iphone-14-pro-mod-nx-printable-pb26","description":null,"published_at":"2024-06-11T16:21:41+08:00","created_at":"2024-05-03T10:39:01+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 14 Pro","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":41877356773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31470177189987,"product_id":7407663612003,"position":5,"created_at":"2024-05-03T10:39:15+08:00","updated_at":"2024-05-03T10:39:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955","variant_ids":[41877356773475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"NPB0126224-PB26","featured_media":{"alt":null,"id":23875080159331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877356937315,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31470175551587,"product_id":7407663612003,"position":2,"created_at":"2024-05-03T10:39:07+08:00","updated_at":"2024-05-03T10:39:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/251f38b6626c9bdfacf616a31e74d6f6fbfb6e9b_22e49dd3-8c75-42b4-a8e6-93fda7f2d109.webp?v=1714703947","variant_ids":[41877356937315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"NPB0126204-PB26","featured_media":{"alt":null,"id":23875078455395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/251f38b6626c9bdfacf616a31e74d6f6fbfb6e9b_22e49dd3-8c75-42b4-a8e6-93fda7f2d109.webp?v=1714703947"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877357494371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31470178205795,"product_id":7407663612003,"position":6,"created_at":"2024-05-03T10:39:17+08:00","updated_at":"2024-05-03T10:39:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c21b4e8bf3f4df68c3f823c37b432bf80f5af1_2eb77e18-9517-4df5-9f20-2a337d520fca.webp?v=1714703957","variant_ids":[41877357494371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"NPB01262J5-PB26","featured_media":{"alt":null,"id":23875081109603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c21b4e8bf3f4df68c3f823c37b432bf80f5af1_2eb77e18-9517-4df5-9f20-2a337d520fca.webp?v=1714703957"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a452303b399e67b15ed28f0e4c8cd1101cc1261e_7d98e5ef-d8d9-4270-9123-fafd5b4a85c7.webp?v=1714703944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/251f38b6626c9bdfacf616a31e74d6f6fbfb6e9b_22e49dd3-8c75-42b4-a8e6-93fda7f2d109.webp?v=1714703947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4baa3d3c3d1384031f2f902e54a40de906c43aa0_2693bdf2-b927-47c3-994e-c83f4b9a9a1d.webp?v=1714703949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b0290cc2bf6dd8e63ea683a3e51db2c5b4bcde_f03c8b00-0ed4-4a6c-a05e-8bb35035bbb8.webp?v=1714703952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c21b4e8bf3f4df68c3f823c37b432bf80f5af1_2eb77e18-9517-4df5-9f20-2a337d520fca.webp?v=1714703957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40a47dba7eaf7b32e3a26ad6b504bb30e9bfb96_80d5cd5f-65b2-4013-8c36-5ce2d0115cf8.webp?v=1714703959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04f3296c518bf451787a99687a50a1ec9a8c64_2de829fe-5db9-4632-ad94-351f6da22c58.webp?v=1714703962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158a7b6f59725ba64c52730f3e95645cc4b62f56_ab967c26-1f62-4154-84cc-907c97ede689.webp?v=1714703964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc514f755911433a19b2b6f1d2f175eb5152a6d_856be173-527d-4e98-ae3f-b06e0f1f60e4.webp?v=1714703967"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a452303b399e67b15ed28f0e4c8cd1101cc1261e_7d98e5ef-d8d9-4270-9123-fafd5b4a85c7.webp?v=1714703944","options":["color"],"media":[{"alt":null,"id":23875077701731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a452303b399e67b15ed28f0e4c8cd1101cc1261e_7d98e5ef-d8d9-4270-9123-fafd5b4a85c7.webp?v=1714703944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a452303b399e67b15ed28f0e4c8cd1101cc1261e_7d98e5ef-d8d9-4270-9123-fafd5b4a85c7.webp?v=1714703944","width":2000},{"alt":null,"id":23875078455395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/251f38b6626c9bdfacf616a31e74d6f6fbfb6e9b_22e49dd3-8c75-42b4-a8e6-93fda7f2d109.webp?v=1714703947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/251f38b6626c9bdfacf616a31e74d6f6fbfb6e9b_22e49dd3-8c75-42b4-a8e6-93fda7f2d109.webp?v=1714703947","width":2000},{"alt":null,"id":23875078946915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4baa3d3c3d1384031f2f902e54a40de906c43aa0_2693bdf2-b927-47c3-994e-c83f4b9a9a1d.webp?v=1714703949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4baa3d3c3d1384031f2f902e54a40de906c43aa0_2693bdf2-b927-47c3-994e-c83f4b9a9a1d.webp?v=1714703949","width":2000},{"alt":null,"id":23875079274595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b0290cc2bf6dd8e63ea683a3e51db2c5b4bcde_f03c8b00-0ed4-4a6c-a05e-8bb35035bbb8.webp?v=1714703952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b0290cc2bf6dd8e63ea683a3e51db2c5b4bcde_f03c8b00-0ed4-4a6c-a05e-8bb35035bbb8.webp?v=1714703952","width":2000},{"alt":null,"id":23875080159331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955","width":2000},{"alt":null,"id":23875081109603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c21b4e8bf3f4df68c3f823c37b432bf80f5af1_2eb77e18-9517-4df5-9f20-2a337d520fca.webp?v=1714703957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c21b4e8bf3f4df68c3f823c37b432bf80f5af1_2eb77e18-9517-4df5-9f20-2a337d520fca.webp?v=1714703957","width":2000},{"alt":null,"id":23875081470051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40a47dba7eaf7b32e3a26ad6b504bb30e9bfb96_80d5cd5f-65b2-4013-8c36-5ce2d0115cf8.webp?v=1714703959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40a47dba7eaf7b32e3a26ad6b504bb30e9bfb96_80d5cd5f-65b2-4013-8c36-5ce2d0115cf8.webp?v=1714703959","width":2000},{"alt":null,"id":23875081863267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04f3296c518bf451787a99687a50a1ec9a8c64_2de829fe-5db9-4632-ad94-351f6da22c58.webp?v=1714703962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04f3296c518bf451787a99687a50a1ec9a8c64_2de829fe-5db9-4632-ad94-351f6da22c58.webp?v=1714703962","width":2000},{"alt":null,"id":23875082649699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158a7b6f59725ba64c52730f3e95645cc4b62f56_ab967c26-1f62-4154-84cc-907c97ede689.webp?v=1714703964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158a7b6f59725ba64c52730f3e95645cc4b62f56_ab967c26-1f62-4154-84cc-907c97ede689.webp?v=1714703964","width":2000},{"alt":null,"id":23875083305059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc514f755911433a19b2b6f1d2f175eb5152a6d_856be173-527d-4e98-ae3f-b06e0f1f60e4.webp?v=1714703967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc514f755911433a19b2b6f1d2f175eb5152a6d_856be173-527d-4e98-ae3f-b06e0f1f60e4.webp?v=1714703967","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877356773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31470177189987,"product_id":7407663612003,"position":5,"created_at":"2024-05-03T10:39:15+08:00","updated_at":"2024-05-03T10:39:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955","variant_ids":[41877356773475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"NPB0126224-PB26","featured_media":{"alt":null,"id":23875080159331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877356937315,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31470175551587,"product_id":7407663612003,"position":2,"created_at":"2024-05-03T10:39:07+08:00","updated_at":"2024-05-03T10:39:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/251f38b6626c9bdfacf616a31e74d6f6fbfb6e9b_22e49dd3-8c75-42b4-a8e6-93fda7f2d109.webp?v=1714703947","variant_ids":[41877356937315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"NPB0126204-PB26","featured_media":{"alt":null,"id":23875078455395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/251f38b6626c9bdfacf616a31e74d6f6fbfb6e9b_22e49dd3-8c75-42b4-a8e6-93fda7f2d109.webp?v=1714703947"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877357494371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31470178205795,"product_id":7407663612003,"position":6,"created_at":"2024-05-03T10:39:17+08:00","updated_at":"2024-05-03T10:39:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c21b4e8bf3f4df68c3f823c37b432bf80f5af1_2eb77e18-9517-4df5-9f20-2a337d520fca.webp?v=1714703957","variant_ids":[41877357494371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"NPB01262J5-PB26","featured_media":{"alt":null,"id":23875081109603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c21b4e8bf3f4df68c3f823c37b432bf80f5af1_2eb77e18-9517-4df5-9f20-2a337d520fca.webp?v=1714703957"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877356773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31470177189987,"product_id":7407663612003,"position":5,"created_at":"2024-05-03T10:39:15+08:00","updated_at":"2024-05-03T10:39:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955","variant_ids":[41877356773475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"NPB0126224-PB26","featured_media":{"alt":null,"id":23875080159331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04bc9375dcfbe865e611a8f3d24ab34f03a753c_522461de-4232-4adb-bdad-e1ef3dadaeac.webp?v=1714703955"}},"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: "停產" }