$product = {"id":7414574022755,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb01","description":null,"published_at":"2024-06-11T17:52:10+08:00","created_at":"2024-05-05T14:31:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41907463651427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485795762275,"product_id":7414574022755,"position":8,"created_at":"2024-05-05T14:31:37+08:00","updated_at":"2024-05-05T14:31:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697","variant_ids":[41907463651427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB01","featured_media":{"alt":null,"id":23891127795811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907463782499,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485789372515,"product_id":7414574022755,"position":1,"created_at":"2024-05-05T14:31:21+08:00","updated_at":"2024-05-05T14:31:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681","variant_ids":[41907463782499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB01","featured_media":{"alt":null,"id":23891120652387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907464142947,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485792026723,"product_id":7414574022755,"position":4,"created_at":"2024-05-05T14:31:28+08:00","updated_at":"2024-05-05T14:31:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564078da95ea4f580e6c18f8efeaf1060b4abfe3_a4f21cc9-9b41-49c3-8ba7-a13395ea06c9.webp?v=1714890688","variant_ids":[41907464142947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB01","featured_media":{"alt":null,"id":23891123798115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564078da95ea4f580e6c18f8efeaf1060b4abfe3_a4f21cc9-9b41-49c3-8ba7-a13395ea06c9.webp?v=1714890688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9e11d79a09fea694cbc366c32f5089d027bc0f8_f5af28a9-337a-4115-a828-9026c13b25a6.webp?v=1714890684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cdf0f8906f6d69bcb1f965be2a52a927fb7f6a_fc2dd960-a1df-46f6-89ff-ccab27617cfb.webp?v=1714890686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564078da95ea4f580e6c18f8efeaf1060b4abfe3_a4f21cc9-9b41-49c3-8ba7-a13395ea06c9.webp?v=1714890688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/289ca56f63acd35bcaa409a84a104ed129766268_9cd1801c-1f4d-4c39-ba48-ee999a925915.webp?v=1714890690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86170dde19a4c119acca4c37aa883537ce23b26e_0704b77e-4897-4a41-b96f-246d4475d472.webp?v=1714890693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01115fcbe50178efa0ee7694e5475c5beb20e11b_86aed306-5150-418b-a7c2-1c9bbad16eeb.webp?v=1714890695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728102c23e77d0e047a3bf95d99ebd40a253685e_c6d05608-adfe-429d-b4f7-39d9f313a1b2.webp?v=1714890700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62574d1db2583e6abb974b1f013b2504cbe0e6e1_fd1e9a0a-4b15-4ad0-922f-6925dba763af.webp?v=1714890702"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681","options":["color"],"media":[{"alt":null,"id":23891120652387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681","width":2000},{"alt":null,"id":23891121832035,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9e11d79a09fea694cbc366c32f5089d027bc0f8_f5af28a9-337a-4115-a828-9026c13b25a6.webp?v=1714890684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9e11d79a09fea694cbc366c32f5089d027bc0f8_f5af28a9-337a-4115-a828-9026c13b25a6.webp?v=1714890684","width":2000},{"alt":null,"id":23891122847843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cdf0f8906f6d69bcb1f965be2a52a927fb7f6a_fc2dd960-a1df-46f6-89ff-ccab27617cfb.webp?v=1714890686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cdf0f8906f6d69bcb1f965be2a52a927fb7f6a_fc2dd960-a1df-46f6-89ff-ccab27617cfb.webp?v=1714890686","width":2000},{"alt":null,"id":23891123798115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564078da95ea4f580e6c18f8efeaf1060b4abfe3_a4f21cc9-9b41-49c3-8ba7-a13395ea06c9.webp?v=1714890688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564078da95ea4f580e6c18f8efeaf1060b4abfe3_a4f21cc9-9b41-49c3-8ba7-a13395ea06c9.webp?v=1714890688","width":2000},{"alt":null,"id":23891125239907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/289ca56f63acd35bcaa409a84a104ed129766268_9cd1801c-1f4d-4c39-ba48-ee999a925915.webp?v=1714890690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/289ca56f63acd35bcaa409a84a104ed129766268_9cd1801c-1f4d-4c39-ba48-ee999a925915.webp?v=1714890690","width":2000},{"alt":null,"id":23891126059107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86170dde19a4c119acca4c37aa883537ce23b26e_0704b77e-4897-4a41-b96f-246d4475d472.webp?v=1714890693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86170dde19a4c119acca4c37aa883537ce23b26e_0704b77e-4897-4a41-b96f-246d4475d472.webp?v=1714890693","width":2000},{"alt":null,"id":23891126911075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01115fcbe50178efa0ee7694e5475c5beb20e11b_86aed306-5150-418b-a7c2-1c9bbad16eeb.webp?v=1714890695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01115fcbe50178efa0ee7694e5475c5beb20e11b_86aed306-5150-418b-a7c2-1c9bbad16eeb.webp?v=1714890695","width":2000},{"alt":null,"id":23891127795811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697","width":2000},{"alt":null,"id":23891128680547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728102c23e77d0e047a3bf95d99ebd40a253685e_c6d05608-adfe-429d-b4f7-39d9f313a1b2.webp?v=1714890700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/728102c23e77d0e047a3bf95d99ebd40a253685e_c6d05608-adfe-429d-b4f7-39d9f313a1b2.webp?v=1714890700","width":2000},{"alt":null,"id":23891130056803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62574d1db2583e6abb974b1f013b2504cbe0e6e1_fd1e9a0a-4b15-4ad0-922f-6925dba763af.webp?v=1714890702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62574d1db2583e6abb974b1f013b2504cbe0e6e1_fd1e9a0a-4b15-4ad0-922f-6925dba763af.webp?v=1714890702","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907463651427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485795762275,"product_id":7414574022755,"position":8,"created_at":"2024-05-05T14:31:37+08:00","updated_at":"2024-05-05T14:31:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697","variant_ids":[41907463651427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB01","featured_media":{"alt":null,"id":23891127795811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907463782499,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485789372515,"product_id":7414574022755,"position":1,"created_at":"2024-05-05T14:31:21+08:00","updated_at":"2024-05-05T14:31:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681","variant_ids":[41907463782499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB01","featured_media":{"alt":null,"id":23891120652387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aeb0860f8f61b3383cd966dfb10287fef85106cd_84ea306b-1994-48d0-aff3-1726775faf65.webp?v=1714890681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907464142947,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485792026723,"product_id":7414574022755,"position":4,"created_at":"2024-05-05T14:31:28+08:00","updated_at":"2024-05-05T14:31:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564078da95ea4f580e6c18f8efeaf1060b4abfe3_a4f21cc9-9b41-49c3-8ba7-a13395ea06c9.webp?v=1714890688","variant_ids":[41907464142947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB01","featured_media":{"alt":null,"id":23891123798115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564078da95ea4f580e6c18f8efeaf1060b4abfe3_a4f21cc9-9b41-49c3-8ba7-a13395ea06c9.webp?v=1714890688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907463651427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485795762275,"product_id":7414574022755,"position":8,"created_at":"2024-05-05T14:31:37+08:00","updated_at":"2024-05-05T14:31:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697","variant_ids":[41907463651427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB01","featured_media":{"alt":null,"id":23891127795811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65baec862dcca253cd1e0c00755ae913710c4e37_b9ff4db9-39b8-48f8-8fbe-092e0dbeba7f.webp?v=1714890697"}},"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: "停產"
}