$product = {"id":7414080405603,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 毛毛","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sr07","description":null,"published_at":"2024-06-11T17:48:48+08:00","created_at":"2024-05-05T14:08:40+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":41903951773795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484629975139,"product_id":7414080405603,"position":5,"created_at":"2024-05-05T14:08:52+08:00","updated_at":"2024-05-05T14:08:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332","variant_ids":[41903951773795]},"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-SR07","featured_media":{"alt":null,"id":23889925046371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903952134243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632924259,"product_id":7414080405603,"position":7,"created_at":"2024-05-05T14:08:57+08:00","updated_at":"2024-05-05T14:08:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62781aefd8f6a743fa8b2294c558fe596bf5a3cf_4cc72783-9754-48e6-b6b9-bb0bedbd52bd.webp?v=1714889337","variant_ids":[41903952134243]},"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-SR07","featured_media":{"alt":null,"id":23889928159331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62781aefd8f6a743fa8b2294c558fe596bf5a3cf_4cc72783-9754-48e6-b6b9-bb0bedbd52bd.webp?v=1714889337"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b426a980f4dbca52c9db38a675de5c3178baefc_081ce5f7-3448-40a0-b871-e68bbb3a1f6e.webp?v=1714889323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ece334010b68e29756bafcce5dc8fb498bde9ad_04200563-d682-49c7-b225-57ff96eee7b7.webp?v=1714889325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6829f1bd899e90c5293402fda3805142c0182e0_fe585f17-69ed-4354-8a84-78c5a3b08a5f.webp?v=1714889327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562615c1a4c253eea7de96628f26e01717b34c8a_ce69b835-5237-470b-956d-14f900aa8fc6.webp?v=1714889329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08307e25a20593c1fd6cfe336c940fee4a238d0_8cb92136-7180-4b03-a3ad-7d5cf37f567f.webp?v=1714889334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62781aefd8f6a743fa8b2294c558fe596bf5a3cf_4cc72783-9754-48e6-b6b9-bb0bedbd52bd.webp?v=1714889337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356159798489bef8e6d87f8b6071d19daf028c73_1f6f2975-b787-42fa-9e0a-e45f430ac0fb.webp?v=1714889339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83840390c4569b07617d14521c2f532931c9e35b_2b3f01d1-afbc-480c-90ab-1f15032eddac.webp?v=1714889342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de38762e0555dee17f032f3062ab9c012b75a87f_d7465e7a-ae2a-47c0-9880-9b9b740d7cb4.webp?v=1714889345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4503fab0c447093760cdeeec7314e54ce632696c_7fcc8062-fca1-4ff4-9824-a915e0b4e2e9.webp?v=1714889347"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b426a980f4dbca52c9db38a675de5c3178baefc_081ce5f7-3448-40a0-b871-e68bbb3a1f6e.webp?v=1714889323","options":["color"],"media":[{"alt":null,"id":23889919901795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b426a980f4dbca52c9db38a675de5c3178baefc_081ce5f7-3448-40a0-b871-e68bbb3a1f6e.webp?v=1714889323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b426a980f4dbca52c9db38a675de5c3178baefc_081ce5f7-3448-40a0-b871-e68bbb3a1f6e.webp?v=1714889323","width":2000},{"alt":null,"id":23889921048675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ece334010b68e29756bafcce5dc8fb498bde9ad_04200563-d682-49c7-b225-57ff96eee7b7.webp?v=1714889325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ece334010b68e29756bafcce5dc8fb498bde9ad_04200563-d682-49c7-b225-57ff96eee7b7.webp?v=1714889325","width":2000},{"alt":null,"id":23889922490467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6829f1bd899e90c5293402fda3805142c0182e0_fe585f17-69ed-4354-8a84-78c5a3b08a5f.webp?v=1714889327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6829f1bd899e90c5293402fda3805142c0182e0_fe585f17-69ed-4354-8a84-78c5a3b08a5f.webp?v=1714889327","width":2000},{"alt":null,"id":23889923539043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562615c1a4c253eea7de96628f26e01717b34c8a_ce69b835-5237-470b-956d-14f900aa8fc6.webp?v=1714889329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562615c1a4c253eea7de96628f26e01717b34c8a_ce69b835-5237-470b-956d-14f900aa8fc6.webp?v=1714889329","width":2000},{"alt":null,"id":23889925046371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332","width":2000},{"alt":null,"id":23889926520931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08307e25a20593c1fd6cfe336c940fee4a238d0_8cb92136-7180-4b03-a3ad-7d5cf37f567f.webp?v=1714889334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08307e25a20593c1fd6cfe336c940fee4a238d0_8cb92136-7180-4b03-a3ad-7d5cf37f567f.webp?v=1714889334","width":2000},{"alt":null,"id":23889928159331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62781aefd8f6a743fa8b2294c558fe596bf5a3cf_4cc72783-9754-48e6-b6b9-bb0bedbd52bd.webp?v=1714889337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62781aefd8f6a743fa8b2294c558fe596bf5a3cf_4cc72783-9754-48e6-b6b9-bb0bedbd52bd.webp?v=1714889337","width":2000},{"alt":null,"id":23889929568355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356159798489bef8e6d87f8b6071d19daf028c73_1f6f2975-b787-42fa-9e0a-e45f430ac0fb.webp?v=1714889339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356159798489bef8e6d87f8b6071d19daf028c73_1f6f2975-b787-42fa-9e0a-e45f430ac0fb.webp?v=1714889339","width":2000},{"alt":null,"id":23889933467747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83840390c4569b07617d14521c2f532931c9e35b_2b3f01d1-afbc-480c-90ab-1f15032eddac.webp?v=1714889342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83840390c4569b07617d14521c2f532931c9e35b_2b3f01d1-afbc-480c-90ab-1f15032eddac.webp?v=1714889342","width":2000},{"alt":null,"id":23889934876771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de38762e0555dee17f032f3062ab9c012b75a87f_d7465e7a-ae2a-47c0-9880-9b9b740d7cb4.webp?v=1714889345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de38762e0555dee17f032f3062ab9c012b75a87f_d7465e7a-ae2a-47c0-9880-9b9b740d7cb4.webp?v=1714889345","width":2000},{"alt":null,"id":23889936351331,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4503fab0c447093760cdeeec7314e54ce632696c_7fcc8062-fca1-4ff4-9824-a915e0b4e2e9.webp?v=1714889347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4503fab0c447093760cdeeec7314e54ce632696c_7fcc8062-fca1-4ff4-9824-a915e0b4e2e9.webp?v=1714889347","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41903951773795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484629975139,"product_id":7414080405603,"position":5,"created_at":"2024-05-05T14:08:52+08:00","updated_at":"2024-05-05T14:08:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332","variant_ids":[41903951773795]},"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-SR07","featured_media":{"alt":null,"id":23889925046371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903952134243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484632924259,"product_id":7414080405603,"position":7,"created_at":"2024-05-05T14:08:57+08:00","updated_at":"2024-05-05T14:08:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62781aefd8f6a743fa8b2294c558fe596bf5a3cf_4cc72783-9754-48e6-b6b9-bb0bedbd52bd.webp?v=1714889337","variant_ids":[41903952134243]},"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-SR07","featured_media":{"alt":null,"id":23889928159331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62781aefd8f6a743fa8b2294c558fe596bf5a3cf_4cc72783-9754-48e6-b6b9-bb0bedbd52bd.webp?v=1714889337"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903951773795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484629975139,"product_id":7414080405603,"position":5,"created_at":"2024-05-05T14:08:52+08:00","updated_at":"2024-05-05T14:08:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332","variant_ids":[41903951773795]},"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-SR07","featured_media":{"alt":null,"id":23889925046371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9daac13369a41697ad55cda804bead4488b371c_7c996008-ee2f-4a73-b4cc-b1422d956016.webp?v=1714889332"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}