$product = {"id":7830898901091,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心動頻率(紅)","handle":"iphone-14-pro-mod-nx-magsafe-bumper-original-design-dk03","description":null,"published_at":"2025-07-04T10:10:18+08:00","created_at":"2025-07-03T16:13:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer-valentines-day-collection","device-iPhone 14 Pro","discountable-item","merge","original-design","reseller-valentines-day-collection"],"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":43507431342179,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116641128547,"product_id":7830898901091,"position":12,"created_at":"2025-07-03T16:13:18+08:00","updated_at":"2025-07-03T16:13:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399","variant_ids":[43507431342179]},"available":true,"name":"iPhone 14 Pro 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":"MPB01262J5-DK03","featured_media":{"alt":null,"id":25769563455587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507431538787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116639719523,"product_id":7830898901091,"position":10,"created_at":"2025-07-03T16:13:17+08:00","updated_at":"2025-07-03T16:13:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c2934ac7869822f6236e88c5b4463d6ebe71df.webp?v=1751530398","variant_ids":[43507431538787]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-DK03","featured_media":{"alt":null,"id":25769563127907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c2934ac7869822f6236e88c5b4463d6ebe71df.webp?v=1751530398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507431637091,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116639195235,"product_id":7830898901091,"position":8,"created_at":"2025-07-03T16:13:15+08:00","updated_at":"2025-07-03T16:13:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4910305e885d532994eeaa948265fad2e696851.webp?v=1751530397","variant_ids":[43507431637091]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126204-DK03","featured_media":{"alt":null,"id":25769562996835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4910305e885d532994eeaa948265fad2e696851.webp?v=1751530397"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e026df48a329540a8bd3df7643bf5960bda09e8.webp?v=1751530393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5da0d42dc15ab378a32b4694227a50d00e9a798.webp?v=1751530394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155a91f497410372a3b39f429a145626ec07036.webp?v=1751530394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060134ef5f16edb8a46efd91054ee52c4e7c7d4b.webp?v=1751530395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9769b66fc6e210925a664c40cc001450ffa177.webp?v=1751530395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ab303a041f05c599e39ad35af03ad0821ef1e7.webp?v=1751530396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e9d573dfedb15e1763c05fc7f29e680dd249f8.webp?v=1751530396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4910305e885d532994eeaa948265fad2e696851.webp?v=1751530397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88808f6956e52d1fb638fc1e25fcca9b52bc2216.webp?v=1751530398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c2934ac7869822f6236e88c5b4463d6ebe71df.webp?v=1751530398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf6154cf4380d515429b1c36dcf643c4284e476.webp?v=1751530399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e026df48a329540a8bd3df7643bf5960bda09e8.webp?v=1751530393","options":["color"],"media":[{"alt":null,"id":25769561522275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e026df48a329540a8bd3df7643bf5960bda09e8.webp?v=1751530393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e026df48a329540a8bd3df7643bf5960bda09e8.webp?v=1751530393","width":2000},{"alt":null,"id":25769561686115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5da0d42dc15ab378a32b4694227a50d00e9a798.webp?v=1751530394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5da0d42dc15ab378a32b4694227a50d00e9a798.webp?v=1751530394","width":2000},{"alt":null,"id":25769561882723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155a91f497410372a3b39f429a145626ec07036.webp?v=1751530394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155a91f497410372a3b39f429a145626ec07036.webp?v=1751530394","width":2000},{"alt":null,"id":25769562013795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060134ef5f16edb8a46efd91054ee52c4e7c7d4b.webp?v=1751530395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060134ef5f16edb8a46efd91054ee52c4e7c7d4b.webp?v=1751530395","width":2000},{"alt":null,"id":25769562144867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9769b66fc6e210925a664c40cc001450ffa177.webp?v=1751530395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9769b66fc6e210925a664c40cc001450ffa177.webp?v=1751530395","width":2000},{"alt":null,"id":25769562374243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ab303a041f05c599e39ad35af03ad0821ef1e7.webp?v=1751530396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ab303a041f05c599e39ad35af03ad0821ef1e7.webp?v=1751530396","width":2000},{"alt":null,"id":25769562636387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e9d573dfedb15e1763c05fc7f29e680dd249f8.webp?v=1751530396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e9d573dfedb15e1763c05fc7f29e680dd249f8.webp?v=1751530396","width":2000},{"alt":null,"id":25769562996835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4910305e885d532994eeaa948265fad2e696851.webp?v=1751530397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4910305e885d532994eeaa948265fad2e696851.webp?v=1751530397","width":2000},{"alt":null,"id":25769563062371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88808f6956e52d1fb638fc1e25fcca9b52bc2216.webp?v=1751530398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88808f6956e52d1fb638fc1e25fcca9b52bc2216.webp?v=1751530398","width":2000},{"alt":null,"id":25769563127907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c2934ac7869822f6236e88c5b4463d6ebe71df.webp?v=1751530398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c2934ac7869822f6236e88c5b4463d6ebe71df.webp?v=1751530398","width":2000},{"alt":null,"id":25769563291747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf6154cf4380d515429b1c36dcf643c4284e476.webp?v=1751530399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf6154cf4380d515429b1c36dcf643c4284e476.webp?v=1751530399","width":2000},{"alt":null,"id":25769563455587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43507431342179,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116641128547,"product_id":7830898901091,"position":12,"created_at":"2025-07-03T16:13:18+08:00","updated_at":"2025-07-03T16:13:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399","variant_ids":[43507431342179]},"available":true,"name":"iPhone 14 Pro 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":"MPB01262J5-DK03","featured_media":{"alt":null,"id":25769563455587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507431538787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116639719523,"product_id":7830898901091,"position":10,"created_at":"2025-07-03T16:13:17+08:00","updated_at":"2025-07-03T16:13:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c2934ac7869822f6236e88c5b4463d6ebe71df.webp?v=1751530398","variant_ids":[43507431538787]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-DK03","featured_media":{"alt":null,"id":25769563127907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c2934ac7869822f6236e88c5b4463d6ebe71df.webp?v=1751530398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507431637091,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116639195235,"product_id":7830898901091,"position":8,"created_at":"2025-07-03T16:13:15+08:00","updated_at":"2025-07-03T16:13:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4910305e885d532994eeaa948265fad2e696851.webp?v=1751530397","variant_ids":[43507431637091]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126204-DK03","featured_media":{"alt":null,"id":25769562996835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4910305e885d532994eeaa948265fad2e696851.webp?v=1751530397"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43507431342179,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116641128547,"product_id":7830898901091,"position":12,"created_at":"2025-07-03T16:13:18+08:00","updated_at":"2025-07-03T16:13:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399","variant_ids":[43507431342179]},"available":true,"name":"iPhone 14 Pro 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":"MPB01262J5-DK03","featured_media":{"alt":null,"id":25769563455587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757bf7eb4e6b1cfd2fb4e90b8e2b070454a07b1c.webp?v=1751530399"}},"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: "停產"
}