$product = {"id":7408377495651,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 火炎山","handle":"iphone-12-pro-max-mod-nx-printable-aa36","description":null,"published_at":"2024-06-11T16:35:34+08:00","created_at":"2024-05-03T15:14:35+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":41884804808803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31472104570979,"product_id":7408377495651,"position":2,"created_at":"2024-05-03T15:14:41+08:00","updated_at":"2024-05-03T15:14:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481","variant_ids":[41884804808803]},"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-AA36","featured_media":{"alt":null,"id":23877020024931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1935d7bca5b96c1aa6f11aae2910540050c1ae_35f264cf-ee8d-4960-90f3-0ea1918b55c2.webp?v=1714720478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f3320bcbbcb8b3d97f968703246a8ab8c9e15c3_e1835c76-1583-4e34-b75d-17d3b36656e3.webp?v=1714720483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/229276ed762c20982da0a356a03087eca6b9d0cf_55ec85f7-c720-4468-8413-3fd532b0b4dc.webp?v=1714720486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42238724ea0203dafb570642f8d7c46c8809eee9_0eae3a38-0334-4131-bfb5-955850948d59.webp?v=1714720488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c7cbdab0e7f03756b478677f262eea80c82839_4ae6b600-e485-48fb-a0bc-09f37aa07cbf.webp?v=1714720491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3199904a0af8149aee931414eb5ddfc60d95c33_c458685b-5948-48c8-9f1b-9adbf8e5ff8a.webp?v=1714720493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49e7ed6738c3c1853c36a84b8657bd9f7a3f151a_25945dfe-034b-4e80-b333-a968b2995dfd.webp?v=1714720496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755c5b00d0e78dc1cf6b7722bbde8c3b29a1d097_5d7b5ff2-1763-42c1-976e-92a4b15eefed.webp?v=1714720498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53850ab0764871ff48494994c08e1d00b2dee084_3b149b61-d074-47b0-bab9-e5cadb702b51.webp?v=1714720501"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1935d7bca5b96c1aa6f11aae2910540050c1ae_35f264cf-ee8d-4960-90f3-0ea1918b55c2.webp?v=1714720478","options":["color"],"media":[{"alt":null,"id":23877019500643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1935d7bca5b96c1aa6f11aae2910540050c1ae_35f264cf-ee8d-4960-90f3-0ea1918b55c2.webp?v=1714720478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1935d7bca5b96c1aa6f11aae2910540050c1ae_35f264cf-ee8d-4960-90f3-0ea1918b55c2.webp?v=1714720478","width":2000},{"alt":null,"id":23877020024931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481","width":2000},{"alt":null,"id":23877020647523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f3320bcbbcb8b3d97f968703246a8ab8c9e15c3_e1835c76-1583-4e34-b75d-17d3b36656e3.webp?v=1714720483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f3320bcbbcb8b3d97f968703246a8ab8c9e15c3_e1835c76-1583-4e34-b75d-17d3b36656e3.webp?v=1714720483","width":2000},{"alt":null,"id":23877021106275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/229276ed762c20982da0a356a03087eca6b9d0cf_55ec85f7-c720-4468-8413-3fd532b0b4dc.webp?v=1714720486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/229276ed762c20982da0a356a03087eca6b9d0cf_55ec85f7-c720-4468-8413-3fd532b0b4dc.webp?v=1714720486","width":2000},{"alt":null,"id":23877021794403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42238724ea0203dafb570642f8d7c46c8809eee9_0eae3a38-0334-4131-bfb5-955850948d59.webp?v=1714720488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42238724ea0203dafb570642f8d7c46c8809eee9_0eae3a38-0334-4131-bfb5-955850948d59.webp?v=1714720488","width":2000},{"alt":null,"id":23877022187619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c7cbdab0e7f03756b478677f262eea80c82839_4ae6b600-e485-48fb-a0bc-09f37aa07cbf.webp?v=1714720491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c7cbdab0e7f03756b478677f262eea80c82839_4ae6b600-e485-48fb-a0bc-09f37aa07cbf.webp?v=1714720491","width":2000},{"alt":null,"id":23877022777443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3199904a0af8149aee931414eb5ddfc60d95c33_c458685b-5948-48c8-9f1b-9adbf8e5ff8a.webp?v=1714720493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3199904a0af8149aee931414eb5ddfc60d95c33_c458685b-5948-48c8-9f1b-9adbf8e5ff8a.webp?v=1714720493","width":2000},{"alt":null,"id":23877023203427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49e7ed6738c3c1853c36a84b8657bd9f7a3f151a_25945dfe-034b-4e80-b333-a968b2995dfd.webp?v=1714720496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49e7ed6738c3c1853c36a84b8657bd9f7a3f151a_25945dfe-034b-4e80-b333-a968b2995dfd.webp?v=1714720496","width":2000},{"alt":null,"id":23877023891555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755c5b00d0e78dc1cf6b7722bbde8c3b29a1d097_5d7b5ff2-1763-42c1-976e-92a4b15eefed.webp?v=1714720498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755c5b00d0e78dc1cf6b7722bbde8c3b29a1d097_5d7b5ff2-1763-42c1-976e-92a4b15eefed.webp?v=1714720498","width":2000},{"alt":null,"id":23877024284771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53850ab0764871ff48494994c08e1d00b2dee084_3b149b61-d074-47b0-bab9-e5cadb702b51.webp?v=1714720501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53850ab0764871ff48494994c08e1d00b2dee084_3b149b61-d074-47b0-bab9-e5cadb702b51.webp?v=1714720501","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41884804808803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31472104570979,"product_id":7408377495651,"position":2,"created_at":"2024-05-03T15:14:41+08:00","updated_at":"2024-05-03T15:14:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481","variant_ids":[41884804808803]},"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-AA36","featured_media":{"alt":null,"id":23877020024931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41884804808803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31472104570979,"product_id":7408377495651,"position":2,"created_at":"2024-05-03T15:14:41+08:00","updated_at":"2024-05-03T15:14:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481","variant_ids":[41884804808803]},"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-AA36","featured_media":{"alt":null,"id":23877020024931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4f8fdf82eb8c9a5badc31e3fbe8c52472241bc_f2ac52fc-a4c4-4f2f-b8b0-fc7f71eecb53.webp?v=1714720481"}},"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: "停產"
}