$product = {"id":7411303252067,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - X戰機-線條白","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb16","description":null,"published_at":"2024-06-11T17:41:18+08:00","created_at":"2024-05-05T00:03:42+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 14 Plus","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":41897189769315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31480093769827,"product_id":7411303252067,"position":7,"created_at":"2024-05-05T00:03:59+08:00","updated_at":"2024-05-05T00:03:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639","variant_ids":[41897189769315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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":"MPB0126124-PB16","featured_media":{"alt":null,"id":23885344604259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf3832ad39a3290446a2a4f87d4e14a4d84bc71_fa6de828-d023-4fa4-8504-031f5265d072.webp?v=1714838625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15d3ca65397493b5a267f87b52f9dac2a34f09ed_4623d1f7-910c-4308-861b-61c4e3680f6d.webp?v=1714838627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539684a5682fcc2e6c0260e05cdb06f227c31636_2ad515aa-08f7-4d09-b2b7-0cb8391c6908.webp?v=1714838629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e90d988bfd5751216f009782ed86eff9dd32d7_45c2dd5c-4d24-4457-900e-2ec897561562.webp?v=1714838632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c601ed3f5e6f0bf671305fbe2cc6c3be269d9adc_075288f9-758d-470f-9290-b33813170539.webp?v=1714838634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/482ca5a28cbf1a59013452db344d6fcef67d0450_2eba9a96-791e-46f8-8be2-01eeee48ba0d.webp?v=1714838637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3be4a0bc826a16a1f1ea6055584e496c70e0cd62_87b54cd3-85d7-4b28-907d-53da3f5f5d3f.webp?v=1714838641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729aff28765582e758a04f3092913acf0f4f16b5_e9a2960b-9c5d-4186-bde1-8f16a3bbe99f.webp?v=1714838644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538265459ef2632b057889a049ac0952c4fdd0cf_2dcb0511-d7b9-455e-be98-7cde7348d39c.webp?v=1714838646"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf3832ad39a3290446a2a4f87d4e14a4d84bc71_fa6de828-d023-4fa4-8504-031f5265d072.webp?v=1714838625","options":["color"],"media":[{"alt":null,"id":23885341196387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf3832ad39a3290446a2a4f87d4e14a4d84bc71_fa6de828-d023-4fa4-8504-031f5265d072.webp?v=1714838625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf3832ad39a3290446a2a4f87d4e14a4d84bc71_fa6de828-d023-4fa4-8504-031f5265d072.webp?v=1714838625","width":2000},{"alt":null,"id":23885341556835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15d3ca65397493b5a267f87b52f9dac2a34f09ed_4623d1f7-910c-4308-861b-61c4e3680f6d.webp?v=1714838627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15d3ca65397493b5a267f87b52f9dac2a34f09ed_4623d1f7-910c-4308-861b-61c4e3680f6d.webp?v=1714838627","width":2000},{"alt":null,"id":23885342474339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539684a5682fcc2e6c0260e05cdb06f227c31636_2ad515aa-08f7-4d09-b2b7-0cb8391c6908.webp?v=1714838629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539684a5682fcc2e6c0260e05cdb06f227c31636_2ad515aa-08f7-4d09-b2b7-0cb8391c6908.webp?v=1714838629","width":2000},{"alt":null,"id":23885343064163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e90d988bfd5751216f009782ed86eff9dd32d7_45c2dd5c-4d24-4457-900e-2ec897561562.webp?v=1714838632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e90d988bfd5751216f009782ed86eff9dd32d7_45c2dd5c-4d24-4457-900e-2ec897561562.webp?v=1714838632","width":2000},{"alt":null,"id":23885343522915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c601ed3f5e6f0bf671305fbe2cc6c3be269d9adc_075288f9-758d-470f-9290-b33813170539.webp?v=1714838634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c601ed3f5e6f0bf671305fbe2cc6c3be269d9adc_075288f9-758d-470f-9290-b33813170539.webp?v=1714838634","width":2000},{"alt":null,"id":23885344079971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/482ca5a28cbf1a59013452db344d6fcef67d0450_2eba9a96-791e-46f8-8be2-01eeee48ba0d.webp?v=1714838637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/482ca5a28cbf1a59013452db344d6fcef67d0450_2eba9a96-791e-46f8-8be2-01eeee48ba0d.webp?v=1714838637","width":2000},{"alt":null,"id":23885344604259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639","width":2000},{"alt":null,"id":23885345063011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3be4a0bc826a16a1f1ea6055584e496c70e0cd62_87b54cd3-85d7-4b28-907d-53da3f5f5d3f.webp?v=1714838641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3be4a0bc826a16a1f1ea6055584e496c70e0cd62_87b54cd3-85d7-4b28-907d-53da3f5f5d3f.webp?v=1714838641","width":2000},{"alt":null,"id":23885345423459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729aff28765582e758a04f3092913acf0f4f16b5_e9a2960b-9c5d-4186-bde1-8f16a3bbe99f.webp?v=1714838644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/729aff28765582e758a04f3092913acf0f4f16b5_e9a2960b-9c5d-4186-bde1-8f16a3bbe99f.webp?v=1714838644","width":2000},{"alt":null,"id":23885346013283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538265459ef2632b057889a049ac0952c4fdd0cf_2dcb0511-d7b9-455e-be98-7cde7348d39c.webp?v=1714838646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538265459ef2632b057889a049ac0952c4fdd0cf_2dcb0511-d7b9-455e-be98-7cde7348d39c.webp?v=1714838646","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41897189769315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31480093769827,"product_id":7411303252067,"position":7,"created_at":"2024-05-05T00:03:59+08:00","updated_at":"2024-05-05T00:03:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639","variant_ids":[41897189769315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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":"MPB0126124-PB16","featured_media":{"alt":null,"id":23885344604259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897189769315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31480093769827,"product_id":7411303252067,"position":7,"created_at":"2024-05-05T00:03:59+08:00","updated_at":"2024-05-05T00:03:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639","variant_ids":[41897189769315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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":"MPB0126124-PB16","featured_media":{"alt":null,"id":23885344604259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75c2a95645096588b4a6dc233057a81b3c27290d_ac942112-61a3-4e6b-b73d-5eb3016e1471.webp?v=1714838639"}},"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: "停產"
}