$product = {"id":7921965301859,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 布丁貓","handle":"iphone-14-plus-mod-nx-magsafe-toc01","description":null,"published_at":"2025-11-14T08:21:39+08:00","created_at":"2025-11-13T10:19:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Plus","merge","reseller-tocorocomugi"],"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":43834720714851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34794126901347,"product_id":7921965301859,"position":7,"created_at":"2025-11-13T10:19:43+08:00","updated_at":"2025-11-13T10:19:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384","variant_ids":[43834720714851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 布丁貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-TOC01","featured_media":{"alt":null,"id":26359546445923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6fe7c423cdb392563d53b72373686f1a719ca.webp?v=1763000381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2107ccafa4ab9f5bfc61b0d9e7211e096f30b006.webp?v=1763000382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a32affadeeb14314d69203bb35adeb59eff7d3f0.webp?v=1763000382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83194042c3cc98812de33590f143ea6bc7dd238c.webp?v=1763000383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d219102c43303ee39b6fac240877d634fa7799a1.webp?v=1763000383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd55cc1c511a8747e79f43ab518862e06263c3e7.webp?v=1763000384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ee94ef9b0b7b3c312bd818774cf2d58140216b.webp?v=1763000385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4962123d59934ef63f119d236da12de75f0b4719.webp?v=1763000386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a93222ab76736e46b14c6ddb86b0ee6d57572aa0.webp?v=1763000386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/724da30e36ae8cc3a1dce80df285fb5233530f10.webp?v=1763000387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3697138038dfe36c6186baef5920397060bcde.webp?v=1763000388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85de0320699e5a117d445ccc48c8a9769e3bae51.webp?v=1763000388"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6fe7c423cdb392563d53b72373686f1a719ca.webp?v=1763000381","options":["color"],"media":[{"alt":null,"id":26359545593955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6fe7c423cdb392563d53b72373686f1a719ca.webp?v=1763000381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6fe7c423cdb392563d53b72373686f1a719ca.webp?v=1763000381","width":2000},{"alt":null,"id":26359545725027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2107ccafa4ab9f5bfc61b0d9e7211e096f30b006.webp?v=1763000382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2107ccafa4ab9f5bfc61b0d9e7211e096f30b006.webp?v=1763000382","width":2000},{"alt":null,"id":26359545823331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a32affadeeb14314d69203bb35adeb59eff7d3f0.webp?v=1763000382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a32affadeeb14314d69203bb35adeb59eff7d3f0.webp?v=1763000382","width":2000},{"alt":null,"id":26359545954403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83194042c3cc98812de33590f143ea6bc7dd238c.webp?v=1763000383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83194042c3cc98812de33590f143ea6bc7dd238c.webp?v=1763000383","width":2000},{"alt":null,"id":26359546085475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d219102c43303ee39b6fac240877d634fa7799a1.webp?v=1763000383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d219102c43303ee39b6fac240877d634fa7799a1.webp?v=1763000383","width":2000},{"alt":null,"id":26359546249315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd55cc1c511a8747e79f43ab518862e06263c3e7.webp?v=1763000384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd55cc1c511a8747e79f43ab518862e06263c3e7.webp?v=1763000384","width":2000},{"alt":null,"id":26359546445923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384","width":2000},{"alt":null,"id":26359546576995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ee94ef9b0b7b3c312bd818774cf2d58140216b.webp?v=1763000385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ee94ef9b0b7b3c312bd818774cf2d58140216b.webp?v=1763000385","width":2000},{"alt":null,"id":26359546642531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4962123d59934ef63f119d236da12de75f0b4719.webp?v=1763000386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4962123d59934ef63f119d236da12de75f0b4719.webp?v=1763000386","width":2000},{"alt":null,"id":26359546675299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a93222ab76736e46b14c6ddb86b0ee6d57572aa0.webp?v=1763000386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a93222ab76736e46b14c6ddb86b0ee6d57572aa0.webp?v=1763000386","width":2000},{"alt":null,"id":26359546839139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/724da30e36ae8cc3a1dce80df285fb5233530f10.webp?v=1763000387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/724da30e36ae8cc3a1dce80df285fb5233530f10.webp?v=1763000387","width":2000},{"alt":null,"id":26359547101283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3697138038dfe36c6186baef5920397060bcde.webp?v=1763000388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3697138038dfe36c6186baef5920397060bcde.webp?v=1763000388","width":2000},{"alt":null,"id":26359547363427,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85de0320699e5a117d445ccc48c8a9769e3bae51.webp?v=1763000388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85de0320699e5a117d445ccc48c8a9769e3bae51.webp?v=1763000388","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43834720714851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34794126901347,"product_id":7921965301859,"position":7,"created_at":"2025-11-13T10:19:43+08:00","updated_at":"2025-11-13T10:19:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384","variant_ids":[43834720714851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 布丁貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-TOC01","featured_media":{"alt":null,"id":26359546445923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43834720714851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34794126901347,"product_id":7921965301859,"position":7,"created_at":"2025-11-13T10:19:43+08:00","updated_at":"2025-11-13T10:19:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384","variant_ids":[43834720714851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 布丁貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-TOC01","featured_media":{"alt":null,"id":26359546445923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161442dbc36b72eac71e4b5310842b939dc65fac.webp?v=1763000384"}},"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: "停產"
}