$product = {"id":7369091907683,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險","handle":"iphone-13-mini-mod-nx-magsafe-printable-sz05","description":null,"published_at":"2024-06-11T17:31:04+08:00","created_at":"2024-04-23T14:43:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區華納兄弟百年慶典 Warner Bros 100th Anniversary","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-warnerbros100","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-warnerbros100","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":41792774963299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386657914979,"product_id":7369091907683,"position":2,"created_at":"2024-04-23T14:43:33+08:00","updated_at":"2024-04-23T14:43:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613","variant_ids":[41792774963299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788891570275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792775028835,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386660274275,"product_id":7369091907683,"position":7,"created_at":"2024-04-23T14:43:42+08:00","updated_at":"2024-04-23T14:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20020e733938c62ea231c28e47a8634290dbe6b2_b587b2bd-6994-4e9d-b0e3-9b86cf3d90bd.webp?v=1713854623","variant_ids":[41792775028835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788893962339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20020e733938c62ea231c28e47a8634290dbe6b2_b587b2bd-6994-4e9d-b0e3-9b86cf3d90bd.webp?v=1713854623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792775258211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386659815523,"product_id":7369091907683,"position":6,"created_at":"2024-04-23T14:43:41+08:00","updated_at":"2024-04-23T14:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1d21cb75a36b4d45fe63a3ff4d1943a8d05f874_2b41a73b-c2de-4eeb-a5b2-daabcf1241fd.webp?v=1713854621","variant_ids":[41792775258211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788893536355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1d21cb75a36b4d45fe63a3ff4d1943a8d05f874_2b41a73b-c2de-4eeb-a5b2-daabcf1241fd.webp?v=1713854621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47edc955fa22ac024d8dee603802921ffc6ba709_ed257c22-9a68-4cbb-bad0-769aa6e128ad.webp?v=1713854611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5b59445a71876d63e6632ed5ee058c9f6b876c_965c91a5-a1fc-4ea8-b83c-e8216e7fb808.webp?v=1713854615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7779953ba981f373ec6b12d4409d058d16387b_0d0820f2-cc07-4412-8c62-ec68ad117ded.webp?v=1713854617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a16dbcacd22c87e2ae7450bbee01fcd970da3098_039b2eb3-0066-4272-8700-398d76bd7078.webp?v=1713854619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1d21cb75a36b4d45fe63a3ff4d1943a8d05f874_2b41a73b-c2de-4eeb-a5b2-daabcf1241fd.webp?v=1713854621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20020e733938c62ea231c28e47a8634290dbe6b2_b587b2bd-6994-4e9d-b0e3-9b86cf3d90bd.webp?v=1713854623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9321f0c223bdd6bdfb6f4254dbdb7ebef34410_78471b14-dd69-4ba3-901c-7d50bd2a284e.webp?v=1713854624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255f5f15948561967e8dcd89e7ea22ae7ceceeff_8a32338e-b613-461f-9b1d-09cec7b275c0.webp?v=1713854626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cb49fc4ae1bd6ff8038b8327e22f68b8cc8c365_13ac9076-b627-4732-9242-e596d12c7ac2.webp?v=1713854629"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47edc955fa22ac024d8dee603802921ffc6ba709_ed257c22-9a68-4cbb-bad0-769aa6e128ad.webp?v=1713854611","options":["color"],"media":[{"alt":null,"id":23788891013219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47edc955fa22ac024d8dee603802921ffc6ba709_ed257c22-9a68-4cbb-bad0-769aa6e128ad.webp?v=1713854611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47edc955fa22ac024d8dee603802921ffc6ba709_ed257c22-9a68-4cbb-bad0-769aa6e128ad.webp?v=1713854611","width":2000},{"alt":null,"id":23788891570275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613","width":2000},{"alt":null,"id":23788892029027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5b59445a71876d63e6632ed5ee058c9f6b876c_965c91a5-a1fc-4ea8-b83c-e8216e7fb808.webp?v=1713854615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5b59445a71876d63e6632ed5ee058c9f6b876c_965c91a5-a1fc-4ea8-b83c-e8216e7fb808.webp?v=1713854615","width":2000},{"alt":null,"id":23788892880995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7779953ba981f373ec6b12d4409d058d16387b_0d0820f2-cc07-4412-8c62-ec68ad117ded.webp?v=1713854617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7779953ba981f373ec6b12d4409d058d16387b_0d0820f2-cc07-4412-8c62-ec68ad117ded.webp?v=1713854617","width":2000},{"alt":null,"id":23788893175907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a16dbcacd22c87e2ae7450bbee01fcd970da3098_039b2eb3-0066-4272-8700-398d76bd7078.webp?v=1713854619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a16dbcacd22c87e2ae7450bbee01fcd970da3098_039b2eb3-0066-4272-8700-398d76bd7078.webp?v=1713854619","width":2000},{"alt":null,"id":23788893536355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1d21cb75a36b4d45fe63a3ff4d1943a8d05f874_2b41a73b-c2de-4eeb-a5b2-daabcf1241fd.webp?v=1713854621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1d21cb75a36b4d45fe63a3ff4d1943a8d05f874_2b41a73b-c2de-4eeb-a5b2-daabcf1241fd.webp?v=1713854621","width":2000},{"alt":null,"id":23788893962339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20020e733938c62ea231c28e47a8634290dbe6b2_b587b2bd-6994-4e9d-b0e3-9b86cf3d90bd.webp?v=1713854623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20020e733938c62ea231c28e47a8634290dbe6b2_b587b2bd-6994-4e9d-b0e3-9b86cf3d90bd.webp?v=1713854623","width":2000},{"alt":null,"id":23788894158947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9321f0c223bdd6bdfb6f4254dbdb7ebef34410_78471b14-dd69-4ba3-901c-7d50bd2a284e.webp?v=1713854624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9321f0c223bdd6bdfb6f4254dbdb7ebef34410_78471b14-dd69-4ba3-901c-7d50bd2a284e.webp?v=1713854624","width":2000},{"alt":null,"id":23788894519395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255f5f15948561967e8dcd89e7ea22ae7ceceeff_8a32338e-b613-461f-9b1d-09cec7b275c0.webp?v=1713854626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255f5f15948561967e8dcd89e7ea22ae7ceceeff_8a32338e-b613-461f-9b1d-09cec7b275c0.webp?v=1713854626","width":2000},{"alt":null,"id":23788895010915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cb49fc4ae1bd6ff8038b8327e22f68b8cc8c365_13ac9076-b627-4732-9242-e596d12c7ac2.webp?v=1713854629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cb49fc4ae1bd6ff8038b8327e22f68b8cc8c365_13ac9076-b627-4732-9242-e596d12c7ac2.webp?v=1713854629","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41792774963299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386657914979,"product_id":7369091907683,"position":2,"created_at":"2024-04-23T14:43:33+08:00","updated_at":"2024-04-23T14:43:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613","variant_ids":[41792774963299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788891570275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792775028835,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386660274275,"product_id":7369091907683,"position":7,"created_at":"2024-04-23T14:43:42+08:00","updated_at":"2024-04-23T14:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20020e733938c62ea231c28e47a8634290dbe6b2_b587b2bd-6994-4e9d-b0e3-9b86cf3d90bd.webp?v=1713854623","variant_ids":[41792775028835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788893962339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20020e733938c62ea231c28e47a8634290dbe6b2_b587b2bd-6994-4e9d-b0e3-9b86cf3d90bd.webp?v=1713854623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792775258211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386659815523,"product_id":7369091907683,"position":6,"created_at":"2024-04-23T14:43:41+08:00","updated_at":"2024-04-23T14:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1d21cb75a36b4d45fe63a3ff4d1943a8d05f874_2b41a73b-c2de-4eeb-a5b2-daabcf1241fd.webp?v=1713854621","variant_ids":[41792775258211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788893536355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1d21cb75a36b4d45fe63a3ff4d1943a8d05f874_2b41a73b-c2de-4eeb-a5b2-daabcf1241fd.webp?v=1713854621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41792774963299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386657914979,"product_id":7369091907683,"position":2,"created_at":"2024-04-23T14:43:33+08:00","updated_at":"2024-04-23T14:43:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613","variant_ids":[41792774963299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788891570275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864ceb7e0c4f7465df336c13a1f936b59b8472e_d252cebd-26a7-453e-9a56-405b5de5bcd1.webp?v=1713854613"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}