$product = {"id":7413991964771,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 一天又平安的過去了","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sr01","description":null,"published_at":"2024-06-11T17:47:06+08:00","created_at":"2024-05-05T13:57:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-the-power-puff-girls","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":41903086731363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484412592227,"product_id":7413991964771,"position":9,"created_at":"2024-05-05T13:57:22+08:00","updated_at":"2024-05-05T13:57:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642","variant_ids":[41903086731363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 一天又平安的過去了 - 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-SR01","featured_media":{"alt":null,"id":23889706614883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903087026275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484408692835,"product_id":7413991964771,"position":1,"created_at":"2024-05-05T13:57:03+08:00","updated_at":"2024-05-05T13:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623","variant_ids":[41903087026275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 一天又平安的過去了 - 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-SR01","featured_media":{"alt":null,"id":23889702715491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea220a8cfad6ff57ed6163b523a1fbbc46e99d9_12a66a47-3890-4fa8-b50e-c24db687db74.webp?v=1714888625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7fee49c5a12f1d2900a8f897f29d104d7c371d_ca9af27c-3573-4df7-a4bc-840a14a5ab5b.webp?v=1714888628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fabed4bd56f8740ed6fb9a32c1c106b75e13336_7580be35-43e7-4cb3-a1da-205e4c6f3238.webp?v=1714888630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d4e9ad3d8a8eb961a8dd64d663d3a110b0bbdc_08210b9e-c5fc-41e0-a5fd-586a144603f6.webp?v=1714888632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd520b7d58a409c2404a70eeced74c799a1aba6_2ec296c5-e0f9-413c-bf30-a1bb6b09ecf4.webp?v=1714888635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbf753fb4f6bae43269831a2c08ccccce39efc15_35e14f36-6e32-41d9-8514-a281e28ecdc2.webp?v=1714888637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d231afcf525f3e70b83f3db0d5f7dad29c2e90_8c756607-1c61-4eb4-ae18-5ccb18fe0fc4.webp?v=1714888639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4969549f08185ce9db2d4b0651b872968bd2094a_0c6d009e-053c-49da-aa3d-f691b3653483.webp?v=1714888644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2dd36ef3d9882ce4fab5133c39e7f89999356a9_85261b13-7f27-45f4-b65a-495b6bcafce2.webp?v=1714888647"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623","options":["color"],"media":[{"alt":null,"id":23889702715491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623","width":2000},{"alt":null,"id":23889703108707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea220a8cfad6ff57ed6163b523a1fbbc46e99d9_12a66a47-3890-4fa8-b50e-c24db687db74.webp?v=1714888625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea220a8cfad6ff57ed6163b523a1fbbc46e99d9_12a66a47-3890-4fa8-b50e-c24db687db74.webp?v=1714888625","width":2000},{"alt":null,"id":23889703829603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7fee49c5a12f1d2900a8f897f29d104d7c371d_ca9af27c-3573-4df7-a4bc-840a14a5ab5b.webp?v=1714888628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7fee49c5a12f1d2900a8f897f29d104d7c371d_ca9af27c-3573-4df7-a4bc-840a14a5ab5b.webp?v=1714888628","width":2000},{"alt":null,"id":23889704255587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fabed4bd56f8740ed6fb9a32c1c106b75e13336_7580be35-43e7-4cb3-a1da-205e4c6f3238.webp?v=1714888630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fabed4bd56f8740ed6fb9a32c1c106b75e13336_7580be35-43e7-4cb3-a1da-205e4c6f3238.webp?v=1714888630","width":2000},{"alt":null,"id":23889704812643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d4e9ad3d8a8eb961a8dd64d663d3a110b0bbdc_08210b9e-c5fc-41e0-a5fd-586a144603f6.webp?v=1714888632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d4e9ad3d8a8eb961a8dd64d663d3a110b0bbdc_08210b9e-c5fc-41e0-a5fd-586a144603f6.webp?v=1714888632","width":2000},{"alt":null,"id":23889705271395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd520b7d58a409c2404a70eeced74c799a1aba6_2ec296c5-e0f9-413c-bf30-a1bb6b09ecf4.webp?v=1714888635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd520b7d58a409c2404a70eeced74c799a1aba6_2ec296c5-e0f9-413c-bf30-a1bb6b09ecf4.webp?v=1714888635","width":2000},{"alt":null,"id":23889705762915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbf753fb4f6bae43269831a2c08ccccce39efc15_35e14f36-6e32-41d9-8514-a281e28ecdc2.webp?v=1714888637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbf753fb4f6bae43269831a2c08ccccce39efc15_35e14f36-6e32-41d9-8514-a281e28ecdc2.webp?v=1714888637","width":2000},{"alt":null,"id":23889706156131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d231afcf525f3e70b83f3db0d5f7dad29c2e90_8c756607-1c61-4eb4-ae18-5ccb18fe0fc4.webp?v=1714888639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d231afcf525f3e70b83f3db0d5f7dad29c2e90_8c756607-1c61-4eb4-ae18-5ccb18fe0fc4.webp?v=1714888639","width":2000},{"alt":null,"id":23889706614883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642","width":2000},{"alt":null,"id":23889707073635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4969549f08185ce9db2d4b0651b872968bd2094a_0c6d009e-053c-49da-aa3d-f691b3653483.webp?v=1714888644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4969549f08185ce9db2d4b0651b872968bd2094a_0c6d009e-053c-49da-aa3d-f691b3653483.webp?v=1714888644","width":2000},{"alt":null,"id":23889707466851,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2dd36ef3d9882ce4fab5133c39e7f89999356a9_85261b13-7f27-45f4-b65a-495b6bcafce2.webp?v=1714888647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2dd36ef3d9882ce4fab5133c39e7f89999356a9_85261b13-7f27-45f4-b65a-495b6bcafce2.webp?v=1714888647","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903086731363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484412592227,"product_id":7413991964771,"position":9,"created_at":"2024-05-05T13:57:22+08:00","updated_at":"2024-05-05T13:57:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642","variant_ids":[41903086731363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 一天又平安的過去了 - 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-SR01","featured_media":{"alt":null,"id":23889706614883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903087026275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484408692835,"product_id":7413991964771,"position":1,"created_at":"2024-05-05T13:57:03+08:00","updated_at":"2024-05-05T13:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623","variant_ids":[41903087026275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 一天又平安的過去了 - 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-SR01","featured_media":{"alt":null,"id":23889702715491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9600dee5138fd1f5849ecceff51cd1a4b8b848_cd2a7f3b-9d1c-4882-b01c-151ed3000f95.webp?v=1714888623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903086731363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484412592227,"product_id":7413991964771,"position":9,"created_at":"2024-05-05T13:57:22+08:00","updated_at":"2024-05-05T13:57:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642","variant_ids":[41903086731363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 一天又平安的過去了 - 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-SR01","featured_media":{"alt":null,"id":23889706614883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a9dff02a1b3b7fe617c08d1e4b858c53dc7d6_3619f3de-c25a-46bf-8938-899c56a16286.webp?v=1714888642"}},"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: "停產"
}