$product = {"id":7369201614947,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 愛心墨鏡","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pl64","description":null,"published_at":"2024-06-11T17:31:21+08:00","created_at":"2024-04-23T15:43:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-snoopy","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":41793553072227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31387051524195,"product_id":7369201614947,"position":2,"created_at":"2024-04-23T15:43:49+08:00","updated_at":"2024-04-23T15:43:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229","variant_ids":[41793553072227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 愛心墨鏡 - 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":"MPB0123224-PL64","featured_media":{"alt":null,"id":23789290225763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793553399907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31387052703843,"product_id":7369201614947,"position":4,"created_at":"2024-04-23T15:43:53+08:00","updated_at":"2024-04-23T15:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578a7bc6c472b5a782c08179cf98ffd19945133_9fb740a3-df36-4fce-b078-9110e237c756.webp?v=1713858233","variant_ids":[41793553399907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 愛心墨鏡 - 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":"MPB01232J5-PL64","featured_media":{"alt":null,"id":23789291405411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578a7bc6c472b5a782c08179cf98ffd19945133_9fb740a3-df36-4fce-b078-9110e237c756.webp?v=1713858233"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b29cfcfdd94bbbc1b113d70ba20fcc196fe41ef_c12e9056-2811-4e97-ac81-0bb794dad9d7.webp?v=1713858227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43a4e88645d91644d8a3cc78125681abb7c9721_84669862-ffda-4a12-9c9f-2618f5b8b44d.webp?v=1713858231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578a7bc6c472b5a782c08179cf98ffd19945133_9fb740a3-df36-4fce-b078-9110e237c756.webp?v=1713858233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f012f0a06c50c13c0fb21171061749f86b8b5693_c0224cea-f527-4abf-80b1-c9a0164b06bc.webp?v=1713858235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/505702903414300ae1a10792f8f00a52254f41f2_e7fff636-5e22-49d9-8d0c-54b1ad999756.webp?v=1713858238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0125aebc301d11213b0801ad0517584687c27f_bc42915e-7327-4dca-a6a2-ad9ef123429e.webp?v=1713858240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17d49681adcdf9ca435368b11ab02fce547ad09_67109be8-6cfd-43fe-9348-9168339faae7.webp?v=1713858242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73517b6b0f272d490575daabee653bfefdaa582f_6b62348b-89ed-4587-ae6b-8f3d50192152.webp?v=1713858245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996af35a8f907a257e13ff2db9b72aee8b808a88_339c8efb-bf15-413e-8600-65f7ebb86986.webp?v=1713858247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7232eaba7b649b0369e4f5dc3df7158d0d73f09_492406e1-3650-4956-aa69-8c603b650b74.webp?v=1713858250"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b29cfcfdd94bbbc1b113d70ba20fcc196fe41ef_c12e9056-2811-4e97-ac81-0bb794dad9d7.webp?v=1713858227","options":["color"],"media":[{"alt":null,"id":23789289537635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b29cfcfdd94bbbc1b113d70ba20fcc196fe41ef_c12e9056-2811-4e97-ac81-0bb794dad9d7.webp?v=1713858227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b29cfcfdd94bbbc1b113d70ba20fcc196fe41ef_c12e9056-2811-4e97-ac81-0bb794dad9d7.webp?v=1713858227","width":2000},{"alt":null,"id":23789290225763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229","width":2000},{"alt":null,"id":23789290684515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43a4e88645d91644d8a3cc78125681abb7c9721_84669862-ffda-4a12-9c9f-2618f5b8b44d.webp?v=1713858231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43a4e88645d91644d8a3cc78125681abb7c9721_84669862-ffda-4a12-9c9f-2618f5b8b44d.webp?v=1713858231","width":2000},{"alt":null,"id":23789291405411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578a7bc6c472b5a782c08179cf98ffd19945133_9fb740a3-df36-4fce-b078-9110e237c756.webp?v=1713858233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578a7bc6c472b5a782c08179cf98ffd19945133_9fb740a3-df36-4fce-b078-9110e237c756.webp?v=1713858233","width":2000},{"alt":null,"id":23789291798627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f012f0a06c50c13c0fb21171061749f86b8b5693_c0224cea-f527-4abf-80b1-c9a0164b06bc.webp?v=1713858235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f012f0a06c50c13c0fb21171061749f86b8b5693_c0224cea-f527-4abf-80b1-c9a0164b06bc.webp?v=1713858235","width":2000},{"alt":null,"id":23789292388451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/505702903414300ae1a10792f8f00a52254f41f2_e7fff636-5e22-49d9-8d0c-54b1ad999756.webp?v=1713858238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/505702903414300ae1a10792f8f00a52254f41f2_e7fff636-5e22-49d9-8d0c-54b1ad999756.webp?v=1713858238","width":2000},{"alt":null,"id":23789293011043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0125aebc301d11213b0801ad0517584687c27f_bc42915e-7327-4dca-a6a2-ad9ef123429e.webp?v=1713858240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0125aebc301d11213b0801ad0517584687c27f_bc42915e-7327-4dca-a6a2-ad9ef123429e.webp?v=1713858240","width":2000},{"alt":null,"id":23789293535331,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17d49681adcdf9ca435368b11ab02fce547ad09_67109be8-6cfd-43fe-9348-9168339faae7.webp?v=1713858242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17d49681adcdf9ca435368b11ab02fce547ad09_67109be8-6cfd-43fe-9348-9168339faae7.webp?v=1713858242","width":2000},{"alt":null,"id":23789294321763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73517b6b0f272d490575daabee653bfefdaa582f_6b62348b-89ed-4587-ae6b-8f3d50192152.webp?v=1713858245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73517b6b0f272d490575daabee653bfefdaa582f_6b62348b-89ed-4587-ae6b-8f3d50192152.webp?v=1713858245","width":2000},{"alt":null,"id":23789294846051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996af35a8f907a257e13ff2db9b72aee8b808a88_339c8efb-bf15-413e-8600-65f7ebb86986.webp?v=1713858247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996af35a8f907a257e13ff2db9b72aee8b808a88_339c8efb-bf15-413e-8600-65f7ebb86986.webp?v=1713858247","width":2000},{"alt":null,"id":23789295370339,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7232eaba7b649b0369e4f5dc3df7158d0d73f09_492406e1-3650-4956-aa69-8c603b650b74.webp?v=1713858250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7232eaba7b649b0369e4f5dc3df7158d0d73f09_492406e1-3650-4956-aa69-8c603b650b74.webp?v=1713858250","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41793553072227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31387051524195,"product_id":7369201614947,"position":2,"created_at":"2024-04-23T15:43:49+08:00","updated_at":"2024-04-23T15:43:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229","variant_ids":[41793553072227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 愛心墨鏡 - 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":"MPB0123224-PL64","featured_media":{"alt":null,"id":23789290225763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793553399907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31387052703843,"product_id":7369201614947,"position":4,"created_at":"2024-04-23T15:43:53+08:00","updated_at":"2024-04-23T15:43:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578a7bc6c472b5a782c08179cf98ffd19945133_9fb740a3-df36-4fce-b078-9110e237c756.webp?v=1713858233","variant_ids":[41793553399907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 愛心墨鏡 - 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":"MPB01232J5-PL64","featured_media":{"alt":null,"id":23789291405411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578a7bc6c472b5a782c08179cf98ffd19945133_9fb740a3-df36-4fce-b078-9110e237c756.webp?v=1713858233"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41793553072227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31387051524195,"product_id":7369201614947,"position":2,"created_at":"2024-04-23T15:43:49+08:00","updated_at":"2024-04-23T15:43:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229","variant_ids":[41793553072227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 愛心墨鏡 - 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":"MPB0123224-PL64","featured_media":{"alt":null,"id":23789290225763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3d784f76f71ff53b555a914ed23a26b8c639e2_6aefd009-279c-4656-9ad9-2b56b9690da6.webp?v=1713858229"}},"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: "停產"
}