$product = {"id":7414032793699,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb110","description":null,"published_at":"2024-06-11T17:48:16+08:00","created_at":"2024-05-05T14:04:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41903555018851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31484511944803,"product_id":7414032793699,"position":9,"created_at":"2024-05-05T14:05:19+08:00","updated_at":"2024-05-05T14:05:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119","variant_ids":[41903555018851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB110","featured_media":{"alt":null,"id":23889806164067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903555379299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510240867,"product_id":7414032793699,"position":6,"created_at":"2024-05-05T14:05:11+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e4ee3b9c6b38b60a9c9ad3249d23afd95279f7_80684949-c719-4c4a-b5f3-79ce821a1be5.webp?v=1714889112","variant_ids":[41903555379299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB110","featured_media":{"alt":null,"id":23889804361827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e4ee3b9c6b38b60a9c9ad3249d23afd95279f7_80684949-c719-4c4a-b5f3-79ce821a1be5.webp?v=1714889112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe97c79cb3bed0de549483206692aa58830a203_1ebbadc1-a6d3-48e9-b3e4-d49ab8f5767b.webp?v=1714889100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10258f14d4c2a892672c6c1e7cbc544774c2ad21_01a81877-aaba-4487-96d1-f63730028db4.webp?v=1714889102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/933457e5451b80265d410e48f64bd95419861e66_ebbf5b9a-c4a3-457b-b0ff-2836bb81fc79.webp?v=1714889104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9eaee863c4d4874c4514b60c1c1e4898f707ed8_7689a7f2-9b85-4fcd-9d5c-dd14008f96fb.webp?v=1714889107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802109176eaf7f9a9397566171417790748c968c_89744a79-c2b9-4719-a0ce-ed0e3bf89559.webp?v=1714889109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e4ee3b9c6b38b60a9c9ad3249d23afd95279f7_80684949-c719-4c4a-b5f3-79ce821a1be5.webp?v=1714889112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a95b3ab0c042793935b69479e961262c72232a7_110552a8-6480-4743-9111-9019908ff354.webp?v=1714889114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9026a79c6d7fa60beeea916c747267f034ec802a_aa561b7b-4462-4eea-b9e2-9d22f1a9f818.webp?v=1714889116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ce30611ca74239b9c33617091176a631fdeee8_a610f345-1429-45b0-9503-671aa9d958a4.webp?v=1714889121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbeba11056e4f9210b2111f292e3e925141a0bf7_504dde87-a1e2-4db4-9d71-1ce13c747b45.webp?v=1714889123"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe97c79cb3bed0de549483206692aa58830a203_1ebbadc1-a6d3-48e9-b3e4-d49ab8f5767b.webp?v=1714889100","options":["color"],"media":[{"alt":null,"id":23889801805923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe97c79cb3bed0de549483206692aa58830a203_1ebbadc1-a6d3-48e9-b3e4-d49ab8f5767b.webp?v=1714889100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe97c79cb3bed0de549483206692aa58830a203_1ebbadc1-a6d3-48e9-b3e4-d49ab8f5767b.webp?v=1714889100","width":2000},{"alt":null,"id":23889802395747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10258f14d4c2a892672c6c1e7cbc544774c2ad21_01a81877-aaba-4487-96d1-f63730028db4.webp?v=1714889102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10258f14d4c2a892672c6c1e7cbc544774c2ad21_01a81877-aaba-4487-96d1-f63730028db4.webp?v=1714889102","width":2000},{"alt":null,"id":23889802887267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/933457e5451b80265d410e48f64bd95419861e66_ebbf5b9a-c4a3-457b-b0ff-2836bb81fc79.webp?v=1714889104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/933457e5451b80265d410e48f64bd95419861e66_ebbf5b9a-c4a3-457b-b0ff-2836bb81fc79.webp?v=1714889104","width":2000},{"alt":null,"id":23889803247715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9eaee863c4d4874c4514b60c1c1e4898f707ed8_7689a7f2-9b85-4fcd-9d5c-dd14008f96fb.webp?v=1714889107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9eaee863c4d4874c4514b60c1c1e4898f707ed8_7689a7f2-9b85-4fcd-9d5c-dd14008f96fb.webp?v=1714889107","width":2000},{"alt":null,"id":23889803837539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802109176eaf7f9a9397566171417790748c968c_89744a79-c2b9-4719-a0ce-ed0e3bf89559.webp?v=1714889109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/802109176eaf7f9a9397566171417790748c968c_89744a79-c2b9-4719-a0ce-ed0e3bf89559.webp?v=1714889109","width":2000},{"alt":null,"id":23889804361827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e4ee3b9c6b38b60a9c9ad3249d23afd95279f7_80684949-c719-4c4a-b5f3-79ce821a1be5.webp?v=1714889112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e4ee3b9c6b38b60a9c9ad3249d23afd95279f7_80684949-c719-4c4a-b5f3-79ce821a1be5.webp?v=1714889112","width":2000},{"alt":null,"id":23889804886115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a95b3ab0c042793935b69479e961262c72232a7_110552a8-6480-4743-9111-9019908ff354.webp?v=1714889114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a95b3ab0c042793935b69479e961262c72232a7_110552a8-6480-4743-9111-9019908ff354.webp?v=1714889114","width":2000},{"alt":null,"id":23889805607011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9026a79c6d7fa60beeea916c747267f034ec802a_aa561b7b-4462-4eea-b9e2-9d22f1a9f818.webp?v=1714889116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9026a79c6d7fa60beeea916c747267f034ec802a_aa561b7b-4462-4eea-b9e2-9d22f1a9f818.webp?v=1714889116","width":2000},{"alt":null,"id":23889806164067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119","width":2000},{"alt":null,"id":23889806622819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ce30611ca74239b9c33617091176a631fdeee8_a610f345-1429-45b0-9503-671aa9d958a4.webp?v=1714889121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ce30611ca74239b9c33617091176a631fdeee8_a610f345-1429-45b0-9503-671aa9d958a4.webp?v=1714889121","width":2000},{"alt":null,"id":23889807048803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbeba11056e4f9210b2111f292e3e925141a0bf7_504dde87-a1e2-4db4-9d71-1ce13c747b45.webp?v=1714889123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbeba11056e4f9210b2111f292e3e925141a0bf7_504dde87-a1e2-4db4-9d71-1ce13c747b45.webp?v=1714889123","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41903555018851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31484511944803,"product_id":7414032793699,"position":9,"created_at":"2024-05-05T14:05:19+08:00","updated_at":"2024-05-05T14:05:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119","variant_ids":[41903555018851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB110","featured_media":{"alt":null,"id":23889806164067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903555379299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510240867,"product_id":7414032793699,"position":6,"created_at":"2024-05-05T14:05:11+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e4ee3b9c6b38b60a9c9ad3249d23afd95279f7_80684949-c719-4c4a-b5f3-79ce821a1be5.webp?v=1714889112","variant_ids":[41903555379299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB110","featured_media":{"alt":null,"id":23889804361827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e4ee3b9c6b38b60a9c9ad3249d23afd95279f7_80684949-c719-4c4a-b5f3-79ce821a1be5.webp?v=1714889112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903555018851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31484511944803,"product_id":7414032793699,"position":9,"created_at":"2024-05-05T14:05:19+08:00","updated_at":"2024-05-05T14:05:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119","variant_ids":[41903555018851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB110","featured_media":{"alt":null,"id":23889806164067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d8175120b056be9217f8e3f56e3a5412010794_18baf571-fa03-48c0-b076-03521066cf51.webp?v=1714889119"}},"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: "停產"
}