$product = {"id":7415925178467,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 小丑與蝙蝠俠撲克牌","handle":"iphone-xs-max-mod-nx-printable-sb15","description":null,"published_at":"2024-06-11T16:48:05+08:00","created_at":"2024-05-06T12:25:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41915586248803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31490748317795,"product_id":7415925178467,"position":1,"created_at":"2024-05-06T12:26:01+08:00","updated_at":"2024-05-06T12:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561","variant_ids":[41915586248803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 小丑與蝙蝠俠撲克牌 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SB15","featured_media":{"alt":null,"id":23896155127907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbbd613dfe764346aa4bceb1dfdd87ca2d5ccdb4_8fa89df9-6b83-47ff-8298-244f2619323c.webp?v=1714969564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8304de43f8321215e737b7a8e9c558faeb9eb15c_c69ae0a0-0ee3-42a7-a40a-bebd83092243.webp?v=1714969566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5c6f7182a1447b91145d699c3e9539fe8880b4f_a11f491f-a5fd-4c47-863d-fa7494fd2d9a.webp?v=1714969569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c597fdc01d7ef80daaddd99984816fed4d54a5_9f23e48f-bf96-48c7-9f5f-71c7890e02f5.webp?v=1714969572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cad3bddaead55b8d5bc16ccf61809f2aff79b5_c6e7ece9-d48e-4a4f-aacb-7bda95466b65.webp?v=1714969574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bfd3be8a1f21ad9f2923d4faf2a22835ed968a9_890d8a17-c37f-49cf-afa6-fb28ae41c12d.webp?v=1714969577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83be537b097966b123271908db447bf89602f245_a372f423-3740-44f8-9726-c30deede313b.webp?v=1714969579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b91bdd7969312656e643180fb3120f30acb783a_933de989-3f17-4e40-838d-22e99adf99a7.webp?v=1714969582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28b44a2a807eaa84a207e409aabb98081ccae95a_58a9b942-f278-4a3e-b375-ecb23fbbacc7.webp?v=1714969584"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561","options":["color"],"media":[{"alt":null,"id":23896155127907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561","width":2000},{"alt":null,"id":23896155979875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbbd613dfe764346aa4bceb1dfdd87ca2d5ccdb4_8fa89df9-6b83-47ff-8298-244f2619323c.webp?v=1714969564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbbd613dfe764346aa4bceb1dfdd87ca2d5ccdb4_8fa89df9-6b83-47ff-8298-244f2619323c.webp?v=1714969564","width":2000},{"alt":null,"id":23896156536931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8304de43f8321215e737b7a8e9c558faeb9eb15c_c69ae0a0-0ee3-42a7-a40a-bebd83092243.webp?v=1714969566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8304de43f8321215e737b7a8e9c558faeb9eb15c_c69ae0a0-0ee3-42a7-a40a-bebd83092243.webp?v=1714969566","width":2000},{"alt":null,"id":23896157323363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5c6f7182a1447b91145d699c3e9539fe8880b4f_a11f491f-a5fd-4c47-863d-fa7494fd2d9a.webp?v=1714969569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5c6f7182a1447b91145d699c3e9539fe8880b4f_a11f491f-a5fd-4c47-863d-fa7494fd2d9a.webp?v=1714969569","width":2000},{"alt":null,"id":23896158044259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c597fdc01d7ef80daaddd99984816fed4d54a5_9f23e48f-bf96-48c7-9f5f-71c7890e02f5.webp?v=1714969572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65c597fdc01d7ef80daaddd99984816fed4d54a5_9f23e48f-bf96-48c7-9f5f-71c7890e02f5.webp?v=1714969572","width":2000},{"alt":null,"id":23896158863459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cad3bddaead55b8d5bc16ccf61809f2aff79b5_c6e7ece9-d48e-4a4f-aacb-7bda95466b65.webp?v=1714969574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0cad3bddaead55b8d5bc16ccf61809f2aff79b5_c6e7ece9-d48e-4a4f-aacb-7bda95466b65.webp?v=1714969574","width":2000},{"alt":null,"id":23896159649891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bfd3be8a1f21ad9f2923d4faf2a22835ed968a9_890d8a17-c37f-49cf-afa6-fb28ae41c12d.webp?v=1714969577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bfd3be8a1f21ad9f2923d4faf2a22835ed968a9_890d8a17-c37f-49cf-afa6-fb28ae41c12d.webp?v=1714969577","width":2000},{"alt":null,"id":23896160305251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83be537b097966b123271908db447bf89602f245_a372f423-3740-44f8-9726-c30deede313b.webp?v=1714969579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83be537b097966b123271908db447bf89602f245_a372f423-3740-44f8-9726-c30deede313b.webp?v=1714969579","width":2000},{"alt":null,"id":23896160829539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b91bdd7969312656e643180fb3120f30acb783a_933de989-3f17-4e40-838d-22e99adf99a7.webp?v=1714969582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b91bdd7969312656e643180fb3120f30acb783a_933de989-3f17-4e40-838d-22e99adf99a7.webp?v=1714969582","width":2000},{"alt":null,"id":23896161353827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28b44a2a807eaa84a207e409aabb98081ccae95a_58a9b942-f278-4a3e-b375-ecb23fbbacc7.webp?v=1714969584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28b44a2a807eaa84a207e409aabb98081ccae95a_58a9b942-f278-4a3e-b375-ecb23fbbacc7.webp?v=1714969584","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41915586248803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31490748317795,"product_id":7415925178467,"position":1,"created_at":"2024-05-06T12:26:01+08:00","updated_at":"2024-05-06T12:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561","variant_ids":[41915586248803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 小丑與蝙蝠俠撲克牌 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SB15","featured_media":{"alt":null,"id":23896155127907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41915586248803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31490748317795,"product_id":7415925178467,"position":1,"created_at":"2024-05-06T12:26:01+08:00","updated_at":"2024-05-06T12:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561","variant_ids":[41915586248803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 小丑與蝙蝠俠撲克牌 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SB15","featured_media":{"alt":null,"id":23896155127907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/868852c4abd0ed152755a37f1c322d8cf5220fa4_5b3941ab-26ae-4075-9e26-b2b94ff58f64.webp?v=1714969561"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}