$product = {"id":7408679813219,"title":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy","handle":"iphone-11-pro-max-mod-nx-printable-pb61","description":"","published_at":"2024-06-11T16:44:00+08:00","created_at":"2024-05-03T17:32:40+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 11 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":41888129056867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31473302012003,"product_id":7408679813219,"position":5,"created_at":"2024-05-03T17:32:51+08:00","updated_at":"2025-01-22T14:36:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817","variant_ids":[41888129056867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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":"NPB0114924-PB61","featured_media":{"alt":null,"id":23878225494115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d686a91612c46bd635d20e601a3a829116247b2c_ead17156-ecbf-46c7-951a-04e1f2be0b50.webp?v=1737527817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24f5323fba2dca81e850ff5b30efa0ed5089f4bd_e9d9bbae-bb61-4a4a-b6b2-f3a9f9115381.webp?v=1737527817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27cb9c8ad158fbc2589da7941557c7c09c319b13_571766ec-c91d-40b3-8001-82f49bba9eb7.webp?v=1737527817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ec2589ad55ad5c0702f0be797a0081b1464cf84_570e6670-383d-404d-9ed3-e718d4c92da7.webp?v=1737527817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb38dc17e17e833672ac3ecedaf7402aa4ff79b_c7a3c425-07de-4a0f-b9fc-f957e08b4710.webp?v=1737527818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61db0e60e6fb858ea793872f76b9d9c62a7b1b03_ed7b33c9-c64b-4f84-91ca-16d423d7cacb.webp?v=1737527818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a307aaa7b149cc941d4d4eb7c74c20e2e67355_7793ccbc-356c-43fc-8d55-9470f75e7c0d.webp?v=1737527818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92bed69b0ec0c692d93e09600dbc1a61a614c1bb_4d6c0a09-2aae-4706-bb7f-b4e61b360c01.webp?v=1737527818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b438a0051fb8cd0cc0bd5c96102bc5f299ff464d_00b5aa45-1c01-4093-ba0c-dea8c56cf174.webp?v=1737527818"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d686a91612c46bd635d20e601a3a829116247b2c_ead17156-ecbf-46c7-951a-04e1f2be0b50.webp?v=1737527817","options":["color"],"media":[{"alt":null,"id":23878223429731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d686a91612c46bd635d20e601a3a829116247b2c_ead17156-ecbf-46c7-951a-04e1f2be0b50.webp?v=1737527817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d686a91612c46bd635d20e601a3a829116247b2c_ead17156-ecbf-46c7-951a-04e1f2be0b50.webp?v=1737527817","width":2000},{"alt":null,"id":23878223921251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24f5323fba2dca81e850ff5b30efa0ed5089f4bd_e9d9bbae-bb61-4a4a-b6b2-f3a9f9115381.webp?v=1737527817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24f5323fba2dca81e850ff5b30efa0ed5089f4bd_e9d9bbae-bb61-4a4a-b6b2-f3a9f9115381.webp?v=1737527817","width":2000},{"alt":null,"id":23878224478307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27cb9c8ad158fbc2589da7941557c7c09c319b13_571766ec-c91d-40b3-8001-82f49bba9eb7.webp?v=1737527817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27cb9c8ad158fbc2589da7941557c7c09c319b13_571766ec-c91d-40b3-8001-82f49bba9eb7.webp?v=1737527817","width":2000},{"alt":null,"id":23878224904291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ec2589ad55ad5c0702f0be797a0081b1464cf84_570e6670-383d-404d-9ed3-e718d4c92da7.webp?v=1737527817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ec2589ad55ad5c0702f0be797a0081b1464cf84_570e6670-383d-404d-9ed3-e718d4c92da7.webp?v=1737527817","width":2000},{"alt":null,"id":23878225494115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817","width":2000},{"alt":null,"id":23878226837603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb38dc17e17e833672ac3ecedaf7402aa4ff79b_c7a3c425-07de-4a0f-b9fc-f957e08b4710.webp?v=1737527818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb38dc17e17e833672ac3ecedaf7402aa4ff79b_c7a3c425-07de-4a0f-b9fc-f957e08b4710.webp?v=1737527818","width":2000},{"alt":null,"id":23878227460195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61db0e60e6fb858ea793872f76b9d9c62a7b1b03_ed7b33c9-c64b-4f84-91ca-16d423d7cacb.webp?v=1737527818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61db0e60e6fb858ea793872f76b9d9c62a7b1b03_ed7b33c9-c64b-4f84-91ca-16d423d7cacb.webp?v=1737527818","width":2000},{"alt":null,"id":23878228115555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a307aaa7b149cc941d4d4eb7c74c20e2e67355_7793ccbc-356c-43fc-8d55-9470f75e7c0d.webp?v=1737527818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a307aaa7b149cc941d4d4eb7c74c20e2e67355_7793ccbc-356c-43fc-8d55-9470f75e7c0d.webp?v=1737527818","width":2000},{"alt":null,"id":25221922914403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92bed69b0ec0c692d93e09600dbc1a61a614c1bb_4d6c0a09-2aae-4706-bb7f-b4e61b360c01.webp?v=1737527818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92bed69b0ec0c692d93e09600dbc1a61a614c1bb_4d6c0a09-2aae-4706-bb7f-b4e61b360c01.webp?v=1737527818","width":2000},{"alt":null,"id":23878228803683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b438a0051fb8cd0cc0bd5c96102bc5f299ff464d_00b5aa45-1c01-4093-ba0c-dea8c56cf174.webp?v=1737527818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b438a0051fb8cd0cc0bd5c96102bc5f299ff464d_00b5aa45-1c01-4093-ba0c-dea8c56cf174.webp?v=1737527818","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""};
$bumper = null;
$variants = [{"id":41888129056867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31473302012003,"product_id":7408679813219,"position":5,"created_at":"2024-05-03T17:32:51+08:00","updated_at":"2025-01-22T14:36:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817","variant_ids":[41888129056867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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":"NPB0114924-PB61","featured_media":{"alt":null,"id":23878225494115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41888129056867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31473302012003,"product_id":7408679813219,"position":5,"created_at":"2024-05-03T17:32:51+08:00","updated_at":"2025-01-22T14:36:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817","variant_ids":[41888129056867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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":"NPB0114924-PB61","featured_media":{"alt":null,"id":23878225494115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cc5ec60599fb6be31106b7ec78f70ba7bf22ed_88e13098-c551-4786-9d33-ac32197b2405.webp?v=1737527817"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}