$product = {"id":7921992237155,"title":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓","handle":"iphone-14-pro-mod-nx-toc07","description":null,"published_at":"2025-11-14T08:16:58+08:00","created_at":"2025-11-13T10:26:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Pro","merge","reseller-tocorocomugi"],"price":90000,"price_min":90000,"price_max":90000,"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":43834827866211,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794241818723,"product_id":7921992237155,"position":4,"created_at":"2025-11-13T10:26:13+08:00","updated_at":"2025-11-13T10:26:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775","variant_ids":[43834827866211]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-TOC07","featured_media":{"alt":null,"id":26359660937315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834827931747,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794242080867,"product_id":7921992237155,"position":5,"created_at":"2025-11-13T10:26:14+08:00","updated_at":"2025-11-13T10:26:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc3b8f8e6e890591e313af306a96683a2af0c18.webp?v=1763000776","variant_ids":[43834827931747]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-TOC07","featured_media":{"alt":null,"id":26359661199459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc3b8f8e6e890591e313af306a96683a2af0c18.webp?v=1763000776"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834828030051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794242670691,"product_id":7921992237155,"position":8,"created_at":"2025-11-13T10:26:16+08:00","updated_at":"2025-11-13T10:26:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a1ffef050231ef4711736a544b94f55ff8a5a.webp?v=1763000779","variant_ids":[43834828030051]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-TOC07","featured_media":{"alt":null,"id":26359661887587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a1ffef050231ef4711736a544b94f55ff8a5a.webp?v=1763000779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0628f2a8aa6fd5d0d994f09d6d27d7f578bbf56e.webp?v=1763000773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88d1c943e2114de5b9da377afed9f2d237bc592.webp?v=1763000774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c3fcdea9f1304c084006305810ac2c79af427e5.webp?v=1763000775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc3b8f8e6e890591e313af306a96683a2af0c18.webp?v=1763000776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101b53bce53fbaf384efa15ef5ccd3c10196f195.webp?v=1763000777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85689b75f2903310fa3ead7be547db9e15f8ae7.webp?v=1763000777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a1ffef050231ef4711736a544b94f55ff8a5a.webp?v=1763000779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576c330239b744b84cc2988eafcad7f88b5f1da9.webp?v=1763000779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4201a5f8364257255e1dd1cd63d6c5c2f9cb9a83.webp?v=1763000783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/245a62bf88c9f6b92de45106e2a20e4bba5d6fdb.webp?v=1763000781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d035ec72f07b604fe4f6af177ec273734aeceb86.webp?v=1763000782"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0628f2a8aa6fd5d0d994f09d6d27d7f578bbf56e.webp?v=1763000773","options":["color"],"media":[{"alt":null,"id":26359659921507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0628f2a8aa6fd5d0d994f09d6d27d7f578bbf56e.webp?v=1763000773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0628f2a8aa6fd5d0d994f09d6d27d7f578bbf56e.webp?v=1763000773","width":2000},{"alt":null,"id":26359660183651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88d1c943e2114de5b9da377afed9f2d237bc592.webp?v=1763000774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88d1c943e2114de5b9da377afed9f2d237bc592.webp?v=1763000774","width":2000},{"alt":null,"id":26359660576867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c3fcdea9f1304c084006305810ac2c79af427e5.webp?v=1763000775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c3fcdea9f1304c084006305810ac2c79af427e5.webp?v=1763000775","width":2000},{"alt":null,"id":26359660937315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775","width":2000},{"alt":null,"id":26359661199459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc3b8f8e6e890591e313af306a96683a2af0c18.webp?v=1763000776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc3b8f8e6e890591e313af306a96683a2af0c18.webp?v=1763000776","width":2000},{"alt":null,"id":26359661363299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101b53bce53fbaf384efa15ef5ccd3c10196f195.webp?v=1763000777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101b53bce53fbaf384efa15ef5ccd3c10196f195.webp?v=1763000777","width":2000},{"alt":null,"id":26359661592675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85689b75f2903310fa3ead7be547db9e15f8ae7.webp?v=1763000777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85689b75f2903310fa3ead7be547db9e15f8ae7.webp?v=1763000777","width":2000},{"alt":null,"id":26359661887587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a1ffef050231ef4711736a544b94f55ff8a5a.webp?v=1763000779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a1ffef050231ef4711736a544b94f55ff8a5a.webp?v=1763000779","width":2000},{"alt":null,"id":26359662051427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576c330239b744b84cc2988eafcad7f88b5f1da9.webp?v=1763000779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576c330239b744b84cc2988eafcad7f88b5f1da9.webp?v=1763000779","width":2000},{"alt":null,"id":26359662215267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4201a5f8364257255e1dd1cd63d6c5c2f9cb9a83.webp?v=1763000783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4201a5f8364257255e1dd1cd63d6c5c2f9cb9a83.webp?v=1763000783","width":2000},{"alt":null,"id":26359662379107,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/245a62bf88c9f6b92de45106e2a20e4bba5d6fdb.webp?v=1763000781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/245a62bf88c9f6b92de45106e2a20e4bba5d6fdb.webp?v=1763000781","width":2000},{"alt":null,"id":26359662510179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d035ec72f07b604fe4f6af177ec273734aeceb86.webp?v=1763000782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d035ec72f07b604fe4f6af177ec273734aeceb86.webp?v=1763000782","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43834827866211,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794241818723,"product_id":7921992237155,"position":4,"created_at":"2025-11-13T10:26:13+08:00","updated_at":"2025-11-13T10:26:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775","variant_ids":[43834827866211]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-TOC07","featured_media":{"alt":null,"id":26359660937315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834827931747,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794242080867,"product_id":7921992237155,"position":5,"created_at":"2025-11-13T10:26:14+08:00","updated_at":"2025-11-13T10:26:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc3b8f8e6e890591e313af306a96683a2af0c18.webp?v=1763000776","variant_ids":[43834827931747]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-TOC07","featured_media":{"alt":null,"id":26359661199459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc3b8f8e6e890591e313af306a96683a2af0c18.webp?v=1763000776"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834828030051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794242670691,"product_id":7921992237155,"position":8,"created_at":"2025-11-13T10:26:16+08:00","updated_at":"2025-11-13T10:26:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a1ffef050231ef4711736a544b94f55ff8a5a.webp?v=1763000779","variant_ids":[43834828030051]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-TOC07","featured_media":{"alt":null,"id":26359661887587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a1ffef050231ef4711736a544b94f55ff8a5a.webp?v=1763000779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43834827866211,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794241818723,"product_id":7921992237155,"position":4,"created_at":"2025-11-13T10:26:13+08:00","updated_at":"2025-11-13T10:26:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775","variant_ids":[43834827866211]},"available":true,"name":"iPhone 14 Pro Mod NX TOCOROCOMUGI 橙香貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-TOC07","featured_media":{"alt":null,"id":26359660937315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4605dd19e2b82ba024b9f1f817394c0f8c0e6274.webp?v=1763000775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(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: "停產"
}