$product = {"id":7408541106275,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 星雨夜空","handle":"iphone-12-pro-max-mod-nx-printable-a046","description":null,"published_at":"2024-06-11T16:40:09+08:00","created_at":"2024-05-03T15:46:46+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","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":41886653743203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31472540581987,"product_id":7408541106275,"position":5,"created_at":"2024-05-03T15:46:58+08:00","updated_at":"2024-05-03T15:46:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418","variant_ids":[41886653743203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 星雨夜空 - 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":"NPB0118724-A046","featured_media":{"alt":null,"id":23877457838179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f3973a5bd490a81c9ef34936d34d675973569b_ae2da4ef-e760-41c0-b54e-eb78835f39ee.webp?v=1714722409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f6eddd266af138ccd518edd43d8314eaad63a4_431d2a28-87e2-4ffa-8846-1ca5fd4738fc.webp?v=1714722411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69e017a2ce7236b98f2966c775787f386ebf6bd9_88221257-4045-4fba-be71-fd4dc817a656.webp?v=1714722413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45df04a2b9007ecaccb85847b4cc5d92ba9691de_84e3872b-31e1-48f0-bb20-b98507b6dc5a.webp?v=1714722415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd74b8108ae33c633dc9cb57ccdfda525034f92c_3702401e-6dc7-4046-9cf8-c217f54371af.webp?v=1714722420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05268f2e7d9b573cab3fb4b71e127563a93fb5a0_e2dbc9c5-fc3a-410a-aaf3-3c062eaab75b.webp?v=1714722422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0152c3b8551919d405f703a894f8fa8e7e282e79_65ea28ee-4af4-46bc-af17-d9d1868d8012.webp?v=1714722426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7883c4c6c1522933d6da776e96d217d7c1980f36_a70c3eb0-532d-4080-afe0-c0ec8f32b2ed.webp?v=1714722429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5d9a043082dfa5776bdb9e43a18760b7f51a722_551f6a98-8803-4ef3-b153-6d24458a1bdc.webp?v=1714722431"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f3973a5bd490a81c9ef34936d34d675973569b_ae2da4ef-e760-41c0-b54e-eb78835f39ee.webp?v=1714722409","options":["color"],"media":[{"alt":null,"id":23877455511651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f3973a5bd490a81c9ef34936d34d675973569b_ae2da4ef-e760-41c0-b54e-eb78835f39ee.webp?v=1714722409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f3973a5bd490a81c9ef34936d34d675973569b_ae2da4ef-e760-41c0-b54e-eb78835f39ee.webp?v=1714722409","width":2000},{"alt":null,"id":23877456298083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f6eddd266af138ccd518edd43d8314eaad63a4_431d2a28-87e2-4ffa-8846-1ca5fd4738fc.webp?v=1714722411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f6eddd266af138ccd518edd43d8314eaad63a4_431d2a28-87e2-4ffa-8846-1ca5fd4738fc.webp?v=1714722411","width":2000},{"alt":null,"id":23877456953443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69e017a2ce7236b98f2966c775787f386ebf6bd9_88221257-4045-4fba-be71-fd4dc817a656.webp?v=1714722413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69e017a2ce7236b98f2966c775787f386ebf6bd9_88221257-4045-4fba-be71-fd4dc817a656.webp?v=1714722413","width":2000},{"alt":null,"id":23877457510499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45df04a2b9007ecaccb85847b4cc5d92ba9691de_84e3872b-31e1-48f0-bb20-b98507b6dc5a.webp?v=1714722415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45df04a2b9007ecaccb85847b4cc5d92ba9691de_84e3872b-31e1-48f0-bb20-b98507b6dc5a.webp?v=1714722415","width":2000},{"alt":null,"id":23877457838179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418","width":2000},{"alt":null,"id":23877458460771,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd74b8108ae33c633dc9cb57ccdfda525034f92c_3702401e-6dc7-4046-9cf8-c217f54371af.webp?v=1714722420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd74b8108ae33c633dc9cb57ccdfda525034f92c_3702401e-6dc7-4046-9cf8-c217f54371af.webp?v=1714722420","width":2000},{"alt":null,"id":23877458919523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05268f2e7d9b573cab3fb4b71e127563a93fb5a0_e2dbc9c5-fc3a-410a-aaf3-3c062eaab75b.webp?v=1714722422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05268f2e7d9b573cab3fb4b71e127563a93fb5a0_e2dbc9c5-fc3a-410a-aaf3-3c062eaab75b.webp?v=1714722422","width":2000},{"alt":null,"id":23877459902563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0152c3b8551919d405f703a894f8fa8e7e282e79_65ea28ee-4af4-46bc-af17-d9d1868d8012.webp?v=1714722426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0152c3b8551919d405f703a894f8fa8e7e282e79_65ea28ee-4af4-46bc-af17-d9d1868d8012.webp?v=1714722426","width":2000},{"alt":null,"id":23877460557923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7883c4c6c1522933d6da776e96d217d7c1980f36_a70c3eb0-532d-4080-afe0-c0ec8f32b2ed.webp?v=1714722429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7883c4c6c1522933d6da776e96d217d7c1980f36_a70c3eb0-532d-4080-afe0-c0ec8f32b2ed.webp?v=1714722429","width":2000},{"alt":null,"id":23877461049443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5d9a043082dfa5776bdb9e43a18760b7f51a722_551f6a98-8803-4ef3-b153-6d24458a1bdc.webp?v=1714722431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5d9a043082dfa5776bdb9e43a18760b7f51a722_551f6a98-8803-4ef3-b153-6d24458a1bdc.webp?v=1714722431","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886653743203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31472540581987,"product_id":7408541106275,"position":5,"created_at":"2024-05-03T15:46:58+08:00","updated_at":"2024-05-03T15:46:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418","variant_ids":[41886653743203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 星雨夜空 - 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":"NPB0118724-A046","featured_media":{"alt":null,"id":23877457838179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886653743203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31472540581987,"product_id":7408541106275,"position":5,"created_at":"2024-05-03T15:46:58+08:00","updated_at":"2024-05-03T15:46:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418","variant_ids":[41886653743203]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 星雨夜空 - 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":"NPB0118724-A046","featured_media":{"alt":null,"id":23877457838179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c486788567a2872f0d22d14688fea3bd23d5b5d0_5574e136-69ca-446f-bfc4-8be1b59b88f3.webp?v=1714722418"}},"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: "停產"
}