$product = {"id":7408175841379,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列","handle":"iphone-13-mini-mod-nx-printable-pb83","description":null,"published_at":"2024-06-11T16:33:26+08:00","created_at":"2024-05-03T12:14:35+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":41883518009443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471389900899,"product_id":7408175841379,"position":9,"created_at":"2024-05-03T12:14:57+08:00","updated_at":"2024-05-03T12:14:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697","variant_ids":[41883518009443]},"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-PB83","featured_media":{"alt":null,"id":23876296048739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883518074979,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471387476067,"product_id":7408175841379,"position":5,"created_at":"2024-05-03T12:14:47+08:00","updated_at":"2024-05-03T12:14:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d890ad50de121543010424dc9491c3dfd65ff91d_e62e0f38-20dd-4fe4-b1ca-bb19d0d7d8fb.webp?v=1714709687","variant_ids":[41883518074979]},"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-PB83","featured_media":{"alt":null,"id":23876293623907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d890ad50de121543010424dc9491c3dfd65ff91d_e62e0f38-20dd-4fe4-b1ca-bb19d0d7d8fb.webp?v=1714709687"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883518304355,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471388754019,"product_id":7408175841379,"position":7,"created_at":"2024-05-03T12:14:52+08:00","updated_at":"2024-05-03T12:14:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3535406fe9ca98aa2f0ec3bef47aed0e39434bb6_ab53f3c8-1503-4a34-bbff-0a531bb2e434.webp?v=1714709692","variant_ids":[41883518304355]},"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-PB83","featured_media":{"alt":null,"id":23876294901859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3535406fe9ca98aa2f0ec3bef47aed0e39434bb6_ab53f3c8-1503-4a34-bbff-0a531bb2e434.webp?v=1714709692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1987ba65771ae074a3a6a9799873870ea914fb_ac0c5a7f-66e3-4d64-9cf3-7a3edbd69b04.webp?v=1714709678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/143d31cc54cc274631554fd8f82ff713b20640c3_3ef06935-69a7-46ed-b893-3d9fa1885867.webp?v=1714709680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08f3e4871e508867311385dbb4830d79faa85a8_1eecab3f-173e-4345-8216-050db7ddc561.webp?v=1714709682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4aa7d8581feb817786336a9b20c06cddb90bbd4_8076e979-6b29-4e2a-8642-36b52ca0b4f3.webp?v=1714709685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d890ad50de121543010424dc9491c3dfd65ff91d_e62e0f38-20dd-4fe4-b1ca-bb19d0d7d8fb.webp?v=1714709687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59e117aae4243e515f72330b6230b86627782f5_400c0e7c-b4f7-42ff-81b5-fc56d0d16d45.webp?v=1714709689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3535406fe9ca98aa2f0ec3bef47aed0e39434bb6_ab53f3c8-1503-4a34-bbff-0a531bb2e434.webp?v=1714709692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da963bfe39359298d0b7f571326dc556ecdc45fc_079b2d9e-b0ca-496e-9f25-02e0a6b30839.webp?v=1714709694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f9fe90ccb2059f5e8145baa8122e161e4f7d97_9ff5796a-fc7d-47f8-8bcb-7f977172aca7.webp?v=1714709699"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1987ba65771ae074a3a6a9799873870ea914fb_ac0c5a7f-66e3-4d64-9cf3-7a3edbd69b04.webp?v=1714709678","options":["color"],"media":[{"alt":null,"id":23876291493987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1987ba65771ae074a3a6a9799873870ea914fb_ac0c5a7f-66e3-4d64-9cf3-7a3edbd69b04.webp?v=1714709678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1987ba65771ae074a3a6a9799873870ea914fb_ac0c5a7f-66e3-4d64-9cf3-7a3edbd69b04.webp?v=1714709678","width":2000},{"alt":null,"id":23876292116579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/143d31cc54cc274631554fd8f82ff713b20640c3_3ef06935-69a7-46ed-b893-3d9fa1885867.webp?v=1714709680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/143d31cc54cc274631554fd8f82ff713b20640c3_3ef06935-69a7-46ed-b893-3d9fa1885867.webp?v=1714709680","width":2000},{"alt":null,"id":23876292542563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08f3e4871e508867311385dbb4830d79faa85a8_1eecab3f-173e-4345-8216-050db7ddc561.webp?v=1714709682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08f3e4871e508867311385dbb4830d79faa85a8_1eecab3f-173e-4345-8216-050db7ddc561.webp?v=1714709682","width":2000},{"alt":null,"id":23876293132387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4aa7d8581feb817786336a9b20c06cddb90bbd4_8076e979-6b29-4e2a-8642-36b52ca0b4f3.webp?v=1714709685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4aa7d8581feb817786336a9b20c06cddb90bbd4_8076e979-6b29-4e2a-8642-36b52ca0b4f3.webp?v=1714709685","width":2000},{"alt":null,"id":23876293623907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d890ad50de121543010424dc9491c3dfd65ff91d_e62e0f38-20dd-4fe4-b1ca-bb19d0d7d8fb.webp?v=1714709687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d890ad50de121543010424dc9491c3dfd65ff91d_e62e0f38-20dd-4fe4-b1ca-bb19d0d7d8fb.webp?v=1714709687","width":2000},{"alt":null,"id":23876294508643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59e117aae4243e515f72330b6230b86627782f5_400c0e7c-b4f7-42ff-81b5-fc56d0d16d45.webp?v=1714709689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59e117aae4243e515f72330b6230b86627782f5_400c0e7c-b4f7-42ff-81b5-fc56d0d16d45.webp?v=1714709689","width":2000},{"alt":null,"id":23876294901859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3535406fe9ca98aa2f0ec3bef47aed0e39434bb6_ab53f3c8-1503-4a34-bbff-0a531bb2e434.webp?v=1714709692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3535406fe9ca98aa2f0ec3bef47aed0e39434bb6_ab53f3c8-1503-4a34-bbff-0a531bb2e434.webp?v=1714709692","width":2000},{"alt":null,"id":23876295557219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da963bfe39359298d0b7f571326dc556ecdc45fc_079b2d9e-b0ca-496e-9f25-02e0a6b30839.webp?v=1714709694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da963bfe39359298d0b7f571326dc556ecdc45fc_079b2d9e-b0ca-496e-9f25-02e0a6b30839.webp?v=1714709694","width":2000},{"alt":null,"id":23876296048739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697","width":2000},{"alt":null,"id":23876296474723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f9fe90ccb2059f5e8145baa8122e161e4f7d97_9ff5796a-fc7d-47f8-8bcb-7f977172aca7.webp?v=1714709699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f9fe90ccb2059f5e8145baa8122e161e4f7d97_9ff5796a-fc7d-47f8-8bcb-7f977172aca7.webp?v=1714709699","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883518009443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471389900899,"product_id":7408175841379,"position":9,"created_at":"2024-05-03T12:14:57+08:00","updated_at":"2024-05-03T12:14:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697","variant_ids":[41883518009443]},"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-PB83","featured_media":{"alt":null,"id":23876296048739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883518074979,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471387476067,"product_id":7408175841379,"position":5,"created_at":"2024-05-03T12:14:47+08:00","updated_at":"2024-05-03T12:14:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d890ad50de121543010424dc9491c3dfd65ff91d_e62e0f38-20dd-4fe4-b1ca-bb19d0d7d8fb.webp?v=1714709687","variant_ids":[41883518074979]},"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-PB83","featured_media":{"alt":null,"id":23876293623907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d890ad50de121543010424dc9491c3dfd65ff91d_e62e0f38-20dd-4fe4-b1ca-bb19d0d7d8fb.webp?v=1714709687"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883518304355,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471388754019,"product_id":7408175841379,"position":7,"created_at":"2024-05-03T12:14:52+08:00","updated_at":"2024-05-03T12:14:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3535406fe9ca98aa2f0ec3bef47aed0e39434bb6_ab53f3c8-1503-4a34-bbff-0a531bb2e434.webp?v=1714709692","variant_ids":[41883518304355]},"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-PB83","featured_media":{"alt":null,"id":23876294901859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3535406fe9ca98aa2f0ec3bef47aed0e39434bb6_ab53f3c8-1503-4a34-bbff-0a531bb2e434.webp?v=1714709692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883518009443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31471389900899,"product_id":7408175841379,"position":9,"created_at":"2024-05-03T12:14:57+08:00","updated_at":"2024-05-03T12:14:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697","variant_ids":[41883518009443]},"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-PB83","featured_media":{"alt":null,"id":23876296048739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c12985be2f75721a1eb8c8afbe03c138b45933_f5be7adb-2dc1-4ab4-9a58-142070ce2a6f.webp?v=1714709697"}},"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: "停產" }