$product = {"id":7831390060643,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰","handle":"iphone-14-pro-mod-nx-magsafe-bumper-jo45","description":null,"published_at":"2025-07-04T16:08:47+08:00","created_at":"2025-07-04T16:04:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kid","device-iPhone 14 Pro","merge","reseller-kid"],"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":43509110702179,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123305025635,"product_id":7831390060643,"position":6,"created_at":"2025-07-04T16:04:17+08:00","updated_at":"2025-07-04T16:04:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259","variant_ids":[43509110702179]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774716321891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509110767715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123303649379,"product_id":7831390060643,"position":3,"created_at":"2025-07-04T16:04:15+08:00","updated_at":"2025-07-04T16:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01bc9bea110fede2509e3543f7e989f05a8baf6.webp?v=1751616257","variant_ids":[43509110767715]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774715535459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01bc9bea110fede2509e3543f7e989f05a8baf6.webp?v=1751616257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509110800483,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123307843683,"product_id":7831390060643,"position":12,"created_at":"2025-07-04T16:04:20+08:00","updated_at":"2025-07-04T16:04:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c784b72201c5dab444452307c95f95d7b2fc4e7.webp?v=1751616262","variant_ids":[43509110800483]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774717370467,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c784b72201c5dab444452307c95f95d7b2fc4e7.webp?v=1751616262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa4dba8d1c9619e9c4b0dedb573b8b6cff356c7c.webp?v=1751616256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/346e936f83296338e30c4c2eada57f6bd72416ea.webp?v=1751616257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01bc9bea110fede2509e3543f7e989f05a8baf6.webp?v=1751616257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03557fd4652d988dd141dd94a3c963f38e9280ee.webp?v=1751616258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a50a555d3edebdb0c8f4fe5f1cdd8d75338ef46.webp?v=1751616258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739357bc7ee69d2d4757a2b068e79b798c08b79.webp?v=1751616259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef29d175dc527c39bdf2ad301d9df9e227bfa04.webp?v=1751616260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62024dc896e59397793c9cedc46384fb8af74642.webp?v=1751616260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12cd73ce86a57c2574dc33e9fd1eeb8d19b36854.webp?v=1751616261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20dd7c5ac41d74deb11f789591ea11ab1950dd8f.webp?v=1751616262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c784b72201c5dab444452307c95f95d7b2fc4e7.webp?v=1751616262"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa4dba8d1c9619e9c4b0dedb573b8b6cff356c7c.webp?v=1751616256","options":["color"],"media":[{"alt":null,"id":25774714978403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa4dba8d1c9619e9c4b0dedb573b8b6cff356c7c.webp?v=1751616256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa4dba8d1c9619e9c4b0dedb573b8b6cff356c7c.webp?v=1751616256","width":2000},{"alt":null,"id":25774715240547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/346e936f83296338e30c4c2eada57f6bd72416ea.webp?v=1751616257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/346e936f83296338e30c4c2eada57f6bd72416ea.webp?v=1751616257","width":2000},{"alt":null,"id":25774715535459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01bc9bea110fede2509e3543f7e989f05a8baf6.webp?v=1751616257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01bc9bea110fede2509e3543f7e989f05a8baf6.webp?v=1751616257","width":2000},{"alt":null,"id":25774715830371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03557fd4652d988dd141dd94a3c963f38e9280ee.webp?v=1751616258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03557fd4652d988dd141dd94a3c963f38e9280ee.webp?v=1751616258","width":2000},{"alt":null,"id":25774716059747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a50a555d3edebdb0c8f4fe5f1cdd8d75338ef46.webp?v=1751616258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a50a555d3edebdb0c8f4fe5f1cdd8d75338ef46.webp?v=1751616258","width":2000},{"alt":null,"id":25774716321891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259","width":2000},{"alt":null,"id":25774716518499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739357bc7ee69d2d4757a2b068e79b798c08b79.webp?v=1751616259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739357bc7ee69d2d4757a2b068e79b798c08b79.webp?v=1751616259","width":2000},{"alt":null,"id":25774716682339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef29d175dc527c39bdf2ad301d9df9e227bfa04.webp?v=1751616260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ef29d175dc527c39bdf2ad301d9df9e227bfa04.webp?v=1751616260","width":2000},{"alt":null,"id":25774716944483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62024dc896e59397793c9cedc46384fb8af74642.webp?v=1751616260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62024dc896e59397793c9cedc46384fb8af74642.webp?v=1751616260","width":2000},{"alt":null,"id":25774717042787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12cd73ce86a57c2574dc33e9fd1eeb8d19b36854.webp?v=1751616261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12cd73ce86a57c2574dc33e9fd1eeb8d19b36854.webp?v=1751616261","width":2000},{"alt":null,"id":25774717206627,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20dd7c5ac41d74deb11f789591ea11ab1950dd8f.webp?v=1751616262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20dd7c5ac41d74deb11f789591ea11ab1950dd8f.webp?v=1751616262","width":2000},{"alt":null,"id":25774717370467,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c784b72201c5dab444452307c95f95d7b2fc4e7.webp?v=1751616262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c784b72201c5dab444452307c95f95d7b2fc4e7.webp?v=1751616262","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43509110702179,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123305025635,"product_id":7831390060643,"position":6,"created_at":"2025-07-04T16:04:17+08:00","updated_at":"2025-07-04T16:04:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259","variant_ids":[43509110702179]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774716321891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509110767715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123303649379,"product_id":7831390060643,"position":3,"created_at":"2025-07-04T16:04:15+08:00","updated_at":"2025-07-04T16:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01bc9bea110fede2509e3543f7e989f05a8baf6.webp?v=1751616257","variant_ids":[43509110767715]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774715535459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f01bc9bea110fede2509e3543f7e989f05a8baf6.webp?v=1751616257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509110800483,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123307843683,"product_id":7831390060643,"position":12,"created_at":"2025-07-04T16:04:20+08:00","updated_at":"2025-07-04T16:04:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c784b72201c5dab444452307c95f95d7b2fc4e7.webp?v=1751616262","variant_ids":[43509110800483]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774717370467,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c784b72201c5dab444452307c95f95d7b2fc4e7.webp?v=1751616262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43509110702179,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123305025635,"product_id":7831390060643,"position":6,"created_at":"2025-07-04T16:04:17+08:00","updated_at":"2025-07-04T16:04:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259","variant_ids":[43509110702179]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774716321891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81bfceb26849fe42f5d718b3d1d2afa8c28fa8a3.webp?v=1751616259"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}