$product = {"id":7892157759587,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日","handle":"iphone-13-mini-mod-nx-magsafe-printable-fw57","description":null,"published_at":"2025-10-01T12:11:37+08:00","created_at":"2025-10-01T09:43:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 13 Mini","merge","reseller-xiuxiubear"],"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":43754704339043,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540993085539,"product_id":7892157759587,"position":1,"created_at":"2025-10-01T09:43:39+08:00","updated_at":"2025-10-01T09:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021","variant_ids":[43754704339043]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-FW57","featured_media":{"alt":null,"id":26110760222819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754704502883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540997902435,"product_id":7892157759587,"position":10,"created_at":"2025-10-01T09:43:44+08:00","updated_at":"2025-10-01T09:43:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8284535086b1cc5b446e96c7546926eb3934d9b6.webp?v=1759283026","variant_ids":[43754704502883]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-FW57","featured_media":{"alt":null,"id":26110765039715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8284535086b1cc5b446e96c7546926eb3934d9b6.webp?v=1759283026"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754704535651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540993871971,"product_id":7892157759587,"position":5,"created_at":"2025-10-01T09:43:42+08:00","updated_at":"2025-10-01T09:43:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193e3a15953629a59e983e8bd64d921ae851373d.webp?v=1759283024","variant_ids":[43754704535651]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-FW57","featured_media":{"alt":null,"id":26110761009251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193e3a15953629a59e983e8bd64d921ae851373d.webp?v=1759283024"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09c70529ada177f9b1f4949fb5cc60c955a35eda.webp?v=1759283021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5146bbe9902a46f4827f666f2f324c830301daa.webp?v=1759283023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf982bc2ee2d421068e08855395f5e2eb301995.webp?v=1759283023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193e3a15953629a59e983e8bd64d921ae851373d.webp?v=1759283024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96214ac6fbc5e14c9f488d61aa85ffb12ace5ae0.webp?v=1759283024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe373bacfe6f4c14da2a5ba0d20d9dd2b2ad5b7.webp?v=1759283024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec7119a779181e321d056c1daacc867840a6a17.webp?v=1759283025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f16b4d3d36355d1bd901c451c6c85bd261ebbe4.webp?v=1759283025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8284535086b1cc5b446e96c7546926eb3934d9b6.webp?v=1759283026"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021","options":["color"],"media":[{"alt":null,"id":26110760222819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021","width":2000},{"alt":null,"id":26110760321123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09c70529ada177f9b1f4949fb5cc60c955a35eda.webp?v=1759283021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09c70529ada177f9b1f4949fb5cc60c955a35eda.webp?v=1759283021","width":2000},{"alt":null,"id":26110760616035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5146bbe9902a46f4827f666f2f324c830301daa.webp?v=1759283023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5146bbe9902a46f4827f666f2f324c830301daa.webp?v=1759283023","width":2000},{"alt":null,"id":26110760779875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf982bc2ee2d421068e08855395f5e2eb301995.webp?v=1759283023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf982bc2ee2d421068e08855395f5e2eb301995.webp?v=1759283023","width":2000},{"alt":null,"id":26110761009251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193e3a15953629a59e983e8bd64d921ae851373d.webp?v=1759283024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193e3a15953629a59e983e8bd64d921ae851373d.webp?v=1759283024","width":2000},{"alt":null,"id":26110761107555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96214ac6fbc5e14c9f488d61aa85ffb12ace5ae0.webp?v=1759283024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96214ac6fbc5e14c9f488d61aa85ffb12ace5ae0.webp?v=1759283024","width":2000},{"alt":null,"id":26110761173091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe373bacfe6f4c14da2a5ba0d20d9dd2b2ad5b7.webp?v=1759283024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe373bacfe6f4c14da2a5ba0d20d9dd2b2ad5b7.webp?v=1759283024","width":2000},{"alt":null,"id":26110761369699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec7119a779181e321d056c1daacc867840a6a17.webp?v=1759283025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec7119a779181e321d056c1daacc867840a6a17.webp?v=1759283025","width":2000},{"alt":null,"id":26110761566307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f16b4d3d36355d1bd901c451c6c85bd261ebbe4.webp?v=1759283025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f16b4d3d36355d1bd901c451c6c85bd261ebbe4.webp?v=1759283025","width":2000},{"alt":null,"id":26110765039715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8284535086b1cc5b446e96c7546926eb3934d9b6.webp?v=1759283026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8284535086b1cc5b446e96c7546926eb3934d9b6.webp?v=1759283026","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43754704339043,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540993085539,"product_id":7892157759587,"position":1,"created_at":"2025-10-01T09:43:39+08:00","updated_at":"2025-10-01T09:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021","variant_ids":[43754704339043]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-FW57","featured_media":{"alt":null,"id":26110760222819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754704502883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540997902435,"product_id":7892157759587,"position":10,"created_at":"2025-10-01T09:43:44+08:00","updated_at":"2025-10-01T09:43:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8284535086b1cc5b446e96c7546926eb3934d9b6.webp?v=1759283026","variant_ids":[43754704502883]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-FW57","featured_media":{"alt":null,"id":26110765039715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8284535086b1cc5b446e96c7546926eb3934d9b6.webp?v=1759283026"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754704535651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540993871971,"product_id":7892157759587,"position":5,"created_at":"2025-10-01T09:43:42+08:00","updated_at":"2025-10-01T09:43:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193e3a15953629a59e983e8bd64d921ae851373d.webp?v=1759283024","variant_ids":[43754704535651]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-FW57","featured_media":{"alt":null,"id":26110761009251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193e3a15953629a59e983e8bd64d921ae851373d.webp?v=1759283024"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43754704339043,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540993085539,"product_id":7892157759587,"position":1,"created_at":"2025-10-01T09:43:39+08:00","updated_at":"2025-10-01T09:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021","variant_ids":[43754704339043]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-FW57","featured_media":{"alt":null,"id":26110760222819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd964a1fe1332d7c3d7152a2ca19676aaf995be3.webp?v=1759283021"}},"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: "停產"
}