$product = {"id":7408498376803,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-小丑","handle":"iphone-12-pro-max-mod-nx-printable-sb13","description":null,"published_at":"2024-06-11T16:38:55+08:00","created_at":"2024-05-03T15:38:31+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 12 pro 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":41886167269475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472432087139,"product_id":7408498376803,"position":3,"created_at":"2024-05-03T15:38:39+08:00","updated_at":"2024-05-03T15:38:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919","variant_ids":[41886167269475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-SB13","featured_media":{"alt":null,"id":23877349048419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8864dbf082771c0e996432977587b7c8ca8c2f7f_e6804443-494c-408c-a1f1-4a81cafeff0c.webp?v=1714721914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f44e2fbee07894d210b6b1c07253d3f9246f10cd_f3db5eda-57c3-4050-b233-d2b0d7751652.webp?v=1714721916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ad137794f5214bd6c5e92568b5ad77f5b5746a_da98ed95-539a-4c23-a601-cd1a3d4d7f28.webp?v=1714721921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ef1cf3d5ddb932da33194adc6f82f9dc9e5e2b_5b29920f-ecc8-41c5-b007-53493ec68db0.webp?v=1714721923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b57678d3c073787c0e8fb95e1fd159b3502ce0_82d909ac-744d-4621-ae35-3648291a2a20.webp?v=1714721926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164ea205681913ce34c93eddbb823f0a0f8c5819_4e30608b-ffa4-409d-bc2c-d6e5de707225.webp?v=1714721928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/095c06e9f976291fca30ada3b0a7041095563202_8fcbe0da-7c13-488e-8d82-b2446782b0d6.webp?v=1714721931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97dbb58a80f1735831347ea0bf34b70c9d9c624e_d4e72f42-1136-433d-b8ef-7aa5d6ab6211.webp?v=1714721933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b75b180d783eb37c9e96699cea13bc336f6da0e3_25c07ef4-a0aa-4697-8f17-c70022294a50.webp?v=1714721935"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8864dbf082771c0e996432977587b7c8ca8c2f7f_e6804443-494c-408c-a1f1-4a81cafeff0c.webp?v=1714721914","options":["color"],"media":[{"alt":null,"id":23877348163683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8864dbf082771c0e996432977587b7c8ca8c2f7f_e6804443-494c-408c-a1f1-4a81cafeff0c.webp?v=1714721914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8864dbf082771c0e996432977587b7c8ca8c2f7f_e6804443-494c-408c-a1f1-4a81cafeff0c.webp?v=1714721914","width":2000},{"alt":null,"id":23877348687971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f44e2fbee07894d210b6b1c07253d3f9246f10cd_f3db5eda-57c3-4050-b233-d2b0d7751652.webp?v=1714721916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f44e2fbee07894d210b6b1c07253d3f9246f10cd_f3db5eda-57c3-4050-b233-d2b0d7751652.webp?v=1714721916","width":2000},{"alt":null,"id":23877349048419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919","width":2000},{"alt":null,"id":23877349638243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ad137794f5214bd6c5e92568b5ad77f5b5746a_da98ed95-539a-4c23-a601-cd1a3d4d7f28.webp?v=1714721921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ad137794f5214bd6c5e92568b5ad77f5b5746a_da98ed95-539a-4c23-a601-cd1a3d4d7f28.webp?v=1714721921","width":2000},{"alt":null,"id":23877350129763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ef1cf3d5ddb932da33194adc6f82f9dc9e5e2b_5b29920f-ecc8-41c5-b007-53493ec68db0.webp?v=1714721923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ef1cf3d5ddb932da33194adc6f82f9dc9e5e2b_5b29920f-ecc8-41c5-b007-53493ec68db0.webp?v=1714721923","width":2000},{"alt":null,"id":23877350686819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b57678d3c073787c0e8fb95e1fd159b3502ce0_82d909ac-744d-4621-ae35-3648291a2a20.webp?v=1714721926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b57678d3c073787c0e8fb95e1fd159b3502ce0_82d909ac-744d-4621-ae35-3648291a2a20.webp?v=1714721926","width":2000},{"alt":null,"id":23877351080035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164ea205681913ce34c93eddbb823f0a0f8c5819_4e30608b-ffa4-409d-bc2c-d6e5de707225.webp?v=1714721928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164ea205681913ce34c93eddbb823f0a0f8c5819_4e30608b-ffa4-409d-bc2c-d6e5de707225.webp?v=1714721928","width":2000},{"alt":null,"id":23877351800931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/095c06e9f976291fca30ada3b0a7041095563202_8fcbe0da-7c13-488e-8d82-b2446782b0d6.webp?v=1714721931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/095c06e9f976291fca30ada3b0a7041095563202_8fcbe0da-7c13-488e-8d82-b2446782b0d6.webp?v=1714721931","width":2000},{"alt":null,"id":23877352161379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97dbb58a80f1735831347ea0bf34b70c9d9c624e_d4e72f42-1136-433d-b8ef-7aa5d6ab6211.webp?v=1714721933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97dbb58a80f1735831347ea0bf34b70c9d9c624e_d4e72f42-1136-433d-b8ef-7aa5d6ab6211.webp?v=1714721933","width":2000},{"alt":null,"id":23877352751203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b75b180d783eb37c9e96699cea13bc336f6da0e3_25c07ef4-a0aa-4697-8f17-c70022294a50.webp?v=1714721935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b75b180d783eb37c9e96699cea13bc336f6da0e3_25c07ef4-a0aa-4697-8f17-c70022294a50.webp?v=1714721935","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886167269475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472432087139,"product_id":7408498376803,"position":3,"created_at":"2024-05-03T15:38:39+08:00","updated_at":"2024-05-03T15:38:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919","variant_ids":[41886167269475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-SB13","featured_media":{"alt":null,"id":23877349048419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886167269475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472432087139,"product_id":7408498376803,"position":3,"created_at":"2024-05-03T15:38:39+08:00","updated_at":"2024-05-03T15:38:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919","variant_ids":[41886167269475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-SB13","featured_media":{"alt":null,"id":23877349048419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0620d775334221bfed95827f22b7c66c2066882_2e81ce80-ab5b-4031-8f7e-c15a367fe189.webp?v=1714721919"}},"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: "停產"
}