$product = {"id":7408471605347,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格","handle":"iphone-12-pro-max-mod-nx-printable-pb75","description":null,"published_at":"2024-06-11T16:38:10+08:00","created_at":"2024-05-03T15:33:12+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":41885860888675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31472365240419,"product_id":7408471605347,"position":8,"created_at":"2024-05-03T15:33:32+08:00","updated_at":"2024-05-03T15:33:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612","variant_ids":[41885860888675]},"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-PB75","featured_media":{"alt":null,"id":23877282136163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cabb4b9f693746673eb79c6e24a64c9d5076cc21_b78e0025-e9f8-43a5-8af3-63179000c432.webp?v=1714721595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2139f14cae46597c801060707352c0dfe4719c9_bcf41928-0d40-4ce3-887b-bedcb78a64c7.webp?v=1714721597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d30c2d616ef78c09a106e944124e061adaa711e8_95a9c60d-b10f-4165-8c65-0c1ed87a4971.webp?v=1714721600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/798840dcc29179af073a634f2f048b6b5f0cc8bf_5a996d96-53ca-4f2f-b967-b3ae79dfe824.webp?v=1714721602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1213148b8fc4130b7eed7ba257236271dd2bf2_a2a8c467-1ccf-4a32-9555-89bac4cd21cc.webp?v=1714721605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b551631af8a82f84de4e9b02d2903220d8d8a73_5c7dc796-cfae-48c5-a040-110401073ab1.webp?v=1714721607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7533c3df689a37418d543fa4e0431c3eec4366a9_a31feb21-6615-4f5b-af0d-5b2bd16b5289.webp?v=1714721610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8668ffa3521dd0e09372f15b549674606079721_0265db60-a644-421c-a8b0-74aeff4df497.webp?v=1714721615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2473f638e92bdfee09630ad6d0002bcd7f24296_005102d0-0501-4feb-9acc-c7d910a4d03c.webp?v=1714721618"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cabb4b9f693746673eb79c6e24a64c9d5076cc21_b78e0025-e9f8-43a5-8af3-63179000c432.webp?v=1714721595","options":["color"],"media":[{"alt":null,"id":23877278793827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cabb4b9f693746673eb79c6e24a64c9d5076cc21_b78e0025-e9f8-43a5-8af3-63179000c432.webp?v=1714721595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cabb4b9f693746673eb79c6e24a64c9d5076cc21_b78e0025-e9f8-43a5-8af3-63179000c432.webp?v=1714721595","width":2000},{"alt":null,"id":23877279318115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2139f14cae46597c801060707352c0dfe4719c9_bcf41928-0d40-4ce3-887b-bedcb78a64c7.webp?v=1714721597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2139f14cae46597c801060707352c0dfe4719c9_bcf41928-0d40-4ce3-887b-bedcb78a64c7.webp?v=1714721597","width":2000},{"alt":null,"id":23877279645795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d30c2d616ef78c09a106e944124e061adaa711e8_95a9c60d-b10f-4165-8c65-0c1ed87a4971.webp?v=1714721600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d30c2d616ef78c09a106e944124e061adaa711e8_95a9c60d-b10f-4165-8c65-0c1ed87a4971.webp?v=1714721600","width":2000},{"alt":null,"id":23877280301155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/798840dcc29179af073a634f2f048b6b5f0cc8bf_5a996d96-53ca-4f2f-b967-b3ae79dfe824.webp?v=1714721602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/798840dcc29179af073a634f2f048b6b5f0cc8bf_5a996d96-53ca-4f2f-b967-b3ae79dfe824.webp?v=1714721602","width":2000},{"alt":null,"id":23877280596067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1213148b8fc4130b7eed7ba257236271dd2bf2_a2a8c467-1ccf-4a32-9555-89bac4cd21cc.webp?v=1714721605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1213148b8fc4130b7eed7ba257236271dd2bf2_a2a8c467-1ccf-4a32-9555-89bac4cd21cc.webp?v=1714721605","width":2000},{"alt":null,"id":23877281120355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b551631af8a82f84de4e9b02d2903220d8d8a73_5c7dc796-cfae-48c5-a040-110401073ab1.webp?v=1714721607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b551631af8a82f84de4e9b02d2903220d8d8a73_5c7dc796-cfae-48c5-a040-110401073ab1.webp?v=1714721607","width":2000},{"alt":null,"id":23877281579107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7533c3df689a37418d543fa4e0431c3eec4366a9_a31feb21-6615-4f5b-af0d-5b2bd16b5289.webp?v=1714721610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7533c3df689a37418d543fa4e0431c3eec4366a9_a31feb21-6615-4f5b-af0d-5b2bd16b5289.webp?v=1714721610","width":2000},{"alt":null,"id":23877282136163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612","width":2000},{"alt":null,"id":23877282725987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8668ffa3521dd0e09372f15b549674606079721_0265db60-a644-421c-a8b0-74aeff4df497.webp?v=1714721615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8668ffa3521dd0e09372f15b549674606079721_0265db60-a644-421c-a8b0-74aeff4df497.webp?v=1714721615","width":2000},{"alt":null,"id":23877283315811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2473f638e92bdfee09630ad6d0002bcd7f24296_005102d0-0501-4feb-9acc-c7d910a4d03c.webp?v=1714721618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2473f638e92bdfee09630ad6d0002bcd7f24296_005102d0-0501-4feb-9acc-c7d910a4d03c.webp?v=1714721618","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885860888675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31472365240419,"product_id":7408471605347,"position":8,"created_at":"2024-05-03T15:33:32+08:00","updated_at":"2024-05-03T15:33:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612","variant_ids":[41885860888675]},"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-PB75","featured_media":{"alt":null,"id":23877282136163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885860888675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31472365240419,"product_id":7408471605347,"position":8,"created_at":"2024-05-03T15:33:32+08:00","updated_at":"2024-05-03T15:33:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612","variant_ids":[41885860888675]},"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-PB75","featured_media":{"alt":null,"id":23877282136163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bd73ecefe40c1d2b28d5e99a1ed3ad29c6ae7_44f1222d-35e7-4966-827a-07cba1522457.webp?v=1714721612"}},"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: "停產"
}