$product = {"id":7408493723747,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-12-pro-max-mod-nx-printable-ae06","description":null,"published_at":"2024-06-11T16:38:48+08:00","created_at":"2024-05-03T15:37:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 12 pro max","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-chi-po-lin-series","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":41886110023779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472422289507,"product_id":7408493723747,"position":9,"created_at":"2024-05-03T15:37:53+08:00","updated_at":"2024-05-03T15:37:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873","variant_ids":[41886110023779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23877339250787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74223fcb05205090d2e8d389f48704a30b03f7ab_85cda75d-e40f-483a-9f06-e4a82bef1ff9.webp?v=1714721855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c6b1a7e7e27f0188827f91c56b161ac5c5beff_dd96e874-5c5a-4833-9cb7-c067689bb503.webp?v=1714721857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47f2fba2d7e00acb74fd9f504d0cb9f0b133ae7_b01c0a1c-09b2-42ec-a693-03c81b697807.webp?v=1714721859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2534166da2fb33ebacd88b4259074a66b965e6a4_3fc62934-d3d6-4a1d-ae91-c7f34502a789.webp?v=1714721861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9788f4a370fdb90c311493545209a80faf9a85a_e284b2f9-b221-4daa-8ee5-1d12e5dcff76.webp?v=1714721864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fedf4c85e84f442ad3c4af055c783b73c531142_e7c0e035-0bf4-47de-ad5c-ebea2357a089.webp?v=1714721866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a33fdd27f0e978f517f58dca1a3142e827c8cc4_7f341d3e-53ad-4a16-9f8b-49ed74ba0d8c.webp?v=1714721869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8fb7eda89d7f463c928782e03dd1c32c749010f_50f3c661-258e-4e86-994a-0a4f939caa17.webp?v=1714721871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fce2f3f4a9630fbc8d4a7f0b6d5b951b19e0f31_8177e745-41a5-4d74-a6bf-661f8de48c15.webp?v=1714721876"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74223fcb05205090d2e8d389f48704a30b03f7ab_85cda75d-e40f-483a-9f06-e4a82bef1ff9.webp?v=1714721855","options":["color"],"media":[{"alt":null,"id":23877334892643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74223fcb05205090d2e8d389f48704a30b03f7ab_85cda75d-e40f-483a-9f06-e4a82bef1ff9.webp?v=1714721855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74223fcb05205090d2e8d389f48704a30b03f7ab_85cda75d-e40f-483a-9f06-e4a82bef1ff9.webp?v=1714721855","width":2000},{"alt":null,"id":23877335285859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c6b1a7e7e27f0188827f91c56b161ac5c5beff_dd96e874-5c5a-4833-9cb7-c067689bb503.webp?v=1714721857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c6b1a7e7e27f0188827f91c56b161ac5c5beff_dd96e874-5c5a-4833-9cb7-c067689bb503.webp?v=1714721857","width":2000},{"alt":null,"id":23877335875683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47f2fba2d7e00acb74fd9f504d0cb9f0b133ae7_b01c0a1c-09b2-42ec-a693-03c81b697807.webp?v=1714721859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47f2fba2d7e00acb74fd9f504d0cb9f0b133ae7_b01c0a1c-09b2-42ec-a693-03c81b697807.webp?v=1714721859","width":2000},{"alt":null,"id":23877336334435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2534166da2fb33ebacd88b4259074a66b965e6a4_3fc62934-d3d6-4a1d-ae91-c7f34502a789.webp?v=1714721861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2534166da2fb33ebacd88b4259074a66b965e6a4_3fc62934-d3d6-4a1d-ae91-c7f34502a789.webp?v=1714721861","width":2000},{"alt":null,"id":23877336858723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9788f4a370fdb90c311493545209a80faf9a85a_e284b2f9-b221-4daa-8ee5-1d12e5dcff76.webp?v=1714721864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9788f4a370fdb90c311493545209a80faf9a85a_e284b2f9-b221-4daa-8ee5-1d12e5dcff76.webp?v=1714721864","width":2000},{"alt":null,"id":23877337448547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fedf4c85e84f442ad3c4af055c783b73c531142_e7c0e035-0bf4-47de-ad5c-ebea2357a089.webp?v=1714721866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fedf4c85e84f442ad3c4af055c783b73c531142_e7c0e035-0bf4-47de-ad5c-ebea2357a089.webp?v=1714721866","width":2000},{"alt":null,"id":23877338038371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a33fdd27f0e978f517f58dca1a3142e827c8cc4_7f341d3e-53ad-4a16-9f8b-49ed74ba0d8c.webp?v=1714721869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a33fdd27f0e978f517f58dca1a3142e827c8cc4_7f341d3e-53ad-4a16-9f8b-49ed74ba0d8c.webp?v=1714721869","width":2000},{"alt":null,"id":23877338660963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8fb7eda89d7f463c928782e03dd1c32c749010f_50f3c661-258e-4e86-994a-0a4f939caa17.webp?v=1714721871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8fb7eda89d7f463c928782e03dd1c32c749010f_50f3c661-258e-4e86-994a-0a4f939caa17.webp?v=1714721871","width":2000},{"alt":null,"id":23877339250787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873","width":2000},{"alt":null,"id":23877339775075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fce2f3f4a9630fbc8d4a7f0b6d5b951b19e0f31_8177e745-41a5-4d74-a6bf-661f8de48c15.webp?v=1714721876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fce2f3f4a9630fbc8d4a7f0b6d5b951b19e0f31_8177e745-41a5-4d74-a6bf-661f8de48c15.webp?v=1714721876","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886110023779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472422289507,"product_id":7408493723747,"position":9,"created_at":"2024-05-03T15:37:53+08:00","updated_at":"2024-05-03T15:37:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873","variant_ids":[41886110023779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23877339250787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886110023779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472422289507,"product_id":7408493723747,"position":9,"created_at":"2024-05-03T15:37:53+08:00","updated_at":"2024-05-03T15:37:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873","variant_ids":[41886110023779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23877339250787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d83c39439d4dcc08868f256888d079823878e3_23559921-5cc5-4ef5-9e59-a6bcec0eae03.webp?v=1714721873"}},"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: "停產"
}