$product = {"id":7414212591715,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 愛心滿天","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb07","description":null,"published_at":"2024-06-11T17:49:55+08:00","created_at":"2024-05-05T14:16:15+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":41904913612899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484945563747,"product_id":7414212591715,"position":11,"created_at":"2024-05-05T14:16:43+08:00","updated_at":"2024-05-05T14:16:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803","variant_ids":[41904913612899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 愛心滿天 - 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-YB07","featured_media":{"alt":null,"id":23890257117283,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904914235491,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484935307363,"product_id":7414212591715,"position":6,"created_at":"2024-05-05T14:16:30+08:00","updated_at":"2024-05-05T14:16:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63dbf7a8e8b47633d98e431d38128938c78b888_faf63169-afb9-40d4-a334-b4817edd5e1c.webp?v=1714889790","variant_ids":[41904914235491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 愛心滿天 - 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-YB07","featured_media":{"alt":null,"id":23890247090275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63dbf7a8e8b47633d98e431d38128938c78b888_faf63169-afb9-40d4-a334-b4817edd5e1c.webp?v=1714889790"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6079961d866239545c494b366d5e9580f6509a_bc488b57-bd10-4353-8f3f-edf6a4cae4ce.webp?v=1714889778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f2dace7849c0a439c2dcf77c4f9efbabb4bbde9_c957932a-b967-408d-bdad-b442313954e9.webp?v=1714889780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2306e622704fc6831d8337c4aab38b527e9db37b_17932f08-af6a-4093-a683-6ca4c08bdbe8.webp?v=1714889783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4df7400786d1dd899e4b1b3b3614a96fbd7b1b_0c1ac051-283e-4b9b-a9e9-2212f0308c88.webp?v=1714889785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b8f895bf9d936ef202a84a0116792a3bd94eeb_6ff71e09-bb36-4934-8a2e-d8644b3fe14f.webp?v=1714889788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63dbf7a8e8b47633d98e431d38128938c78b888_faf63169-afb9-40d4-a334-b4817edd5e1c.webp?v=1714889790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17f370725afb7a107ec1e70c75f12202035017_06bfe62e-7d51-4be5-8c06-263377f9958c.webp?v=1714889793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac940064616a5b752c4e8acb58aa47ee2898a1aa_dd57ba95-b8a5-425f-8c23-f1519bac7651.webp?v=1714889796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54265d0c5938c91e79e6a226739921ff95283810_ed010869-2b28-4471-983c-0933c04a8d7d.webp?v=1714889799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea6da7c9aa258d756bf4e616c8e0bd35cb79ef59_92f56bfc-387c-4ca2-a73c-13c9bcebc092.webp?v=1714889801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6079961d866239545c494b366d5e9580f6509a_bc488b57-bd10-4353-8f3f-edf6a4cae4ce.webp?v=1714889778","options":["color"],"media":[{"alt":null,"id":23890235097187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6079961d866239545c494b366d5e9580f6509a_bc488b57-bd10-4353-8f3f-edf6a4cae4ce.webp?v=1714889778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6079961d866239545c494b366d5e9580f6509a_bc488b57-bd10-4353-8f3f-edf6a4cae4ce.webp?v=1714889778","width":2000},{"alt":null,"id":23890237489251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f2dace7849c0a439c2dcf77c4f9efbabb4bbde9_c957932a-b967-408d-bdad-b442313954e9.webp?v=1714889780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f2dace7849c0a439c2dcf77c4f9efbabb4bbde9_c957932a-b967-408d-bdad-b442313954e9.webp?v=1714889780","width":2000},{"alt":null,"id":23890240045155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2306e622704fc6831d8337c4aab38b527e9db37b_17932f08-af6a-4093-a683-6ca4c08bdbe8.webp?v=1714889783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2306e622704fc6831d8337c4aab38b527e9db37b_17932f08-af6a-4093-a683-6ca4c08bdbe8.webp?v=1714889783","width":2000},{"alt":null,"id":23890242240611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4df7400786d1dd899e4b1b3b3614a96fbd7b1b_0c1ac051-283e-4b9b-a9e9-2212f0308c88.webp?v=1714889785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4df7400786d1dd899e4b1b3b3614a96fbd7b1b_0c1ac051-283e-4b9b-a9e9-2212f0308c88.webp?v=1714889785","width":2000},{"alt":null,"id":23890244468835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b8f895bf9d936ef202a84a0116792a3bd94eeb_6ff71e09-bb36-4934-8a2e-d8644b3fe14f.webp?v=1714889788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b8f895bf9d936ef202a84a0116792a3bd94eeb_6ff71e09-bb36-4934-8a2e-d8644b3fe14f.webp?v=1714889788","width":2000},{"alt":null,"id":23890247090275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63dbf7a8e8b47633d98e431d38128938c78b888_faf63169-afb9-40d4-a334-b4817edd5e1c.webp?v=1714889790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63dbf7a8e8b47633d98e431d38128938c78b888_faf63169-afb9-40d4-a334-b4817edd5e1c.webp?v=1714889790","width":2000},{"alt":null,"id":23890249613411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17f370725afb7a107ec1e70c75f12202035017_06bfe62e-7d51-4be5-8c06-263377f9958c.webp?v=1714889793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17f370725afb7a107ec1e70c75f12202035017_06bfe62e-7d51-4be5-8c06-263377f9958c.webp?v=1714889793","width":2000},{"alt":null,"id":23890252496995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac940064616a5b752c4e8acb58aa47ee2898a1aa_dd57ba95-b8a5-425f-8c23-f1519bac7651.webp?v=1714889796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac940064616a5b752c4e8acb58aa47ee2898a1aa_dd57ba95-b8a5-425f-8c23-f1519bac7651.webp?v=1714889796","width":2000},{"alt":null,"id":23890254626915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54265d0c5938c91e79e6a226739921ff95283810_ed010869-2b28-4471-983c-0933c04a8d7d.webp?v=1714889799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54265d0c5938c91e79e6a226739921ff95283810_ed010869-2b28-4471-983c-0933c04a8d7d.webp?v=1714889799","width":2000},{"alt":null,"id":23890255970403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea6da7c9aa258d756bf4e616c8e0bd35cb79ef59_92f56bfc-387c-4ca2-a73c-13c9bcebc092.webp?v=1714889801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea6da7c9aa258d756bf4e616c8e0bd35cb79ef59_92f56bfc-387c-4ca2-a73c-13c9bcebc092.webp?v=1714889801","width":2000},{"alt":null,"id":23890257117283,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904913612899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484945563747,"product_id":7414212591715,"position":11,"created_at":"2024-05-05T14:16:43+08:00","updated_at":"2024-05-05T14:16:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803","variant_ids":[41904913612899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 愛心滿天 - 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-YB07","featured_media":{"alt":null,"id":23890257117283,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904914235491,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484935307363,"product_id":7414212591715,"position":6,"created_at":"2024-05-05T14:16:30+08:00","updated_at":"2024-05-05T14:16:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63dbf7a8e8b47633d98e431d38128938c78b888_faf63169-afb9-40d4-a334-b4817edd5e1c.webp?v=1714889790","variant_ids":[41904914235491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 愛心滿天 - 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-YB07","featured_media":{"alt":null,"id":23890247090275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63dbf7a8e8b47633d98e431d38128938c78b888_faf63169-afb9-40d4-a334-b4817edd5e1c.webp?v=1714889790"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904913612899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484945563747,"product_id":7414212591715,"position":11,"created_at":"2024-05-05T14:16:43+08:00","updated_at":"2024-05-05T14:16:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803","variant_ids":[41904913612899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 愛心滿天 - 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-YB07","featured_media":{"alt":null,"id":23890257117283,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b93b8d8f090d13adfe7efcc9c0986f445481026_c3a08833-bed9-4183-bece-e91554ca78bf.webp?v=1714889803"}},"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: "停產"
}