$product = {"id":7408496410723,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列","handle":"iphone-12-pro-max-mod-nx-printable-pc10","description":null,"published_at":"2024-06-11T16:38:52+08:00","created_at":"2024-05-03T15:38:08+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 12 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":41886142857315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472428613731,"product_id":7408496410723,"position":6,"created_at":"2024-05-03T15:38:22+08:00","updated_at":"2024-05-03T15:38:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902","variant_ids":[41886142857315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - 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-PC10","featured_media":{"alt":null,"id":23877345542243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e80b170e551f0ab3e57c735135afa2947b55f_1203c39c-8769-4af6-8431-c361bea88d81.webp?v=1714721890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca78e683b563a454aafb16362b3d81d494e5087_d8562ab1-bf63-478a-9395-937dedb5e427.webp?v=1714721893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed1c979c6e2148b8edec04444b87d8b415285d6_79e994c2-af30-4c4a-93dc-bb3ecddf3080.webp?v=1714721895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4807227da9f1db20000222df93867c516b27256_0f185a68-e7e8-4bc4-860c-2c977a14cd7e.webp?v=1714721897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2418831ad65da55fa6330d5d689bf85b836dc000_60c31f99-71ea-48a1-ab41-54bc7b6d8978.webp?v=1714721899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa1bf40acadcb7875e515cd4dd0e82a01c963be_f295a84c-3a63-41d8-8edc-ff945a5fd23b.webp?v=1714721904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35353f6f18db65ab8d0ee04ee1f8530dfdfb086_e8b9c449-5d9c-476a-97ae-41641132b63a.webp?v=1714721906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c05906bb02f11d14fb27ebe227c82d1cb336cebf_8a298ab4-eb1b-45d4-b22f-cce49eb42756.webp?v=1714721908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4287d2d438c40fc311b714efa5094e40c159db7_5c22adce-8f50-420b-81da-3cec21d1cf30.webp?v=1714721911"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e80b170e551f0ab3e57c735135afa2947b55f_1203c39c-8769-4af6-8431-c361bea88d81.webp?v=1714721890","options":["color"],"media":[{"alt":null,"id":23877343019107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e80b170e551f0ab3e57c735135afa2947b55f_1203c39c-8769-4af6-8431-c361bea88d81.webp?v=1714721890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e80b170e551f0ab3e57c735135afa2947b55f_1203c39c-8769-4af6-8431-c361bea88d81.webp?v=1714721890","width":2000},{"alt":null,"id":23877343510627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca78e683b563a454aafb16362b3d81d494e5087_d8562ab1-bf63-478a-9395-937dedb5e427.webp?v=1714721893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca78e683b563a454aafb16362b3d81d494e5087_d8562ab1-bf63-478a-9395-937dedb5e427.webp?v=1714721893","width":2000},{"alt":null,"id":23877344133219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed1c979c6e2148b8edec04444b87d8b415285d6_79e994c2-af30-4c4a-93dc-bb3ecddf3080.webp?v=1714721895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed1c979c6e2148b8edec04444b87d8b415285d6_79e994c2-af30-4c4a-93dc-bb3ecddf3080.webp?v=1714721895","width":2000},{"alt":null,"id":23877344591971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4807227da9f1db20000222df93867c516b27256_0f185a68-e7e8-4bc4-860c-2c977a14cd7e.webp?v=1714721897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4807227da9f1db20000222df93867c516b27256_0f185a68-e7e8-4bc4-860c-2c977a14cd7e.webp?v=1714721897","width":2000},{"alt":null,"id":23877345116259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2418831ad65da55fa6330d5d689bf85b836dc000_60c31f99-71ea-48a1-ab41-54bc7b6d8978.webp?v=1714721899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2418831ad65da55fa6330d5d689bf85b836dc000_60c31f99-71ea-48a1-ab41-54bc7b6d8978.webp?v=1714721899","width":2000},{"alt":null,"id":23877345542243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902","width":2000},{"alt":null,"id":23877346066531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa1bf40acadcb7875e515cd4dd0e82a01c963be_f295a84c-3a63-41d8-8edc-ff945a5fd23b.webp?v=1714721904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa1bf40acadcb7875e515cd4dd0e82a01c963be_f295a84c-3a63-41d8-8edc-ff945a5fd23b.webp?v=1714721904","width":2000},{"alt":null,"id":23877346492515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35353f6f18db65ab8d0ee04ee1f8530dfdfb086_e8b9c449-5d9c-476a-97ae-41641132b63a.webp?v=1714721906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35353f6f18db65ab8d0ee04ee1f8530dfdfb086_e8b9c449-5d9c-476a-97ae-41641132b63a.webp?v=1714721906","width":2000},{"alt":null,"id":23877346984035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c05906bb02f11d14fb27ebe227c82d1cb336cebf_8a298ab4-eb1b-45d4-b22f-cce49eb42756.webp?v=1714721908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c05906bb02f11d14fb27ebe227c82d1cb336cebf_8a298ab4-eb1b-45d4-b22f-cce49eb42756.webp?v=1714721908","width":2000},{"alt":null,"id":23877347508323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4287d2d438c40fc311b714efa5094e40c159db7_5c22adce-8f50-420b-81da-3cec21d1cf30.webp?v=1714721911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4287d2d438c40fc311b714efa5094e40c159db7_5c22adce-8f50-420b-81da-3cec21d1cf30.webp?v=1714721911","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886142857315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472428613731,"product_id":7408496410723,"position":6,"created_at":"2024-05-03T15:38:22+08:00","updated_at":"2024-05-03T15:38:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902","variant_ids":[41886142857315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - 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-PC10","featured_media":{"alt":null,"id":23877345542243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886142857315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472428613731,"product_id":7408496410723,"position":6,"created_at":"2024-05-03T15:38:22+08:00","updated_at":"2024-05-03T15:38:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902","variant_ids":[41886142857315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - 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-PC10","featured_media":{"alt":null,"id":23877345542243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d3210fa836537366b0c06614d213689fe0d607_1d659f7b-4eaa-4690-b1de-bc2bbc4e931d.webp?v=1714721902"}},"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: "停產"
}