$product = {"id":7408480583779,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 美食派對","handle":"iphone-12-pro-max-mod-nx-printable-yb11","description":null,"published_at":"2024-06-11T16:38:25+08:00","created_at":"2024-05-03T15:35:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41885962600547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472389161059,"product_id":7408480583779,"position":10,"created_at":"2024-05-03T15:35:25+08:00","updated_at":"2024-05-03T15:35:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725","variant_ids":[41885962600547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 美食派對 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB11","featured_media":{"alt":null,"id":23877306089571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88d048ef6484844d16695f9231103ec52c48a554_d5b6e4f9-6ede-4934-8646-c30a5bbe0fd7.webp?v=1714721703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5ed267ea210b389608cceeeab7083ccc26a7e5_8a51db26-9711-412e-9087-aea9079e8ecb.webp?v=1714721706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6272e5606ac1d139bd720b32e187d8e90cf090bc_bbd7d0af-31cb-44ec-96e4-fa8ba0f530e2.webp?v=1714721708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77b457821387a3239705e36fba168e5a418dfcfd_ca8478de-b33f-4dd5-bc6a-a6f12eef7564.webp?v=1714721711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb72b8847f34323bacf2d50d8eda610c4fb4da03_322fac83-3131-4d6b-a4d6-ed5c6e96c7ad.webp?v=1714721713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ebc91717f9fab6b0e91a756677ca382c20e790_61edb6db-2488-42bb-9532-69645bf8fc83.webp?v=1714721715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eeb970ca7bf5d737f67711677bf9dfa7c9fb11c_511a1257-4ce6-4010-be2c-7a1a5673f11c.webp?v=1714721718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e042d35f5447781587fec25b79dd475ecfe2d713_93a84d96-6a9b-4502-939f-2ecc4f35ecea.webp?v=1714721720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65426744b9c66f56b8f01df342165d599551076_d6079ea2-6b63-4765-a9ed-0c84999d08ee.webp?v=1714721722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88d048ef6484844d16695f9231103ec52c48a554_d5b6e4f9-6ede-4934-8646-c30a5bbe0fd7.webp?v=1714721703","options":["color"],"media":[{"alt":null,"id":23877302026339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88d048ef6484844d16695f9231103ec52c48a554_d5b6e4f9-6ede-4934-8646-c30a5bbe0fd7.webp?v=1714721703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88d048ef6484844d16695f9231103ec52c48a554_d5b6e4f9-6ede-4934-8646-c30a5bbe0fd7.webp?v=1714721703","width":2000},{"alt":null,"id":23877302419555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5ed267ea210b389608cceeeab7083ccc26a7e5_8a51db26-9711-412e-9087-aea9079e8ecb.webp?v=1714721706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5ed267ea210b389608cceeeab7083ccc26a7e5_8a51db26-9711-412e-9087-aea9079e8ecb.webp?v=1714721706","width":2000},{"alt":null,"id":23877302943843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6272e5606ac1d139bd720b32e187d8e90cf090bc_bbd7d0af-31cb-44ec-96e4-fa8ba0f530e2.webp?v=1714721708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6272e5606ac1d139bd720b32e187d8e90cf090bc_bbd7d0af-31cb-44ec-96e4-fa8ba0f530e2.webp?v=1714721708","width":2000},{"alt":null,"id":23877303435363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77b457821387a3239705e36fba168e5a418dfcfd_ca8478de-b33f-4dd5-bc6a-a6f12eef7564.webp?v=1714721711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77b457821387a3239705e36fba168e5a418dfcfd_ca8478de-b33f-4dd5-bc6a-a6f12eef7564.webp?v=1714721711","width":2000},{"alt":null,"id":23877303894115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb72b8847f34323bacf2d50d8eda610c4fb4da03_322fac83-3131-4d6b-a4d6-ed5c6e96c7ad.webp?v=1714721713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb72b8847f34323bacf2d50d8eda610c4fb4da03_322fac83-3131-4d6b-a4d6-ed5c6e96c7ad.webp?v=1714721713","width":2000},{"alt":null,"id":23877304418403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ebc91717f9fab6b0e91a756677ca382c20e790_61edb6db-2488-42bb-9532-69645bf8fc83.webp?v=1714721715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ebc91717f9fab6b0e91a756677ca382c20e790_61edb6db-2488-42bb-9532-69645bf8fc83.webp?v=1714721715","width":2000},{"alt":null,"id":23877304844387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eeb970ca7bf5d737f67711677bf9dfa7c9fb11c_511a1257-4ce6-4010-be2c-7a1a5673f11c.webp?v=1714721718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eeb970ca7bf5d737f67711677bf9dfa7c9fb11c_511a1257-4ce6-4010-be2c-7a1a5673f11c.webp?v=1714721718","width":2000},{"alt":null,"id":23877305270371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e042d35f5447781587fec25b79dd475ecfe2d713_93a84d96-6a9b-4502-939f-2ecc4f35ecea.webp?v=1714721720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e042d35f5447781587fec25b79dd475ecfe2d713_93a84d96-6a9b-4502-939f-2ecc4f35ecea.webp?v=1714721720","width":2000},{"alt":null,"id":23877305663587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65426744b9c66f56b8f01df342165d599551076_d6079ea2-6b63-4765-a9ed-0c84999d08ee.webp?v=1714721722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65426744b9c66f56b8f01df342165d599551076_d6079ea2-6b63-4765-a9ed-0c84999d08ee.webp?v=1714721722","width":2000},{"alt":null,"id":23877306089571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885962600547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472389161059,"product_id":7408480583779,"position":10,"created_at":"2024-05-03T15:35:25+08:00","updated_at":"2024-05-03T15:35:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725","variant_ids":[41885962600547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 美食派對 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB11","featured_media":{"alt":null,"id":23877306089571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885962600547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472389161059,"product_id":7408480583779,"position":10,"created_at":"2024-05-03T15:35:25+08:00","updated_at":"2024-05-03T15:35:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725","variant_ids":[41885962600547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 美食派對 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB11","featured_media":{"alt":null,"id":23877306089571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21344138592dfb7098abdc1c5c53bc8c1b70596f_53ae709b-96a0-4831-9cdd-4703f0efc6bb.webp?v=1714721725"}},"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: "停產"
}