$product = {"id":7413989671011,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Funshine Bear","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb06","description":null,"published_at":"2024-06-11T17:47:02+08:00","created_at":"2024-05-05T13:56:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41903062483043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484406595683,"product_id":7413989671011,"position":8,"created_at":"2024-05-05T13:56:53+08:00","updated_at":"2024-05-05T13:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613","variant_ids":[41903062483043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Funshine Bear - 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":"MPB0123224-YB06","featured_media":{"alt":null,"id":23889700585571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903062810723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484406169699,"product_id":7413989671011,"position":7,"created_at":"2024-05-05T13:56:51+08:00","updated_at":"2024-05-05T13:56:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb507e2ede37276c933ba41cc9a5627f30ae9a1_d3ebe330-61c9-4444-a83a-4244d800e669.webp?v=1714888611","variant_ids":[41903062810723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Funshine Bear - 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":"MPB01232J5-YB06","featured_media":{"alt":null,"id":23889699373155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb507e2ede37276c933ba41cc9a5627f30ae9a1_d3ebe330-61c9-4444-a83a-4244d800e669.webp?v=1714888611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0daf6ac952dfefcf46bf2888fc5e264af4cfe4f_1ddefe1f-e9c5-4ae8-a8f8-b1e5846dc69a.webp?v=1714888597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8591c4f78206964050193423c1e8c31a7dd74692_6f0e8d36-b18e-4542-800e-b41c222bd003.webp?v=1714888599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f97c452108e70f67cc453127c12d8ca4300a602_94949651-aa52-456a-bee2-294da329df23.webp?v=1714888602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6e614945ba5d21a2c6e5fc13f83cb47d53d12d_a7f6879c-96af-4181-a853-df4ac8b16b63.webp?v=1714888604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ada52dbe656265b9a649cfec77b72032a74b1ca_54c92398-6c67-4bc1-b445-f25b0a528d20.webp?v=1714888606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/828361e34e4e75eccfa34593b7a88e57e3bd9c83_d4dad584-2ed9-4f27-8b30-c80f0e876f00.webp?v=1714888609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb507e2ede37276c933ba41cc9a5627f30ae9a1_d3ebe330-61c9-4444-a83a-4244d800e669.webp?v=1714888611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93878db83fc55a0e5aa7d277b63f9ced000322c0_dc6ec1cc-238b-4126-bb41-31d743186616.webp?v=1714888616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43e61338b23ca9950029e63702995225ce665a4_09061394-fe6c-49f6-800f-baf60f88e482.webp?v=1714888618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceb6b90f3d199f55843709f312ec525b386235ac_7c638153-90d6-4f27-b341-380ca394400a.webp?v=1714888621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23e0162b500bf29de1ccc9066ca230e5d2b7bdd7_a1504340-949f-4567-8784-9a621f6d5115.webp?v=1714888623"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0daf6ac952dfefcf46bf2888fc5e264af4cfe4f_1ddefe1f-e9c5-4ae8-a8f8-b1e5846dc69a.webp?v=1714888597","options":["color"],"media":[{"alt":null,"id":23889696522339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0daf6ac952dfefcf46bf2888fc5e264af4cfe4f_1ddefe1f-e9c5-4ae8-a8f8-b1e5846dc69a.webp?v=1714888597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0daf6ac952dfefcf46bf2888fc5e264af4cfe4f_1ddefe1f-e9c5-4ae8-a8f8-b1e5846dc69a.webp?v=1714888597","width":2000},{"alt":null,"id":23889696981091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8591c4f78206964050193423c1e8c31a7dd74692_6f0e8d36-b18e-4542-800e-b41c222bd003.webp?v=1714888599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8591c4f78206964050193423c1e8c31a7dd74692_6f0e8d36-b18e-4542-800e-b41c222bd003.webp?v=1714888599","width":2000},{"alt":null,"id":23889697341539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f97c452108e70f67cc453127c12d8ca4300a602_94949651-aa52-456a-bee2-294da329df23.webp?v=1714888602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f97c452108e70f67cc453127c12d8ca4300a602_94949651-aa52-456a-bee2-294da329df23.webp?v=1714888602","width":2000},{"alt":null,"id":23889697865827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6e614945ba5d21a2c6e5fc13f83cb47d53d12d_a7f6879c-96af-4181-a853-df4ac8b16b63.webp?v=1714888604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6e614945ba5d21a2c6e5fc13f83cb47d53d12d_a7f6879c-96af-4181-a853-df4ac8b16b63.webp?v=1714888604","width":2000},{"alt":null,"id":23889698357347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ada52dbe656265b9a649cfec77b72032a74b1ca_54c92398-6c67-4bc1-b445-f25b0a528d20.webp?v=1714888606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ada52dbe656265b9a649cfec77b72032a74b1ca_54c92398-6c67-4bc1-b445-f25b0a528d20.webp?v=1714888606","width":2000},{"alt":null,"id":23889698848867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/828361e34e4e75eccfa34593b7a88e57e3bd9c83_d4dad584-2ed9-4f27-8b30-c80f0e876f00.webp?v=1714888609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/828361e34e4e75eccfa34593b7a88e57e3bd9c83_d4dad584-2ed9-4f27-8b30-c80f0e876f00.webp?v=1714888609","width":2000},{"alt":null,"id":23889699373155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb507e2ede37276c933ba41cc9a5627f30ae9a1_d3ebe330-61c9-4444-a83a-4244d800e669.webp?v=1714888611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb507e2ede37276c933ba41cc9a5627f30ae9a1_d3ebe330-61c9-4444-a83a-4244d800e669.webp?v=1714888611","width":2000},{"alt":null,"id":23889700585571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613","width":2000},{"alt":null,"id":23889701142627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93878db83fc55a0e5aa7d277b63f9ced000322c0_dc6ec1cc-238b-4126-bb41-31d743186616.webp?v=1714888616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93878db83fc55a0e5aa7d277b63f9ced000322c0_dc6ec1cc-238b-4126-bb41-31d743186616.webp?v=1714888616","width":2000},{"alt":null,"id":23889701699683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43e61338b23ca9950029e63702995225ce665a4_09061394-fe6c-49f6-800f-baf60f88e482.webp?v=1714888618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43e61338b23ca9950029e63702995225ce665a4_09061394-fe6c-49f6-800f-baf60f88e482.webp?v=1714888618","width":2000},{"alt":null,"id":23889702092899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceb6b90f3d199f55843709f312ec525b386235ac_7c638153-90d6-4f27-b341-380ca394400a.webp?v=1714888621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceb6b90f3d199f55843709f312ec525b386235ac_7c638153-90d6-4f27-b341-380ca394400a.webp?v=1714888621","width":2000},{"alt":null,"id":23889702682723,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23e0162b500bf29de1ccc9066ca230e5d2b7bdd7_a1504340-949f-4567-8784-9a621f6d5115.webp?v=1714888623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23e0162b500bf29de1ccc9066ca230e5d2b7bdd7_a1504340-949f-4567-8784-9a621f6d5115.webp?v=1714888623","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903062483043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484406595683,"product_id":7413989671011,"position":8,"created_at":"2024-05-05T13:56:53+08:00","updated_at":"2024-05-05T13:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613","variant_ids":[41903062483043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Funshine Bear - 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":"MPB0123224-YB06","featured_media":{"alt":null,"id":23889700585571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903062810723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484406169699,"product_id":7413989671011,"position":7,"created_at":"2024-05-05T13:56:51+08:00","updated_at":"2024-05-05T13:56:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb507e2ede37276c933ba41cc9a5627f30ae9a1_d3ebe330-61c9-4444-a83a-4244d800e669.webp?v=1714888611","variant_ids":[41903062810723]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Funshine Bear - 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":"MPB01232J5-YB06","featured_media":{"alt":null,"id":23889699373155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bb507e2ede37276c933ba41cc9a5627f30ae9a1_d3ebe330-61c9-4444-a83a-4244d800e669.webp?v=1714888611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903062483043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484406595683,"product_id":7413989671011,"position":8,"created_at":"2024-05-05T13:56:53+08:00","updated_at":"2024-05-05T13:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613","variant_ids":[41903062483043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Funshine Bear - 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":"MPB0123224-YB06","featured_media":{"alt":null,"id":23889700585571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd43400379fe3038203dc59a8f35d8bdaec1f4f_1f926be0-dda5-4dd4-94d3-050811f6a040.webp?v=1714888613"}},"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: "停產"
}