$product = {"id":7414063464547,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Bedtime Bear","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb04","description":null,"published_at":"2024-06-11T17:48:39+08:00","created_at":"2024-05-05T14:07:41+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":41903838986339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484601696355,"product_id":7414063464547,"position":11,"created_at":"2024-05-05T14:08:07+08:00","updated_at":"2024-05-05T14:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287","variant_ids":[41903838986339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Bedtime 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-YB04","featured_media":{"alt":null,"id":23889896833123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903839412323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484590948451,"product_id":7414063464547,"position":4,"created_at":"2024-05-05T14:07:50+08:00","updated_at":"2024-05-05T14:07:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5451ef23c73c64d2bb6bf8ccb9e8c35998a111bd_6e12c7a5-0dec-4589-a0ac-b8c2a795f8aa.webp?v=1714889270","variant_ids":[41903839412323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Bedtime 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-YB04","featured_media":{"alt":null,"id":23889886117987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5451ef23c73c64d2bb6bf8ccb9e8c35998a111bd_6e12c7a5-0dec-4589-a0ac-b8c2a795f8aa.webp?v=1714889270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12deffb6ff505c0f385095424bdc1c024ced6fa3_72806e70-1600-4c73-a5ca-67b158aa3fd4.webp?v=1714889264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/109874d8b9118bdc747b9a955f791c45b512ffd4_c9e8bea7-ad93-47de-b73b-c8994e5775fb.webp?v=1714889266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a98e180e8bcec4da36a3b0110d487f89fdc9223_9c25bd15-ca81-4337-a370-da0de15347c0.webp?v=1714889268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5451ef23c73c64d2bb6bf8ccb9e8c35998a111bd_6e12c7a5-0dec-4589-a0ac-b8c2a795f8aa.webp?v=1714889270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5a40bb7ebe15aa7b453b8ab3ebac1ce446ac0c_e2c2e6a1-a71b-446d-8c38-669e14ee0d8a.webp?v=1714889273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb56a1c72aed77459f3e9dc6f8a6d683566b2ba4_5f23cdfa-423b-46ec-b9e0-9260041141b3.webp?v=1714889275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61f96b8421a34c68ef7909ae5e304bdfc0cf8f4_a2cc5cee-b9b6-48f0-9557-7a24a3b28b86.webp?v=1714889277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a407f622836a650d3c1050b72aa703b66daa5c2_93415ac7-5787-4c91-9459-26113c3fbda6.webp?v=1714889280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8721574121412872a25efe10fa96e377843f0b7_d441a095-a9c7-47bd-b8a4-e75843bfab3f.webp?v=1714889282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bdb66a87e6c5591639173d441301bc457c418da_9d5e7af9-5ace-4cf6-bb8d-b7c625a1eaba.webp?v=1714889284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12deffb6ff505c0f385095424bdc1c024ced6fa3_72806e70-1600-4c73-a5ca-67b158aa3fd4.webp?v=1714889264","options":["color"],"media":[{"alt":null,"id":23889881792611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12deffb6ff505c0f385095424bdc1c024ced6fa3_72806e70-1600-4c73-a5ca-67b158aa3fd4.webp?v=1714889264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12deffb6ff505c0f385095424bdc1c024ced6fa3_72806e70-1600-4c73-a5ca-67b158aa3fd4.webp?v=1714889264","width":2000},{"alt":null,"id":23889883201635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/109874d8b9118bdc747b9a955f791c45b512ffd4_c9e8bea7-ad93-47de-b73b-c8994e5775fb.webp?v=1714889266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/109874d8b9118bdc747b9a955f791c45b512ffd4_c9e8bea7-ad93-47de-b73b-c8994e5775fb.webp?v=1714889266","width":2000},{"alt":null,"id":23889884741731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a98e180e8bcec4da36a3b0110d487f89fdc9223_9c25bd15-ca81-4337-a370-da0de15347c0.webp?v=1714889268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a98e180e8bcec4da36a3b0110d487f89fdc9223_9c25bd15-ca81-4337-a370-da0de15347c0.webp?v=1714889268","width":2000},{"alt":null,"id":23889886117987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5451ef23c73c64d2bb6bf8ccb9e8c35998a111bd_6e12c7a5-0dec-4589-a0ac-b8c2a795f8aa.webp?v=1714889270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5451ef23c73c64d2bb6bf8ccb9e8c35998a111bd_6e12c7a5-0dec-4589-a0ac-b8c2a795f8aa.webp?v=1714889270","width":2000},{"alt":null,"id":23889887461475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5a40bb7ebe15aa7b453b8ab3ebac1ce446ac0c_e2c2e6a1-a71b-446d-8c38-669e14ee0d8a.webp?v=1714889273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5a40bb7ebe15aa7b453b8ab3ebac1ce446ac0c_e2c2e6a1-a71b-446d-8c38-669e14ee0d8a.webp?v=1714889273","width":2000},{"alt":null,"id":23889889362019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb56a1c72aed77459f3e9dc6f8a6d683566b2ba4_5f23cdfa-423b-46ec-b9e0-9260041141b3.webp?v=1714889275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb56a1c72aed77459f3e9dc6f8a6d683566b2ba4_5f23cdfa-423b-46ec-b9e0-9260041141b3.webp?v=1714889275","width":2000},{"alt":null,"id":23889890902115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61f96b8421a34c68ef7909ae5e304bdfc0cf8f4_a2cc5cee-b9b6-48f0-9557-7a24a3b28b86.webp?v=1714889277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61f96b8421a34c68ef7909ae5e304bdfc0cf8f4_a2cc5cee-b9b6-48f0-9557-7a24a3b28b86.webp?v=1714889277","width":2000},{"alt":null,"id":23889892311139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a407f622836a650d3c1050b72aa703b66daa5c2_93415ac7-5787-4c91-9459-26113c3fbda6.webp?v=1714889280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a407f622836a650d3c1050b72aa703b66daa5c2_93415ac7-5787-4c91-9459-26113c3fbda6.webp?v=1714889280","width":2000},{"alt":null,"id":23889893949539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8721574121412872a25efe10fa96e377843f0b7_d441a095-a9c7-47bd-b8a4-e75843bfab3f.webp?v=1714889282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8721574121412872a25efe10fa96e377843f0b7_d441a095-a9c7-47bd-b8a4-e75843bfab3f.webp?v=1714889282","width":2000},{"alt":null,"id":23889895489635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bdb66a87e6c5591639173d441301bc457c418da_9d5e7af9-5ace-4cf6-bb8d-b7c625a1eaba.webp?v=1714889284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bdb66a87e6c5591639173d441301bc457c418da_9d5e7af9-5ace-4cf6-bb8d-b7c625a1eaba.webp?v=1714889284","width":2000},{"alt":null,"id":23889896833123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903838986339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484601696355,"product_id":7414063464547,"position":11,"created_at":"2024-05-05T14:08:07+08:00","updated_at":"2024-05-05T14:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287","variant_ids":[41903838986339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Bedtime 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-YB04","featured_media":{"alt":null,"id":23889896833123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903839412323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484590948451,"product_id":7414063464547,"position":4,"created_at":"2024-05-05T14:07:50+08:00","updated_at":"2024-05-05T14:07:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5451ef23c73c64d2bb6bf8ccb9e8c35998a111bd_6e12c7a5-0dec-4589-a0ac-b8c2a795f8aa.webp?v=1714889270","variant_ids":[41903839412323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Bedtime 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-YB04","featured_media":{"alt":null,"id":23889886117987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5451ef23c73c64d2bb6bf8ccb9e8c35998a111bd_6e12c7a5-0dec-4589-a0ac-b8c2a795f8aa.webp?v=1714889270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903838986339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484601696355,"product_id":7414063464547,"position":11,"created_at":"2024-05-05T14:08:07+08:00","updated_at":"2024-05-05T14:08:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287","variant_ids":[41903838986339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Bedtime 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-YB04","featured_media":{"alt":null,"id":23889896833123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7e658667e1a4894b4d1c5c3e3f9ff780eae8bd6_63d6a11d-c705-4c05-ae61-8224e2b89a6d.webp?v=1714889287"}},"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: "停產"
}