$product = {"id":7408551559267,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-12-pro-max-mod-nx-printable-pb81","description":null,"published_at":"2024-06-11T16:40:28+08:00","created_at":"2024-05-03T15:49:02+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":41886777016419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31472570433635,"product_id":7408551559267,"position":6,"created_at":"2024-05-03T15:49:16+08:00","updated_at":"2024-05-03T15:49:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556","variant_ids":[41886777016419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23877487788131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacefcd23952bda69877b1b34131ec57fb03c5ff_303145cd-4009-4f56-ba58-a1a5931537e7.webp?v=1714722544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a63808409ec1a8e47ed851bd3678b2b2a94e9f6_e29de59b-f26c-4587-8337-ced55574c997.webp?v=1714722547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344f718ce59434da6f1727a81418e58199502200_9ce32611-4823-4968-9e57-f930808fe388.webp?v=1714722549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe885fa42291051229505f1b987f873f8e4aa115_09cf61af-d396-4aff-9395-40f57eb81ee7.webp?v=1714722551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596dd7b041ca663c54f4594fafacbc01b8755ede_1f13a893-8594-4626-b304-b8fd4647ce8c.webp?v=1714722553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b27acdabb0313690407463d8bfaf4c5bb254643_85a2c543-a762-418b-85e1-0ee62f2acae1.webp?v=1714722558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c6e8dc76aa43d44376ef46ffef94f4267985aa_9e6320a0-3bb9-48b1-88cf-64b570292989.webp?v=1714722560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c48a3b7d5b8241667702da57f140fd70855ea36_b3105bf6-25c9-43f3-bf24-a3c6b00c50a7.webp?v=1714722563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f421b1bc0b62b8bf55c71f85e5c357530a6c5fe_a0dca9ce-853e-4b35-89ab-3fa9bea92d85.webp?v=1714722565"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacefcd23952bda69877b1b34131ec57fb03c5ff_303145cd-4009-4f56-ba58-a1a5931537e7.webp?v=1714722544","options":["color"],"media":[{"alt":null,"id":23877485330531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacefcd23952bda69877b1b34131ec57fb03c5ff_303145cd-4009-4f56-ba58-a1a5931537e7.webp?v=1714722544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dacefcd23952bda69877b1b34131ec57fb03c5ff_303145cd-4009-4f56-ba58-a1a5931537e7.webp?v=1714722544","width":2000},{"alt":null,"id":23877485789283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a63808409ec1a8e47ed851bd3678b2b2a94e9f6_e29de59b-f26c-4587-8337-ced55574c997.webp?v=1714722547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a63808409ec1a8e47ed851bd3678b2b2a94e9f6_e29de59b-f26c-4587-8337-ced55574c997.webp?v=1714722547","width":2000},{"alt":null,"id":23877486280803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344f718ce59434da6f1727a81418e58199502200_9ce32611-4823-4968-9e57-f930808fe388.webp?v=1714722549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344f718ce59434da6f1727a81418e58199502200_9ce32611-4823-4968-9e57-f930808fe388.webp?v=1714722549","width":2000},{"alt":null,"id":23877486870627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe885fa42291051229505f1b987f873f8e4aa115_09cf61af-d396-4aff-9395-40f57eb81ee7.webp?v=1714722551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe885fa42291051229505f1b987f873f8e4aa115_09cf61af-d396-4aff-9395-40f57eb81ee7.webp?v=1714722551","width":2000},{"alt":null,"id":23877487296611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596dd7b041ca663c54f4594fafacbc01b8755ede_1f13a893-8594-4626-b304-b8fd4647ce8c.webp?v=1714722553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596dd7b041ca663c54f4594fafacbc01b8755ede_1f13a893-8594-4626-b304-b8fd4647ce8c.webp?v=1714722553","width":2000},{"alt":null,"id":23877487788131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556","width":2000},{"alt":null,"id":23877488246883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b27acdabb0313690407463d8bfaf4c5bb254643_85a2c543-a762-418b-85e1-0ee62f2acae1.webp?v=1714722558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b27acdabb0313690407463d8bfaf4c5bb254643_85a2c543-a762-418b-85e1-0ee62f2acae1.webp?v=1714722558","width":2000},{"alt":null,"id":23877488574563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c6e8dc76aa43d44376ef46ffef94f4267985aa_9e6320a0-3bb9-48b1-88cf-64b570292989.webp?v=1714722560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c6e8dc76aa43d44376ef46ffef94f4267985aa_9e6320a0-3bb9-48b1-88cf-64b570292989.webp?v=1714722560","width":2000},{"alt":null,"id":23877489131619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c48a3b7d5b8241667702da57f140fd70855ea36_b3105bf6-25c9-43f3-bf24-a3c6b00c50a7.webp?v=1714722563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c48a3b7d5b8241667702da57f140fd70855ea36_b3105bf6-25c9-43f3-bf24-a3c6b00c50a7.webp?v=1714722563","width":2000},{"alt":null,"id":23877489655907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f421b1bc0b62b8bf55c71f85e5c357530a6c5fe_a0dca9ce-853e-4b35-89ab-3fa9bea92d85.webp?v=1714722565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f421b1bc0b62b8bf55c71f85e5c357530a6c5fe_a0dca9ce-853e-4b35-89ab-3fa9bea92d85.webp?v=1714722565","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886777016419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31472570433635,"product_id":7408551559267,"position":6,"created_at":"2024-05-03T15:49:16+08:00","updated_at":"2024-05-03T15:49:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556","variant_ids":[41886777016419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23877487788131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886777016419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31472570433635,"product_id":7408551559267,"position":6,"created_at":"2024-05-03T15:49:16+08:00","updated_at":"2024-05-03T15:49:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556","variant_ids":[41886777016419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23877487788131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f2c6b37dc9686467ee4f8f4c977bdf57e16ba9_d9f9ca02-ca1c-42bd-848f-e6a148777ce9.webp?v=1714722556"}},"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: "停產"
}