$product = {"id":7369196437603,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 潛水趣","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pl60","description":null,"published_at":"2024-06-11T17:31:14+08:00","created_at":"2024-04-23T15:42:54+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":41793505296483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31387043954787,"product_id":7369196437603,"position":10,"created_at":"2024-04-23T15:43:19+08:00","updated_at":"2024-04-23T15:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199","variant_ids":[41793505296483]},"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-PL60","featured_media":{"alt":null,"id":23789282656355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793505591395,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31387039662179,"product_id":7369196437603,"position":3,"created_at":"2024-04-23T15:43:02+08:00","updated_at":"2024-04-23T15:43:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b229f6f44f8d0d2ba7e4a9ff6383bc7d29213e_2947863d-fa6e-4f7b-befe-c0a378a945fd.webp?v=1713858182","variant_ids":[41793505591395]},"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-PL60","featured_media":{"alt":null,"id":23789278167139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b229f6f44f8d0d2ba7e4a9ff6383bc7d29213e_2947863d-fa6e-4f7b-befe-c0a378a945fd.webp?v=1713858182"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/339a5355f98d72c9c2489892305aa6983dd2f2d8_a240fc04-6b9d-4d5c-9205-edac35346ad9.webp?v=1713858177","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593c145ee2763d1853af510a073f42cc6be85c04_066701f1-6d06-4a18-b4d0-d112307d3343.webp?v=1713858179","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b229f6f44f8d0d2ba7e4a9ff6383bc7d29213e_2947863d-fa6e-4f7b-befe-c0a378a945fd.webp?v=1713858182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accc78f67124bf133335dbb4a3f5c1cf105f5813_70d55145-134e-4ad7-9257-084c1cb0959c.webp?v=1713858184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b565b3e3b423c7c40e4c1fc28aefc6241d001d_9ae17f32-0002-4066-b826-84f36f9e7892.webp?v=1713858187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4523f13147ee8592e9cda3878a102de2721f78a_1a98d7a9-d252-4e48-956e-48c8254ba46b.webp?v=1713858189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1478a0c40be07735177add2a6c242a886f850243_84f391a8-d2b3-4924-be60-8f767f1cebc1.webp?v=1713858192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb87086ba658e3e12683a698f79253fe51258d6_ad681a05-65e2-4c3b-8954-fcfbb23ba5ee.webp?v=1713858194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64e5c00b2a0264c89442b9d4621c55d46c487e86_13a109bd-44c1-4a05-a846-315e2a6644a6.webp?v=1713858197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019abb2fd63337de655fc81134d94de6ad13cb42_dbe08dff-a4c1-48d7-a54f-1050cf15a556.webp?v=1713858202"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/339a5355f98d72c9c2489892305aa6983dd2f2d8_a240fc04-6b9d-4d5c-9205-edac35346ad9.webp?v=1713858177","options":["color"],"media":[{"alt":null,"id":23789276692579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/339a5355f98d72c9c2489892305aa6983dd2f2d8_a240fc04-6b9d-4d5c-9205-edac35346ad9.webp?v=1713858177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/339a5355f98d72c9c2489892305aa6983dd2f2d8_a240fc04-6b9d-4d5c-9205-edac35346ad9.webp?v=1713858177","width":2000},{"alt":null,"id":23789277577315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593c145ee2763d1853af510a073f42cc6be85c04_066701f1-6d06-4a18-b4d0-d112307d3343.webp?v=1713858179"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593c145ee2763d1853af510a073f42cc6be85c04_066701f1-6d06-4a18-b4d0-d112307d3343.webp?v=1713858179","width":2000},{"alt":null,"id":23789278167139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b229f6f44f8d0d2ba7e4a9ff6383bc7d29213e_2947863d-fa6e-4f7b-befe-c0a378a945fd.webp?v=1713858182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b229f6f44f8d0d2ba7e4a9ff6383bc7d29213e_2947863d-fa6e-4f7b-befe-c0a378a945fd.webp?v=1713858182","width":2000},{"alt":null,"id":23789278756963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accc78f67124bf133335dbb4a3f5c1cf105f5813_70d55145-134e-4ad7-9257-084c1cb0959c.webp?v=1713858184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/accc78f67124bf133335dbb4a3f5c1cf105f5813_70d55145-134e-4ad7-9257-084c1cb0959c.webp?v=1713858184","width":2000},{"alt":null,"id":23789279314019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b565b3e3b423c7c40e4c1fc28aefc6241d001d_9ae17f32-0002-4066-b826-84f36f9e7892.webp?v=1713858187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b565b3e3b423c7c40e4c1fc28aefc6241d001d_9ae17f32-0002-4066-b826-84f36f9e7892.webp?v=1713858187","width":2000},{"alt":null,"id":23789279969379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4523f13147ee8592e9cda3878a102de2721f78a_1a98d7a9-d252-4e48-956e-48c8254ba46b.webp?v=1713858189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4523f13147ee8592e9cda3878a102de2721f78a_1a98d7a9-d252-4e48-956e-48c8254ba46b.webp?v=1713858189","width":2000},{"alt":null,"id":23789280428131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1478a0c40be07735177add2a6c242a886f850243_84f391a8-d2b3-4924-be60-8f767f1cebc1.webp?v=1713858192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1478a0c40be07735177add2a6c242a886f850243_84f391a8-d2b3-4924-be60-8f767f1cebc1.webp?v=1713858192","width":2000},{"alt":null,"id":23789281280099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb87086ba658e3e12683a698f79253fe51258d6_ad681a05-65e2-4c3b-8954-fcfbb23ba5ee.webp?v=1713858194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edb87086ba658e3e12683a698f79253fe51258d6_ad681a05-65e2-4c3b-8954-fcfbb23ba5ee.webp?v=1713858194","width":2000},{"alt":null,"id":23789281869923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64e5c00b2a0264c89442b9d4621c55d46c487e86_13a109bd-44c1-4a05-a846-315e2a6644a6.webp?v=1713858197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64e5c00b2a0264c89442b9d4621c55d46c487e86_13a109bd-44c1-4a05-a846-315e2a6644a6.webp?v=1713858197","width":2000},{"alt":null,"id":23789282656355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199","width":2000},{"alt":null,"id":23789283180643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019abb2fd63337de655fc81134d94de6ad13cb42_dbe08dff-a4c1-48d7-a54f-1050cf15a556.webp?v=1713858202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019abb2fd63337de655fc81134d94de6ad13cb42_dbe08dff-a4c1-48d7-a54f-1050cf15a556.webp?v=1713858202","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41793505296483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31387043954787,"product_id":7369196437603,"position":10,"created_at":"2024-04-23T15:43:19+08:00","updated_at":"2024-04-23T15:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199","variant_ids":[41793505296483]},"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-PL60","featured_media":{"alt":null,"id":23789282656355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793505591395,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31387039662179,"product_id":7369196437603,"position":3,"created_at":"2024-04-23T15:43:02+08:00","updated_at":"2024-04-23T15:43:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b229f6f44f8d0d2ba7e4a9ff6383bc7d29213e_2947863d-fa6e-4f7b-befe-c0a378a945fd.webp?v=1713858182","variant_ids":[41793505591395]},"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-PL60","featured_media":{"alt":null,"id":23789278167139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b229f6f44f8d0d2ba7e4a9ff6383bc7d29213e_2947863d-fa6e-4f7b-befe-c0a378a945fd.webp?v=1713858182"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41793505296483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31387043954787,"product_id":7369196437603,"position":10,"created_at":"2024-04-23T15:43:19+08:00","updated_at":"2024-04-23T15:43:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199","variant_ids":[41793505296483]},"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-PL60","featured_media":{"alt":null,"id":23789282656355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b091c233397e638f12ee3d5206abe2c1de2a81_dde5790a-9d2a-44f7-b11f-4f91716b7968.webp?v=1713858199"}},"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: "停產"
}