$product = {"id":7875991863395,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 不關我的事","handle":"iphone-14-pro-mod-nx-magsafe-printable-em49","description":null,"published_at":"2025-09-04T10:46:05+08:00","created_at":"2025-09-03T11:31:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 14 Pro","merge","reseller-xiaolaofu"],"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":43674876805219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34415926804579,"product_id":7875991863395,"position":10,"created_at":"2025-09-03T11:32:05+08:00","updated_at":"2025-09-03T11:32:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327","variant_ids":[43674876805219]},"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-EM49","featured_media":{"alt":null,"id":25988201611363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43674876969059,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34415927296099,"product_id":7875991863395,"position":12,"created_at":"2025-09-03T11:32:07+08:00","updated_at":"2025-09-03T11:32:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4debd3122119acfcce90d3fd400c38cd22c1548.webp?v=1756870329","variant_ids":[43674876969059]},"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-EM49","featured_media":{"alt":null,"id":25988202102883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4debd3122119acfcce90d3fd400c38cd22c1548.webp?v=1756870329"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43674877067363,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34415924871267,"product_id":7875991863395,"position":3,"created_at":"2025-09-03T11:32:00+08:00","updated_at":"2025-09-03T11:32:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e911d19049274638a34749dae9d967fe1ba4cc5.webp?v=1756870322","variant_ids":[43674877067363]},"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-EM49","featured_media":{"alt":null,"id":25988199678051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e911d19049274638a34749dae9d967fe1ba4cc5.webp?v=1756870322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283dce93fb3752b3357f100b1292f6fb225e8bf6.webp?v=1756870320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3957d400c9763011c911569e4b58ffb737fadaa5.webp?v=1756870322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e911d19049274638a34749dae9d967fe1ba4cc5.webp?v=1756870322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef64e3e522a6cf6e1b80c4e106bb491767f22d5e.webp?v=1756870323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa96e3e0d0e3c6b251dc54b42b0aaf1c8eef1105.webp?v=1756870324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63bbd35be8f3f9068a8c48fbe69bc9adf6239d46.webp?v=1756870324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf8fd5d18460ded9b2cecfec54460110d95717a.webp?v=1756870325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22759b87091541a478d251a097180cf4856ee473.webp?v=1756870326","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/044ed7f7215487d10ff4ac1e0fd5c03b2120f73d.webp?v=1756870327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f317ca0f7db53beeef4f313aa06627b1ca30290f.webp?v=1756870328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4debd3122119acfcce90d3fd400c38cd22c1548.webp?v=1756870329"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283dce93fb3752b3357f100b1292f6fb225e8bf6.webp?v=1756870320","options":["color"],"media":[{"alt":null,"id":25988199284835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283dce93fb3752b3357f100b1292f6fb225e8bf6.webp?v=1756870320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283dce93fb3752b3357f100b1292f6fb225e8bf6.webp?v=1756870320","width":2000},{"alt":null,"id":25988199514211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3957d400c9763011c911569e4b58ffb737fadaa5.webp?v=1756870322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3957d400c9763011c911569e4b58ffb737fadaa5.webp?v=1756870322","width":2000},{"alt":null,"id":25988199678051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e911d19049274638a34749dae9d967fe1ba4cc5.webp?v=1756870322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e911d19049274638a34749dae9d967fe1ba4cc5.webp?v=1756870322","width":2000},{"alt":null,"id":25988199907427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef64e3e522a6cf6e1b80c4e106bb491767f22d5e.webp?v=1756870323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef64e3e522a6cf6e1b80c4e106bb491767f22d5e.webp?v=1756870323","width":2000},{"alt":null,"id":25988200202339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa96e3e0d0e3c6b251dc54b42b0aaf1c8eef1105.webp?v=1756870324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa96e3e0d0e3c6b251dc54b42b0aaf1c8eef1105.webp?v=1756870324","width":2000},{"alt":null,"id":25988200497251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63bbd35be8f3f9068a8c48fbe69bc9adf6239d46.webp?v=1756870324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63bbd35be8f3f9068a8c48fbe69bc9adf6239d46.webp?v=1756870324","width":2000},{"alt":null,"id":25988200759395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf8fd5d18460ded9b2cecfec54460110d95717a.webp?v=1756870325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bf8fd5d18460ded9b2cecfec54460110d95717a.webp?v=1756870325","width":2000},{"alt":null,"id":25988201054307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22759b87091541a478d251a097180cf4856ee473.webp?v=1756870326"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22759b87091541a478d251a097180cf4856ee473.webp?v=1756870326","width":2000},{"alt":null,"id":25988201316451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/044ed7f7215487d10ff4ac1e0fd5c03b2120f73d.webp?v=1756870327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/044ed7f7215487d10ff4ac1e0fd5c03b2120f73d.webp?v=1756870327","width":2000},{"alt":null,"id":25988201611363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327","width":2000},{"alt":null,"id":25988201840739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f317ca0f7db53beeef4f313aa06627b1ca30290f.webp?v=1756870328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f317ca0f7db53beeef4f313aa06627b1ca30290f.webp?v=1756870328","width":2000},{"alt":null,"id":25988202102883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4debd3122119acfcce90d3fd400c38cd22c1548.webp?v=1756870329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4debd3122119acfcce90d3fd400c38cd22c1548.webp?v=1756870329","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43674876805219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34415926804579,"product_id":7875991863395,"position":10,"created_at":"2025-09-03T11:32:05+08:00","updated_at":"2025-09-03T11:32:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327","variant_ids":[43674876805219]},"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-EM49","featured_media":{"alt":null,"id":25988201611363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43674876969059,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34415927296099,"product_id":7875991863395,"position":12,"created_at":"2025-09-03T11:32:07+08:00","updated_at":"2025-09-03T11:32:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4debd3122119acfcce90d3fd400c38cd22c1548.webp?v=1756870329","variant_ids":[43674876969059]},"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-EM49","featured_media":{"alt":null,"id":25988202102883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4debd3122119acfcce90d3fd400c38cd22c1548.webp?v=1756870329"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43674877067363,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34415924871267,"product_id":7875991863395,"position":3,"created_at":"2025-09-03T11:32:00+08:00","updated_at":"2025-09-03T11:32:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e911d19049274638a34749dae9d967fe1ba4cc5.webp?v=1756870322","variant_ids":[43674877067363]},"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-EM49","featured_media":{"alt":null,"id":25988199678051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e911d19049274638a34749dae9d967fe1ba4cc5.webp?v=1756870322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43674876805219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34415926804579,"product_id":7875991863395,"position":10,"created_at":"2025-09-03T11:32:05+08:00","updated_at":"2025-09-03T11:32:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327","variant_ids":[43674876805219]},"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-EM49","featured_media":{"alt":null,"id":25988201611363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a493bb5d43e09e1d34f6739f9406a32c06105.webp?v=1756870327"}},"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: "停產"
}