$product = {"id":7411338051683,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗","handle":"iphone-14-pro-mod-nx-magsafe-printable-hq02","description":null,"published_at":"2024-06-11T17:42:14+08:00","created_at":"2024-05-05T00:10:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41897628368995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480173920355,"product_id":7411338051683,"position":4,"created_at":"2024-05-05T00:10:23+08:00","updated_at":"2024-05-05T00:10:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023","variant_ids":[41897628368995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HQ02","featured_media":{"alt":null,"id":23885424820323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897628500067,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480174411875,"product_id":7411338051683,"position":5,"created_at":"2024-05-05T00:10:25+08:00","updated_at":"2024-05-05T00:10:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d968fa4bb08dc4de4eb9c8e87ee758f157bb1c_0479a776-3ec7-4c39-a6f0-a43a2de9cad0.webp?v=1714839025","variant_ids":[41897628500067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-HQ02","featured_media":{"alt":null,"id":23885425377379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d968fa4bb08dc4de4eb9c8e87ee758f157bb1c_0479a776-3ec7-4c39-a6f0-a43a2de9cad0.webp?v=1714839025"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897628958819,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480174903395,"product_id":7411338051683,"position":6,"created_at":"2024-05-05T00:10:28+08:00","updated_at":"2024-05-05T00:10:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91de60c76d8c174e607255119a97241340456789_8b8eed51-014b-4ddc-8f5c-b6a5ce9e2403.webp?v=1714839028","variant_ids":[41897628958819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-HQ02","featured_media":{"alt":null,"id":23885425803363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91de60c76d8c174e607255119a97241340456789_8b8eed51-014b-4ddc-8f5c-b6a5ce9e2403.webp?v=1714839028"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fea9f04c7e70a62100052c8c271e45a5a3f831b_1ef7402e-feaa-4c27-9b2c-cad406c52064.webp?v=1714839016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63b2d32877d76c260486eb81b31b407d3622693_c168d6f0-8f60-4dc3-a272-0f6d7f947806.webp?v=1714839018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46c8230868e6b74cfda6d05235d25d693623d1c_0ea15f8d-6595-4bc0-86c0-65b7995d9c78.webp?v=1714839021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d968fa4bb08dc4de4eb9c8e87ee758f157bb1c_0479a776-3ec7-4c39-a6f0-a43a2de9cad0.webp?v=1714839025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91de60c76d8c174e607255119a97241340456789_8b8eed51-014b-4ddc-8f5c-b6a5ce9e2403.webp?v=1714839028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48b3e4449be60e9f547e586390b7d4562003c704_6fa8dd81-9a9e-4d49-988d-14b8888c4ec8.webp?v=1714839030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9ed6f2b3bdd94d94b9c66ace1771851b09d92f_73c5a7fc-644a-4f34-8c08-0e4e1c460472.webp?v=1714839033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac3340f10520e6e08d1b61a3b1d56d3cca59e05_47e3b172-32d6-4446-9110-cbd4490d74be.webp?v=1714839035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5206ae646000a548c470ef84b91c47ea156f29_1133ee96-bc1a-49b7-a7c8-8023e3153379.webp?v=1714839037"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fea9f04c7e70a62100052c8c271e45a5a3f831b_1ef7402e-feaa-4c27-9b2c-cad406c52064.webp?v=1714839016","options":["color"],"media":[{"alt":null,"id":23885423607907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fea9f04c7e70a62100052c8c271e45a5a3f831b_1ef7402e-feaa-4c27-9b2c-cad406c52064.webp?v=1714839016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fea9f04c7e70a62100052c8c271e45a5a3f831b_1ef7402e-feaa-4c27-9b2c-cad406c52064.webp?v=1714839016","width":2000},{"alt":null,"id":23885424033891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63b2d32877d76c260486eb81b31b407d3622693_c168d6f0-8f60-4dc3-a272-0f6d7f947806.webp?v=1714839018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63b2d32877d76c260486eb81b31b407d3622693_c168d6f0-8f60-4dc3-a272-0f6d7f947806.webp?v=1714839018","width":2000},{"alt":null,"id":23885424459875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46c8230868e6b74cfda6d05235d25d693623d1c_0ea15f8d-6595-4bc0-86c0-65b7995d9c78.webp?v=1714839021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46c8230868e6b74cfda6d05235d25d693623d1c_0ea15f8d-6595-4bc0-86c0-65b7995d9c78.webp?v=1714839021","width":2000},{"alt":null,"id":23885424820323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023","width":2000},{"alt":null,"id":23885425377379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d968fa4bb08dc4de4eb9c8e87ee758f157bb1c_0479a776-3ec7-4c39-a6f0-a43a2de9cad0.webp?v=1714839025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d968fa4bb08dc4de4eb9c8e87ee758f157bb1c_0479a776-3ec7-4c39-a6f0-a43a2de9cad0.webp?v=1714839025","width":2000},{"alt":null,"id":23885425803363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91de60c76d8c174e607255119a97241340456789_8b8eed51-014b-4ddc-8f5c-b6a5ce9e2403.webp?v=1714839028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91de60c76d8c174e607255119a97241340456789_8b8eed51-014b-4ddc-8f5c-b6a5ce9e2403.webp?v=1714839028","width":2000},{"alt":null,"id":23885426393187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48b3e4449be60e9f547e586390b7d4562003c704_6fa8dd81-9a9e-4d49-988d-14b8888c4ec8.webp?v=1714839030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48b3e4449be60e9f547e586390b7d4562003c704_6fa8dd81-9a9e-4d49-988d-14b8888c4ec8.webp?v=1714839030","width":2000},{"alt":null,"id":23885427408995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9ed6f2b3bdd94d94b9c66ace1771851b09d92f_73c5a7fc-644a-4f34-8c08-0e4e1c460472.webp?v=1714839033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9ed6f2b3bdd94d94b9c66ace1771851b09d92f_73c5a7fc-644a-4f34-8c08-0e4e1c460472.webp?v=1714839033","width":2000},{"alt":null,"id":23885427867747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac3340f10520e6e08d1b61a3b1d56d3cca59e05_47e3b172-32d6-4446-9110-cbd4490d74be.webp?v=1714839035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac3340f10520e6e08d1b61a3b1d56d3cca59e05_47e3b172-32d6-4446-9110-cbd4490d74be.webp?v=1714839035","width":2000},{"alt":null,"id":23885428359267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5206ae646000a548c470ef84b91c47ea156f29_1133ee96-bc1a-49b7-a7c8-8023e3153379.webp?v=1714839037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5206ae646000a548c470ef84b91c47ea156f29_1133ee96-bc1a-49b7-a7c8-8023e3153379.webp?v=1714839037","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41897628368995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480173920355,"product_id":7411338051683,"position":4,"created_at":"2024-05-05T00:10:23+08:00","updated_at":"2024-05-05T00:10:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023","variant_ids":[41897628368995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HQ02","featured_media":{"alt":null,"id":23885424820323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897628500067,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480174411875,"product_id":7411338051683,"position":5,"created_at":"2024-05-05T00:10:25+08:00","updated_at":"2024-05-05T00:10:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d968fa4bb08dc4de4eb9c8e87ee758f157bb1c_0479a776-3ec7-4c39-a6f0-a43a2de9cad0.webp?v=1714839025","variant_ids":[41897628500067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-HQ02","featured_media":{"alt":null,"id":23885425377379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03d968fa4bb08dc4de4eb9c8e87ee758f157bb1c_0479a776-3ec7-4c39-a6f0-a43a2de9cad0.webp?v=1714839025"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897628958819,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480174903395,"product_id":7411338051683,"position":6,"created_at":"2024-05-05T00:10:28+08:00","updated_at":"2024-05-05T00:10:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91de60c76d8c174e607255119a97241340456789_8b8eed51-014b-4ddc-8f5c-b6a5ce9e2403.webp?v=1714839028","variant_ids":[41897628958819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-HQ02","featured_media":{"alt":null,"id":23885425803363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91de60c76d8c174e607255119a97241340456789_8b8eed51-014b-4ddc-8f5c-b6a5ce9e2403.webp?v=1714839028"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897628368995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480173920355,"product_id":7411338051683,"position":4,"created_at":"2024-05-05T00:10:23+08:00","updated_at":"2024-05-05T00:10:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023","variant_ids":[41897628368995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HQ02","featured_media":{"alt":null,"id":23885424820323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0f5511c351868ab58abaca50f3157ec31bb972_a20f5244-1a21-488d-af63-7e200ac4354a.webp?v=1714839023"}},"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: "停產" }