Home
›
犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林)
$product = {"id":7411306463331,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林)","handle":"iphone-14-pro-mod-nx-magsafe-printable-af01","description":null,"published_at":"2024-06-11T17:41:23+08:00","created_at":"2024-05-05T00:04:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41897228206179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480103534691,"product_id":7411306463331,"position":9,"created_at":"2024-05-05T00:04:43+08:00","updated_at":"2024-05-05T00:04:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683","variant_ids":[41897228206179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23885354369123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897228271715,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480099995747,"product_id":7411306463331,"position":2,"created_at":"2024-05-05T00:04:26+08:00","updated_at":"2024-05-05T00:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd568d187d4ee9831c0e54656fde4bad43ba888_31f2fdaa-88c4-4ee3-a951-50a9f18e067b.webp?v=1714838666","variant_ids":[41897228271715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23885350830179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd568d187d4ee9831c0e54656fde4bad43ba888_31f2fdaa-88c4-4ee3-a951-50a9f18e067b.webp?v=1714838666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897228730467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480102977635,"product_id":7411306463331,"position":8,"created_at":"2024-05-05T00:04:41+08:00","updated_at":"2024-05-05T00:04:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0610268762316ffdda74b32d0f6fbceb7fa5bb86_17c8f826-6c6d-47bd-aea4-887955dad75f.webp?v=1714838681","variant_ids":[41897228730467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23885353779299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0610268762316ffdda74b32d0f6fbceb7fa5bb86_17c8f826-6c6d-47bd-aea4-887955dad75f.webp?v=1714838681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b44a46ffed7ec90674386024aaaf3b339c531e1_38f94473-fe44-45ee-a99d-2a01d87e0b66.webp?v=1714838664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd568d187d4ee9831c0e54656fde4bad43ba888_31f2fdaa-88c4-4ee3-a951-50a9f18e067b.webp?v=1714838666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926a444fbb067ee1417750fc1fd8c833edcb6583_03ead4a1-ce2b-496f-a5c1-f51769a531ac.webp?v=1714838669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b93f4193a59e180298cbd3bb93e1657e4ab10798_2e4610dc-7109-43be-806f-a5b1e0ee9243.webp?v=1714838671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504679b5afce396ba4ded6a76b6627064cd68d4d_91c8446c-1e34-4230-aa03-5f51d72bcb89.webp?v=1714838674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/199df732d20720b092e066d49d3c4fac2fde5a95_493f8b33-775e-4845-b0e9-274d947dac2a.webp?v=1714838676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c794c7afbe6f7fa96a9e14b023c6c9ebe5a072_f40383ae-3b40-49ea-b7be-bce34bb62b13.webp?v=1714838678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0610268762316ffdda74b32d0f6fbceb7fa5bb86_17c8f826-6c6d-47bd-aea4-887955dad75f.webp?v=1714838681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b092729e8bf5c7670d3d919ad594cb38f0b87d9_5cddff66-413e-41f9-ba23-fe9d99808fb7.webp?v=1714838686"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b44a46ffed7ec90674386024aaaf3b339c531e1_38f94473-fe44-45ee-a99d-2a01d87e0b66.webp?v=1714838664","options":["color"],"media":[{"alt":null,"id":23885350076515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b44a46ffed7ec90674386024aaaf3b339c531e1_38f94473-fe44-45ee-a99d-2a01d87e0b66.webp?v=1714838664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b44a46ffed7ec90674386024aaaf3b339c531e1_38f94473-fe44-45ee-a99d-2a01d87e0b66.webp?v=1714838664","width":2000},{"alt":null,"id":23885350830179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd568d187d4ee9831c0e54656fde4bad43ba888_31f2fdaa-88c4-4ee3-a951-50a9f18e067b.webp?v=1714838666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd568d187d4ee9831c0e54656fde4bad43ba888_31f2fdaa-88c4-4ee3-a951-50a9f18e067b.webp?v=1714838666","width":2000},{"alt":null,"id":23885351288931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926a444fbb067ee1417750fc1fd8c833edcb6583_03ead4a1-ce2b-496f-a5c1-f51769a531ac.webp?v=1714838669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/926a444fbb067ee1417750fc1fd8c833edcb6583_03ead4a1-ce2b-496f-a5c1-f51769a531ac.webp?v=1714838669","width":2000},{"alt":null,"id":23885351878755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b93f4193a59e180298cbd3bb93e1657e4ab10798_2e4610dc-7109-43be-806f-a5b1e0ee9243.webp?v=1714838671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b93f4193a59e180298cbd3bb93e1657e4ab10798_2e4610dc-7109-43be-806f-a5b1e0ee9243.webp?v=1714838671","width":2000},{"alt":null,"id":23885352403043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504679b5afce396ba4ded6a76b6627064cd68d4d_91c8446c-1e34-4230-aa03-5f51d72bcb89.webp?v=1714838674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504679b5afce396ba4ded6a76b6627064cd68d4d_91c8446c-1e34-4230-aa03-5f51d72bcb89.webp?v=1714838674","width":2000},{"alt":null,"id":23885352829027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/199df732d20720b092e066d49d3c4fac2fde5a95_493f8b33-775e-4845-b0e9-274d947dac2a.webp?v=1714838676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/199df732d20720b092e066d49d3c4fac2fde5a95_493f8b33-775e-4845-b0e9-274d947dac2a.webp?v=1714838676","width":2000},{"alt":null,"id":23885353255011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c794c7afbe6f7fa96a9e14b023c6c9ebe5a072_f40383ae-3b40-49ea-b7be-bce34bb62b13.webp?v=1714838678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1c794c7afbe6f7fa96a9e14b023c6c9ebe5a072_f40383ae-3b40-49ea-b7be-bce34bb62b13.webp?v=1714838678","width":2000},{"alt":null,"id":23885353779299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0610268762316ffdda74b32d0f6fbceb7fa5bb86_17c8f826-6c6d-47bd-aea4-887955dad75f.webp?v=1714838681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0610268762316ffdda74b32d0f6fbceb7fa5bb86_17c8f826-6c6d-47bd-aea4-887955dad75f.webp?v=1714838681","width":2000},{"alt":null,"id":23885354369123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683","width":2000},{"alt":null,"id":23885355122787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b092729e8bf5c7670d3d919ad594cb38f0b87d9_5cddff66-413e-41f9-ba23-fe9d99808fb7.webp?v=1714838686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b092729e8bf5c7670d3d919ad594cb38f0b87d9_5cddff66-413e-41f9-ba23-fe9d99808fb7.webp?v=1714838686","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897228206179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480103534691,"product_id":7411306463331,"position":9,"created_at":"2024-05-05T00:04:43+08:00","updated_at":"2024-05-05T00:04:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683","variant_ids":[41897228206179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23885354369123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897228271715,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480099995747,"product_id":7411306463331,"position":2,"created_at":"2024-05-05T00:04:26+08:00","updated_at":"2024-05-05T00:04:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd568d187d4ee9831c0e54656fde4bad43ba888_31f2fdaa-88c4-4ee3-a951-50a9f18e067b.webp?v=1714838666","variant_ids":[41897228271715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23885350830179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd568d187d4ee9831c0e54656fde4bad43ba888_31f2fdaa-88c4-4ee3-a951-50a9f18e067b.webp?v=1714838666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897228730467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480102977635,"product_id":7411306463331,"position":8,"created_at":"2024-05-05T00:04:41+08:00","updated_at":"2024-05-05T00:04:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0610268762316ffdda74b32d0f6fbceb7fa5bb86_17c8f826-6c6d-47bd-aea4-887955dad75f.webp?v=1714838681","variant_ids":[41897228730467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23885353779299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0610268762316ffdda74b32d0f6fbceb7fa5bb86_17c8f826-6c6d-47bd-aea4-887955dad75f.webp?v=1714838681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897228206179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480103534691,"product_id":7411306463331,"position":9,"created_at":"2024-05-05T00:04:43+08:00","updated_at":"2024-05-05T00:04:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683","variant_ids":[41897228206179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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-AF01","featured_media":{"alt":null,"id":23885354369123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b9d0f9e9b64e3735537e57c0ac1046eace4da_a8389d2f-c527-4159-8c1e-2ee76f546c2f.webp?v=1714838683"}},"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: "停產"
}