$product = {"id":7408404201571,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【獨家設計款】 - 兔子電腦","handle":"iphone-12-pro-max-mod-nx-printable-mw06","description":null,"published_at":"2024-06-11T16:36:19+08:00","created_at":"2024-05-03T15:19:56+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":41885102243939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472179576931,"product_id":7408404201571,"position":9,"created_at":"2024-05-03T15:20:18+08:00","updated_at":"2024-05-03T15:20:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818","variant_ids":[41885102243939]},"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-MW06","featured_media":{"alt":null,"id":23877095096419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e7363ba6c014f01789e751006bdc5125011739_18950d74-fa84-45df-a670-97513ef6bf64.webp?v=1714720798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a44eebbf6484fa82c8f475f3bf7ef91dc8ea69_193d133d-bc99-4020-9ed0-e67372928f9d.webp?v=1714720801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00e2b1c3a656c70b6815f92ef8c82bd56417eb7_136c5ee1-3cdc-4853-9c13-7612f53f9642.webp?v=1714720803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/640e830252ce43e71ff2d0a8eec764bc1bc1f452_e6ebdcd4-0ab7-4aea-9096-fb08306a2813.webp?v=1714720806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/128c1d02049c44a68d4eef8bca231b315cd3781f_c9f25635-1e45-4952-b6c8-80d51e7790cd.webp?v=1714720808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23055152295ccc26815cd23d12429910f4b949b3_9fe6c2b4-fb0b-4e57-b361-5c0ef9e3d013.webp?v=1714720810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f40162cdb1595e56a9e16c4dfc8a82b4fdd63f7a_a2129bbc-2d5c-4423-af3e-34bb06fc2ae7.webp?v=1714720813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab2114d25850305ecc462502a575457dbb740f5d_2a40d610-a0c9-4bd1-b5de-2af5b0b6937e.webp?v=1714720815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf673047eb3b274ab6be2c094953110846785bd_148ed31b-5970-4904-aff9-ecad98e2f244.webp?v=1714720820"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e7363ba6c014f01789e751006bdc5125011739_18950d74-fa84-45df-a670-97513ef6bf64.webp?v=1714720798","options":["color"],"media":[{"alt":null,"id":23877090017379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e7363ba6c014f01789e751006bdc5125011739_18950d74-fa84-45df-a670-97513ef6bf64.webp?v=1714720798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e7363ba6c014f01789e751006bdc5125011739_18950d74-fa84-45df-a670-97513ef6bf64.webp?v=1714720798","width":2000},{"alt":null,"id":23877090574435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a44eebbf6484fa82c8f475f3bf7ef91dc8ea69_193d133d-bc99-4020-9ed0-e67372928f9d.webp?v=1714720801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a44eebbf6484fa82c8f475f3bf7ef91dc8ea69_193d133d-bc99-4020-9ed0-e67372928f9d.webp?v=1714720801","width":2000},{"alt":null,"id":23877091098723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00e2b1c3a656c70b6815f92ef8c82bd56417eb7_136c5ee1-3cdc-4853-9c13-7612f53f9642.webp?v=1714720803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00e2b1c3a656c70b6815f92ef8c82bd56417eb7_136c5ee1-3cdc-4853-9c13-7612f53f9642.webp?v=1714720803","width":2000},{"alt":null,"id":23877091557475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/640e830252ce43e71ff2d0a8eec764bc1bc1f452_e6ebdcd4-0ab7-4aea-9096-fb08306a2813.webp?v=1714720806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/640e830252ce43e71ff2d0a8eec764bc1bc1f452_e6ebdcd4-0ab7-4aea-9096-fb08306a2813.webp?v=1714720806","width":2000},{"alt":null,"id":23877092212835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/128c1d02049c44a68d4eef8bca231b315cd3781f_c9f25635-1e45-4952-b6c8-80d51e7790cd.webp?v=1714720808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/128c1d02049c44a68d4eef8bca231b315cd3781f_c9f25635-1e45-4952-b6c8-80d51e7790cd.webp?v=1714720808","width":2000},{"alt":null,"id":23877092737123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23055152295ccc26815cd23d12429910f4b949b3_9fe6c2b4-fb0b-4e57-b361-5c0ef9e3d013.webp?v=1714720810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23055152295ccc26815cd23d12429910f4b949b3_9fe6c2b4-fb0b-4e57-b361-5c0ef9e3d013.webp?v=1714720810","width":2000},{"alt":null,"id":23877093687395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f40162cdb1595e56a9e16c4dfc8a82b4fdd63f7a_a2129bbc-2d5c-4423-af3e-34bb06fc2ae7.webp?v=1714720813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f40162cdb1595e56a9e16c4dfc8a82b4fdd63f7a_a2129bbc-2d5c-4423-af3e-34bb06fc2ae7.webp?v=1714720813","width":2000},{"alt":null,"id":23877094047843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab2114d25850305ecc462502a575457dbb740f5d_2a40d610-a0c9-4bd1-b5de-2af5b0b6937e.webp?v=1714720815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab2114d25850305ecc462502a575457dbb740f5d_2a40d610-a0c9-4bd1-b5de-2af5b0b6937e.webp?v=1714720815","width":2000},{"alt":null,"id":23877095096419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818","width":2000},{"alt":null,"id":23877096341603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf673047eb3b274ab6be2c094953110846785bd_148ed31b-5970-4904-aff9-ecad98e2f244.webp?v=1714720820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf673047eb3b274ab6be2c094953110846785bd_148ed31b-5970-4904-aff9-ecad98e2f244.webp?v=1714720820","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885102243939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472179576931,"product_id":7408404201571,"position":9,"created_at":"2024-05-03T15:20:18+08:00","updated_at":"2024-05-03T15:20:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818","variant_ids":[41885102243939]},"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-MW06","featured_media":{"alt":null,"id":23877095096419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885102243939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472179576931,"product_id":7408404201571,"position":9,"created_at":"2024-05-03T15:20:18+08:00","updated_at":"2024-05-03T15:20:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818","variant_ids":[41885102243939]},"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-MW06","featured_media":{"alt":null,"id":23877095096419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860891bd2565804bcd6c51c14e112ef6187f29ef_1fcdedb6-0109-4dee-886a-204b3845412d.webp?v=1714720818"}},"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: "停產"
}