$product = {"id":7408129900643,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-printable-pb39","description":null,"published_at":"2024-06-11T16:32:11+08:00","created_at":"2024-05-03T12:05:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41883010564195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31471269970019,"product_id":7408129900643,"position":5,"created_at":"2024-05-03T12:05:55+08:00","updated_at":"2024-05-03T12:05:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155","variant_ids":[41883010564195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0123224-PB39","featured_media":{"alt":null,"id":23876175659107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883010859107,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31471269478499,"product_id":7408129900643,"position":4,"created_at":"2024-05-03T12:05:53+08:00","updated_at":"2024-05-03T12:05:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aff90482659e79f49ba9f4b01a6d1af3c1e9232_1bc3e101-8428-4352-b246-158b4b915cb8.webp?v=1714709153","variant_ids":[41883010859107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB01232J5-PB39","featured_media":{"alt":null,"id":23876175233123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aff90482659e79f49ba9f4b01a6d1af3c1e9232_1bc3e101-8428-4352-b246-158b4b915cb8.webp?v=1714709153"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad68aa3e2c301da5a213c3fe4b750a42b08cc622_6c084f89-44bd-4e17-a287-df6e735990db.webp?v=1714709146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8fc9f639507cb6f63d840b30ce5e006b663330_8a5799bb-e1ee-481b-a494-2af1ca1e7b49.webp?v=1714709149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf94223c903a99a6f336122871c115e7eb6e9f47_9e0be1e4-335b-4bbe-8ca4-b118708b7f34.webp?v=1714709151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aff90482659e79f49ba9f4b01a6d1af3c1e9232_1bc3e101-8428-4352-b246-158b4b915cb8.webp?v=1714709153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46d98dca7516270bdf08f2a74826ca21967fe41_e5442914-f63d-4b4e-b2f8-444285bdb7b4.webp?v=1714709158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eec35b748195dc21c2d19b9d1f82e8e1f2e3c54_bdfc4f42-b601-417c-98c4-4f381ff5f00f.webp?v=1714709160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/702a429133ccb0d7fca1b9e11421b7ade0b778d9_29e7021d-2dd1-4ba9-844f-c47aa3bccfff.webp?v=1714709163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2dd19e49010acdeb970acf27e7d0c931d5a9d7_176dcbbc-9d64-440c-b7bf-e709fa78461a.webp?v=1714709165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/367ff9f4bc9df6ae476f22c6ac4320fa915ee8c7_a5a18f91-ec71-4b70-a189-6edd1f95e7b7.webp?v=1714709168"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad68aa3e2c301da5a213c3fe4b750a42b08cc622_6c084f89-44bd-4e17-a287-df6e735990db.webp?v=1714709146","options":["color"],"media":[{"alt":null,"id":23876173365347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad68aa3e2c301da5a213c3fe4b750a42b08cc622_6c084f89-44bd-4e17-a287-df6e735990db.webp?v=1714709146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad68aa3e2c301da5a213c3fe4b750a42b08cc622_6c084f89-44bd-4e17-a287-df6e735990db.webp?v=1714709146","width":2000},{"alt":null,"id":23876174184547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8fc9f639507cb6f63d840b30ce5e006b663330_8a5799bb-e1ee-481b-a494-2af1ca1e7b49.webp?v=1714709149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8fc9f639507cb6f63d840b30ce5e006b663330_8a5799bb-e1ee-481b-a494-2af1ca1e7b49.webp?v=1714709149","width":2000},{"alt":null,"id":23876174708835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf94223c903a99a6f336122871c115e7eb6e9f47_9e0be1e4-335b-4bbe-8ca4-b118708b7f34.webp?v=1714709151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf94223c903a99a6f336122871c115e7eb6e9f47_9e0be1e4-335b-4bbe-8ca4-b118708b7f34.webp?v=1714709151","width":2000},{"alt":null,"id":23876175233123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aff90482659e79f49ba9f4b01a6d1af3c1e9232_1bc3e101-8428-4352-b246-158b4b915cb8.webp?v=1714709153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aff90482659e79f49ba9f4b01a6d1af3c1e9232_1bc3e101-8428-4352-b246-158b4b915cb8.webp?v=1714709153","width":2000},{"alt":null,"id":23876175659107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155","width":2000},{"alt":null,"id":23876176117859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46d98dca7516270bdf08f2a74826ca21967fe41_e5442914-f63d-4b4e-b2f8-444285bdb7b4.webp?v=1714709158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46d98dca7516270bdf08f2a74826ca21967fe41_e5442914-f63d-4b4e-b2f8-444285bdb7b4.webp?v=1714709158","width":2000},{"alt":null,"id":23876176707683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eec35b748195dc21c2d19b9d1f82e8e1f2e3c54_bdfc4f42-b601-417c-98c4-4f381ff5f00f.webp?v=1714709160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eec35b748195dc21c2d19b9d1f82e8e1f2e3c54_bdfc4f42-b601-417c-98c4-4f381ff5f00f.webp?v=1714709160","width":2000},{"alt":null,"id":23876177166435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/702a429133ccb0d7fca1b9e11421b7ade0b778d9_29e7021d-2dd1-4ba9-844f-c47aa3bccfff.webp?v=1714709163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/702a429133ccb0d7fca1b9e11421b7ade0b778d9_29e7021d-2dd1-4ba9-844f-c47aa3bccfff.webp?v=1714709163","width":2000},{"alt":null,"id":23876177854563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2dd19e49010acdeb970acf27e7d0c931d5a9d7_176dcbbc-9d64-440c-b7bf-e709fa78461a.webp?v=1714709165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2dd19e49010acdeb970acf27e7d0c931d5a9d7_176dcbbc-9d64-440c-b7bf-e709fa78461a.webp?v=1714709165","width":2000},{"alt":null,"id":23876178313315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/367ff9f4bc9df6ae476f22c6ac4320fa915ee8c7_a5a18f91-ec71-4b70-a189-6edd1f95e7b7.webp?v=1714709168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/367ff9f4bc9df6ae476f22c6ac4320fa915ee8c7_a5a18f91-ec71-4b70-a189-6edd1f95e7b7.webp?v=1714709168","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883010564195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31471269970019,"product_id":7408129900643,"position":5,"created_at":"2024-05-03T12:05:55+08:00","updated_at":"2024-05-03T12:05:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155","variant_ids":[41883010564195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0123224-PB39","featured_media":{"alt":null,"id":23876175659107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883010859107,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31471269478499,"product_id":7408129900643,"position":4,"created_at":"2024-05-03T12:05:53+08:00","updated_at":"2024-05-03T12:05:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aff90482659e79f49ba9f4b01a6d1af3c1e9232_1bc3e101-8428-4352-b246-158b4b915cb8.webp?v=1714709153","variant_ids":[41883010859107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB01232J5-PB39","featured_media":{"alt":null,"id":23876175233123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aff90482659e79f49ba9f4b01a6d1af3c1e9232_1bc3e101-8428-4352-b246-158b4b915cb8.webp?v=1714709153"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883010564195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31471269970019,"product_id":7408129900643,"position":5,"created_at":"2024-05-03T12:05:55+08:00","updated_at":"2024-05-03T12:05:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155","variant_ids":[41883010564195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0123224-PB39","featured_media":{"alt":null,"id":23876175659107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db82a9aed58a78d3f19ae561411c2ef9301dfbdf_93dbe4e8-7f08-4df1-b0ad-eafea1583213.webp?v=1714709155"}},"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: "停產"
}