$product = {"id":7409538924643,"title":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年","handle":"iphone-11-pro-max-mod-nx-printable-eo05","description":"","published_at":"2024-06-11T16:44:19+08:00","created_at":"2024-05-04T13:35:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 11 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41890516238435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31476148633699,"product_id":7409538924643,"position":4,"created_at":"2024-05-04T13:36:00+08:00","updated_at":"2025-01-22T14:35:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720","variant_ids":[41890516238435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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":"NPB0114924-EO05","featured_media":{"alt":null,"id":23881358868579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc31be37d021938c22d4cdf1adbd27728e4348c5_95a5bd40-a7c3-4c83-9d46-ee3497cb3241.webp?v=1737527720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a467ac605bf2d266a3c2668866524e6c6c38598_9d81a413-659c-4946-9771-f9262c310401.webp?v=1737527720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4d81bbaf780b8a778e0f6ce70c1651676e9c6d_09784bf9-68a5-403b-97dd-78e544f44cdb.webp?v=1737527720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dbf1f47677027fcfdb9bbc771e0dda27d5fa8ef_d5343f8e-8b61-4512-8a95-f9272f8a4e92.webp?v=1737527720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a45b77c8e9c621a2906104256734c8884393f4a_8f9383db-845b-4132-9b68-47ffc04e9d92.webp?v=1737527721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f143d5be0b70f5b694018cd36907d753c50b8c4_a49b75b3-6031-4bba-98ec-0c9d48caaf1b.webp?v=1737527721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a443fb4a33f4d2c0e83c8f5c9ccbcfa72f969657_2d960d9e-ce1f-4e49-994b-9bdf704436c8.webp?v=1737527721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94853c963987f783601d4d40edfe27eaec5289d_ac030b84-34ed-4d36-b27f-2bebfe9789fb.webp?v=1737527721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67bfa5896cc14af8c67eb9cd03bf2f00c2dbaff_12b1819d-b54e-4495-9203-d2804d7bcce1.webp?v=1737527721"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc31be37d021938c22d4cdf1adbd27728e4348c5_95a5bd40-a7c3-4c83-9d46-ee3497cb3241.webp?v=1737527720","options":["color"],"media":[{"alt":null,"id":23881356410979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc31be37d021938c22d4cdf1adbd27728e4348c5_95a5bd40-a7c3-4c83-9d46-ee3497cb3241.webp?v=1737527720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc31be37d021938c22d4cdf1adbd27728e4348c5_95a5bd40-a7c3-4c83-9d46-ee3497cb3241.webp?v=1737527720","width":2000},{"alt":null,"id":23881357721699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a467ac605bf2d266a3c2668866524e6c6c38598_9d81a413-659c-4946-9771-f9262c310401.webp?v=1737527720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a467ac605bf2d266a3c2668866524e6c6c38598_9d81a413-659c-4946-9771-f9262c310401.webp?v=1737527720","width":2000},{"alt":null,"id":23881358377059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4d81bbaf780b8a778e0f6ce70c1651676e9c6d_09784bf9-68a5-403b-97dd-78e544f44cdb.webp?v=1737527720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e4d81bbaf780b8a778e0f6ce70c1651676e9c6d_09784bf9-68a5-403b-97dd-78e544f44cdb.webp?v=1737527720","width":2000},{"alt":null,"id":23881358868579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720","width":2000},{"alt":null,"id":23881359261795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dbf1f47677027fcfdb9bbc771e0dda27d5fa8ef_d5343f8e-8b61-4512-8a95-f9272f8a4e92.webp?v=1737527720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dbf1f47677027fcfdb9bbc771e0dda27d5fa8ef_d5343f8e-8b61-4512-8a95-f9272f8a4e92.webp?v=1737527720","width":2000},{"alt":null,"id":23881360539747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a45b77c8e9c621a2906104256734c8884393f4a_8f9383db-845b-4132-9b68-47ffc04e9d92.webp?v=1737527721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a45b77c8e9c621a2906104256734c8884393f4a_8f9383db-845b-4132-9b68-47ffc04e9d92.webp?v=1737527721","width":2000},{"alt":null,"id":23881361064035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f143d5be0b70f5b694018cd36907d753c50b8c4_a49b75b3-6031-4bba-98ec-0c9d48caaf1b.webp?v=1737527721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f143d5be0b70f5b694018cd36907d753c50b8c4_a49b75b3-6031-4bba-98ec-0c9d48caaf1b.webp?v=1737527721","width":2000},{"alt":null,"id":23881361457251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a443fb4a33f4d2c0e83c8f5c9ccbcfa72f969657_2d960d9e-ce1f-4e49-994b-9bdf704436c8.webp?v=1737527721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a443fb4a33f4d2c0e83c8f5c9ccbcfa72f969657_2d960d9e-ce1f-4e49-994b-9bdf704436c8.webp?v=1737527721","width":2000},{"alt":null,"id":25221917900899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94853c963987f783601d4d40edfe27eaec5289d_ac030b84-34ed-4d36-b27f-2bebfe9789fb.webp?v=1737527721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94853c963987f783601d4d40edfe27eaec5289d_ac030b84-34ed-4d36-b27f-2bebfe9789fb.webp?v=1737527721","width":2000},{"alt":null,"id":23881361916003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67bfa5896cc14af8c67eb9cd03bf2f00c2dbaff_12b1819d-b54e-4495-9203-d2804d7bcce1.webp?v=1737527721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67bfa5896cc14af8c67eb9cd03bf2f00c2dbaff_12b1819d-b54e-4495-9203-d2804d7bcce1.webp?v=1737527721","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""};
$bumper = null;
$variants = [{"id":41890516238435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31476148633699,"product_id":7409538924643,"position":4,"created_at":"2024-05-04T13:36:00+08:00","updated_at":"2025-01-22T14:35:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720","variant_ids":[41890516238435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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":"NPB0114924-EO05","featured_media":{"alt":null,"id":23881358868579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41890516238435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31476148633699,"product_id":7409538924643,"position":4,"created_at":"2024-05-04T13:36:00+08:00","updated_at":"2025-01-22T14:35:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720","variant_ids":[41890516238435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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":"NPB0114924-EO05","featured_media":{"alt":null,"id":23881358868579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abc204819beda005864c60b8844c96f77c754d3_c73de417-eb4a-40cf-bdcd-564acca5b70a.webp?v=1737527720"}},"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: "停產"
}