$product = {"id":7408069607523,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-經典","handle":"iphone-13-mini-mod-nx-printable-pb23","description":null,"published_at":"2024-06-11T16:30:34+08:00","created_at":"2024-05-03T11:53:15+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":41882334560355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31471114813539,"product_id":7408069607523,"position":7,"created_at":"2024-05-03T11:53:32+08:00","updated_at":"2024-05-03T11:53:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412","variant_ids":[41882334560355]},"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-PB23","featured_media":{"alt":null,"id":23876019650659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882334658659,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31471115567203,"product_id":7408069607523,"position":9,"created_at":"2024-05-03T11:53:37+08:00","updated_at":"2024-05-03T11:53:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10aab005fe5963ee4dc4c1270d9884c9dbfa5091_c4ff9efa-443b-4ae2-a39b-6daf360b7e42.webp?v=1714708417","variant_ids":[41882334658659]},"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-PB23","featured_media":{"alt":null,"id":23876020797539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10aab005fe5963ee4dc4c1270d9884c9dbfa5091_c4ff9efa-443b-4ae2-a39b-6daf360b7e42.webp?v=1714708417"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882334888035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31471113961571,"product_id":7408069607523,"position":6,"created_at":"2024-05-03T11:53:30+08:00","updated_at":"2024-05-03T11:53:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec43a242cedaa53d6bdff77019cd3dcae6babe4_8f43f039-81cc-4554-b47a-d6fa0a48ce3b.webp?v=1714708410","variant_ids":[41882334888035]},"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-PB23","featured_media":{"alt":null,"id":23876019159139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec43a242cedaa53d6bdff77019cd3dcae6babe4_8f43f039-81cc-4554-b47a-d6fa0a48ce3b.webp?v=1714708410"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b4f39d95f7ec34683bcf0a9d13c250050c6c63a_ac1c3459-1e58-4d76-ba64-7c03154c35c0.webp?v=1714708398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f59e83fd49cbd2c73b54ec3afc28c647eaaad5_0d88757e-1225-4d68-836b-9488e28a063c.webp?v=1714708400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6ec1a246a1529eef04d3b0ef844a52b3e0de156_4e8aa06a-7725-430b-a619-75425aaf0c20.webp?v=1714708403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a4a3d1456c7e62d81fbef2db4b0dad01ff035e_f3a99c3e-13c6-46a8-bfec-04842f85c27a.webp?v=1714708405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbf0cd40725b0ea7728eea6e077ccc25d681394_8d14c3bf-5011-4a74-894f-ea6adcc0df84.webp?v=1714708407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec43a242cedaa53d6bdff77019cd3dcae6babe4_8f43f039-81cc-4554-b47a-d6fa0a48ce3b.webp?v=1714708410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8b5e090ad91119b8e75b4112f052bf6c046f7b7_af640127-40ab-49bd-ba0c-3ca10c47257f.webp?v=1714708415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10aab005fe5963ee4dc4c1270d9884c9dbfa5091_c4ff9efa-443b-4ae2-a39b-6daf360b7e42.webp?v=1714708417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b962c519ce6d334f900eedf0f5a3a93a988d49_dc765af2-3cbf-4e95-b730-d69f1e702dd8.webp?v=1714708419"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b4f39d95f7ec34683bcf0a9d13c250050c6c63a_ac1c3459-1e58-4d76-ba64-7c03154c35c0.webp?v=1714708398","options":["color"],"media":[{"alt":null,"id":23876017094755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b4f39d95f7ec34683bcf0a9d13c250050c6c63a_ac1c3459-1e58-4d76-ba64-7c03154c35c0.webp?v=1714708398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b4f39d95f7ec34683bcf0a9d13c250050c6c63a_ac1c3459-1e58-4d76-ba64-7c03154c35c0.webp?v=1714708398","width":2000},{"alt":null,"id":23876017684579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f59e83fd49cbd2c73b54ec3afc28c647eaaad5_0d88757e-1225-4d68-836b-9488e28a063c.webp?v=1714708400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f59e83fd49cbd2c73b54ec3afc28c647eaaad5_0d88757e-1225-4d68-836b-9488e28a063c.webp?v=1714708400","width":2000},{"alt":null,"id":23876018077795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6ec1a246a1529eef04d3b0ef844a52b3e0de156_4e8aa06a-7725-430b-a619-75425aaf0c20.webp?v=1714708403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6ec1a246a1529eef04d3b0ef844a52b3e0de156_4e8aa06a-7725-430b-a619-75425aaf0c20.webp?v=1714708403","width":2000},{"alt":null,"id":23876018471011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a4a3d1456c7e62d81fbef2db4b0dad01ff035e_f3a99c3e-13c6-46a8-bfec-04842f85c27a.webp?v=1714708405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a4a3d1456c7e62d81fbef2db4b0dad01ff035e_f3a99c3e-13c6-46a8-bfec-04842f85c27a.webp?v=1714708405","width":2000},{"alt":null,"id":23876018798691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbf0cd40725b0ea7728eea6e077ccc25d681394_8d14c3bf-5011-4a74-894f-ea6adcc0df84.webp?v=1714708407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbf0cd40725b0ea7728eea6e077ccc25d681394_8d14c3bf-5011-4a74-894f-ea6adcc0df84.webp?v=1714708407","width":2000},{"alt":null,"id":23876019159139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec43a242cedaa53d6bdff77019cd3dcae6babe4_8f43f039-81cc-4554-b47a-d6fa0a48ce3b.webp?v=1714708410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec43a242cedaa53d6bdff77019cd3dcae6babe4_8f43f039-81cc-4554-b47a-d6fa0a48ce3b.webp?v=1714708410","width":2000},{"alt":null,"id":23876019650659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412","width":2000},{"alt":null,"id":23876020371555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8b5e090ad91119b8e75b4112f052bf6c046f7b7_af640127-40ab-49bd-ba0c-3ca10c47257f.webp?v=1714708415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8b5e090ad91119b8e75b4112f052bf6c046f7b7_af640127-40ab-49bd-ba0c-3ca10c47257f.webp?v=1714708415","width":2000},{"alt":null,"id":23876020797539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10aab005fe5963ee4dc4c1270d9884c9dbfa5091_c4ff9efa-443b-4ae2-a39b-6daf360b7e42.webp?v=1714708417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10aab005fe5963ee4dc4c1270d9884c9dbfa5091_c4ff9efa-443b-4ae2-a39b-6daf360b7e42.webp?v=1714708417","width":2000},{"alt":null,"id":23876021223523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b962c519ce6d334f900eedf0f5a3a93a988d49_dc765af2-3cbf-4e95-b730-d69f1e702dd8.webp?v=1714708419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b962c519ce6d334f900eedf0f5a3a93a988d49_dc765af2-3cbf-4e95-b730-d69f1e702dd8.webp?v=1714708419","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41882334560355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31471114813539,"product_id":7408069607523,"position":7,"created_at":"2024-05-03T11:53:32+08:00","updated_at":"2024-05-03T11:53:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412","variant_ids":[41882334560355]},"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-PB23","featured_media":{"alt":null,"id":23876019650659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882334658659,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31471115567203,"product_id":7408069607523,"position":9,"created_at":"2024-05-03T11:53:37+08:00","updated_at":"2024-05-03T11:53:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10aab005fe5963ee4dc4c1270d9884c9dbfa5091_c4ff9efa-443b-4ae2-a39b-6daf360b7e42.webp?v=1714708417","variant_ids":[41882334658659]},"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-PB23","featured_media":{"alt":null,"id":23876020797539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10aab005fe5963ee4dc4c1270d9884c9dbfa5091_c4ff9efa-443b-4ae2-a39b-6daf360b7e42.webp?v=1714708417"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882334888035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31471113961571,"product_id":7408069607523,"position":6,"created_at":"2024-05-03T11:53:30+08:00","updated_at":"2024-05-03T11:53:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec43a242cedaa53d6bdff77019cd3dcae6babe4_8f43f039-81cc-4554-b47a-d6fa0a48ce3b.webp?v=1714708410","variant_ids":[41882334888035]},"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-PB23","featured_media":{"alt":null,"id":23876019159139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec43a242cedaa53d6bdff77019cd3dcae6babe4_8f43f039-81cc-4554-b47a-d6fa0a48ce3b.webp?v=1714708410"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882334560355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31471114813539,"product_id":7408069607523,"position":7,"created_at":"2024-05-03T11:53:32+08:00","updated_at":"2024-05-03T11:53:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412","variant_ids":[41882334560355]},"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-PB23","featured_media":{"alt":null,"id":23876019650659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54e2e40f2c25888615c87bf1c2de72f01d110f_b8eb609f-c17c-4a8d-b413-6f5c364c6825.webp?v=1714708412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }