$product = {"id":7414992601187,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb110","description":null,"published_at":"2024-06-11T17:55:04+08:00","created_at":"2024-05-05T20:02:23+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 12 mini","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":41910717743203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31487871058019,"product_id":7414992601187,"position":5,"created_at":"2024-05-05T20:02:36+08:00","updated_at":"2024-05-05T20:02:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556","variant_ids":[41910717743203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB110","featured_media":{"alt":null,"id":23893215051875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28480cb1b3a31f858ebad09e1a97962eaae5e97d_ff145806-9a05-4631-90c3-c90e0b6dfeb1.webp?v=1714910545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed8de5159eac2d3e0f71ea16d1d9f8a70bd3ca8_11a25457-d0e6-4079-bdaf-c81e5dd77deb.webp?v=1714910549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dcde09c1633c6b69219e1e08d9418d3ff49c0a_6491a9f9-ea21-40b0-a08f-24d5427a758f.webp?v=1714910551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88312d12292179cd2622306361904697a777c76b_0a8e92bf-c672-43ed-b520-b524cda1e13f.webp?v=1714910553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fe1eaf0854afe7e4946de376ba9115d773b198_a8c93b33-b787-47e6-80c4-c5410204002c.webp?v=1714910558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc392726bd9248fa32fc570cb422a73d6b00593_98d1c59e-1acc-4c14-a5a5-aac8a0281482.webp?v=1714910561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab5355832afb07ad5ae6f3a5b68663bc208acbae_2993735a-6da5-4320-860b-c01e61587ead.webp?v=1714910564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b34c883b7daf6cb05ef02e54a411e9f33a917a_89ad3881-0fa5-4e6b-902a-00c6db890727.webp?v=1714910567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/449346e7c97669f5f90e198db20a4576316b6550_39ac734f-78d7-4338-8138-77841c70b4f3.webp?v=1714910570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3609f4cd4f28d24906ee64a42cef61dd09df4d7_f98cd13b-6e5e-4b2e-a3e8-1f41e1e4c318.webp?v=1714910573"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28480cb1b3a31f858ebad09e1a97962eaae5e97d_ff145806-9a05-4631-90c3-c90e0b6dfeb1.webp?v=1714910545","options":["color"],"media":[{"alt":null,"id":23893212659811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28480cb1b3a31f858ebad09e1a97962eaae5e97d_ff145806-9a05-4631-90c3-c90e0b6dfeb1.webp?v=1714910545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28480cb1b3a31f858ebad09e1a97962eaae5e97d_ff145806-9a05-4631-90c3-c90e0b6dfeb1.webp?v=1714910545","width":2000},{"alt":null,"id":23893213347939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed8de5159eac2d3e0f71ea16d1d9f8a70bd3ca8_11a25457-d0e6-4079-bdaf-c81e5dd77deb.webp?v=1714910549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed8de5159eac2d3e0f71ea16d1d9f8a70bd3ca8_11a25457-d0e6-4079-bdaf-c81e5dd77deb.webp?v=1714910549","width":2000},{"alt":null,"id":23893213872227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dcde09c1633c6b69219e1e08d9418d3ff49c0a_6491a9f9-ea21-40b0-a08f-24d5427a758f.webp?v=1714910551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0dcde09c1633c6b69219e1e08d9418d3ff49c0a_6491a9f9-ea21-40b0-a08f-24d5427a758f.webp?v=1714910551","width":2000},{"alt":null,"id":23893214363747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88312d12292179cd2622306361904697a777c76b_0a8e92bf-c672-43ed-b520-b524cda1e13f.webp?v=1714910553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88312d12292179cd2622306361904697a777c76b_0a8e92bf-c672-43ed-b520-b524cda1e13f.webp?v=1714910553","width":2000},{"alt":null,"id":23893215051875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556","width":2000},{"alt":null,"id":23893215576163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fe1eaf0854afe7e4946de376ba9115d773b198_a8c93b33-b787-47e6-80c4-c5410204002c.webp?v=1714910558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fe1eaf0854afe7e4946de376ba9115d773b198_a8c93b33-b787-47e6-80c4-c5410204002c.webp?v=1714910558","width":2000},{"alt":null,"id":23893216428131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc392726bd9248fa32fc570cb422a73d6b00593_98d1c59e-1acc-4c14-a5a5-aac8a0281482.webp?v=1714910561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cc392726bd9248fa32fc570cb422a73d6b00593_98d1c59e-1acc-4c14-a5a5-aac8a0281482.webp?v=1714910561","width":2000},{"alt":null,"id":23893217345635,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab5355832afb07ad5ae6f3a5b68663bc208acbae_2993735a-6da5-4320-860b-c01e61587ead.webp?v=1714910564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab5355832afb07ad5ae6f3a5b68663bc208acbae_2993735a-6da5-4320-860b-c01e61587ead.webp?v=1714910564","width":2000},{"alt":null,"id":23893217902691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b34c883b7daf6cb05ef02e54a411e9f33a917a_89ad3881-0fa5-4e6b-902a-00c6db890727.webp?v=1714910567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b34c883b7daf6cb05ef02e54a411e9f33a917a_89ad3881-0fa5-4e6b-902a-00c6db890727.webp?v=1714910567","width":2000},{"alt":null,"id":23893218525283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/449346e7c97669f5f90e198db20a4576316b6550_39ac734f-78d7-4338-8138-77841c70b4f3.webp?v=1714910570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/449346e7c97669f5f90e198db20a4576316b6550_39ac734f-78d7-4338-8138-77841c70b4f3.webp?v=1714910570","width":2000},{"alt":null,"id":23893219049571,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3609f4cd4f28d24906ee64a42cef61dd09df4d7_f98cd13b-6e5e-4b2e-a3e8-1f41e1e4c318.webp?v=1714910573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3609f4cd4f28d24906ee64a42cef61dd09df4d7_f98cd13b-6e5e-4b2e-a3e8-1f41e1e4c318.webp?v=1714910573","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910717743203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31487871058019,"product_id":7414992601187,"position":5,"created_at":"2024-05-05T20:02:36+08:00","updated_at":"2024-05-05T20:02:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556","variant_ids":[41910717743203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB110","featured_media":{"alt":null,"id":23893215051875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910717743203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31487871058019,"product_id":7414992601187,"position":5,"created_at":"2024-05-05T20:02:36+08:00","updated_at":"2024-05-05T20:02:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556","variant_ids":[41910717743203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB110","featured_media":{"alt":null,"id":23893215051875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d0f633784ebb6d369b2932a5f8a265bfa33f81_ce958aa9-90ad-442c-8e3e-7b00cee45b59.webp?v=1714910556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}