$product = {"id":7888382591075,"title":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS!","handle":"iphone-14-pro-mod-nx-printable-iq02","description":null,"published_at":"2025-09-23T09:22:33+08:00","created_at":"2025-09-22T15:16:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kingjun","device-iPhone 14 Pro","merge","reseller-kingjun"],"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":43742904221795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34514193383523,"product_id":7888382591075,"position":4,"created_at":"2025-09-22T15:16:39+08:00","updated_at":"2025-09-22T15:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401","variant_ids":[43742904221795]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS! - 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-IQ02","featured_media":{"alt":null,"id":26084635902051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742904418403,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34514193514595,"product_id":7888382591075,"position":5,"created_at":"2025-09-22T15:16:39+08:00","updated_at":"2025-09-22T15:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a0a6116270511ef18e0a7bd78feeaa81a28a61.webp?v=1758525401","variant_ids":[43742904418403]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS! - 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-IQ02","featured_media":{"alt":null,"id":26084636033123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a0a6116270511ef18e0a7bd78feeaa81a28a61.webp?v=1758525401"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742904483939,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34514194399331,"product_id":7888382591075,"position":11,"created_at":"2025-09-22T15:16:42+08:00","updated_at":"2025-09-22T15:16:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90861f8f80b390cc1ed3e0bf539eb9bc844c392d.webp?v=1758525405","variant_ids":[43742904483939]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS! - 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-IQ02","featured_media":{"alt":null,"id":26084636917859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90861f8f80b390cc1ed3e0bf539eb9bc844c392d.webp?v=1758525405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/034e2cdcaeac0f8c879493d2cdce8b122e92f482.webp?v=1758525399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56eebd6a64e131a3ef9e1ad2873107e8c75c07.webp?v=1758525400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ae2b6c6c1aac57b0b90f5380c372d86d84159af.webp?v=1758525400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a0a6116270511ef18e0a7bd78feeaa81a28a61.webp?v=1758525401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c2baae3a939273c61f970c6d33ad639d6342c7.webp?v=1758525402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d98662047980904eda83f0dffbd5a9ba0d037c.webp?v=1758525403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189db47c412e35c0258a550311f93533934aa055.webp?v=1758525403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ff11a4f0fb6fcc157df5ee05f86513ba1c923f0.webp?v=1758525403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cef982a82ab77f63b41acd349d9a279d5933f25.webp?v=1758525404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90861f8f80b390cc1ed3e0bf539eb9bc844c392d.webp?v=1758525405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ef2519d57cc53eda72a86eae4d58104bb92bac.webp?v=1758525405"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/034e2cdcaeac0f8c879493d2cdce8b122e92f482.webp?v=1758525399","options":["color"],"media":[{"alt":null,"id":26084635410531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/034e2cdcaeac0f8c879493d2cdce8b122e92f482.webp?v=1758525399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/034e2cdcaeac0f8c879493d2cdce8b122e92f482.webp?v=1758525399","width":2000},{"alt":null,"id":26084635508835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56eebd6a64e131a3ef9e1ad2873107e8c75c07.webp?v=1758525400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d56eebd6a64e131a3ef9e1ad2873107e8c75c07.webp?v=1758525400","width":2000},{"alt":null,"id":26084635672675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ae2b6c6c1aac57b0b90f5380c372d86d84159af.webp?v=1758525400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ae2b6c6c1aac57b0b90f5380c372d86d84159af.webp?v=1758525400","width":2000},{"alt":null,"id":26084635902051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401","width":2000},{"alt":null,"id":26084636033123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a0a6116270511ef18e0a7bd78feeaa81a28a61.webp?v=1758525401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a0a6116270511ef18e0a7bd78feeaa81a28a61.webp?v=1758525401","width":2000},{"alt":null,"id":26084636164195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c2baae3a939273c61f970c6d33ad639d6342c7.webp?v=1758525402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c2baae3a939273c61f970c6d33ad639d6342c7.webp?v=1758525402","width":2000},{"alt":null,"id":26084636328035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d98662047980904eda83f0dffbd5a9ba0d037c.webp?v=1758525403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d98662047980904eda83f0dffbd5a9ba0d037c.webp?v=1758525403","width":2000},{"alt":null,"id":26084636459107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189db47c412e35c0258a550311f93533934aa055.webp?v=1758525403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189db47c412e35c0258a550311f93533934aa055.webp?v=1758525403","width":2000},{"alt":null,"id":26084636590179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ff11a4f0fb6fcc157df5ee05f86513ba1c923f0.webp?v=1758525403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ff11a4f0fb6fcc157df5ee05f86513ba1c923f0.webp?v=1758525403","width":2000},{"alt":null,"id":26084636721251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cef982a82ab77f63b41acd349d9a279d5933f25.webp?v=1758525404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cef982a82ab77f63b41acd349d9a279d5933f25.webp?v=1758525404","width":2000},{"alt":null,"id":26084636917859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90861f8f80b390cc1ed3e0bf539eb9bc844c392d.webp?v=1758525405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90861f8f80b390cc1ed3e0bf539eb9bc844c392d.webp?v=1758525405","width":2000},{"alt":null,"id":26084637081699,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ef2519d57cc53eda72a86eae4d58104bb92bac.webp?v=1758525405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ef2519d57cc53eda72a86eae4d58104bb92bac.webp?v=1758525405","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43742904221795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34514193383523,"product_id":7888382591075,"position":4,"created_at":"2025-09-22T15:16:39+08:00","updated_at":"2025-09-22T15:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401","variant_ids":[43742904221795]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS! - 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-IQ02","featured_media":{"alt":null,"id":26084635902051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742904418403,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34514193514595,"product_id":7888382591075,"position":5,"created_at":"2025-09-22T15:16:39+08:00","updated_at":"2025-09-22T15:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a0a6116270511ef18e0a7bd78feeaa81a28a61.webp?v=1758525401","variant_ids":[43742904418403]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS! - 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-IQ02","featured_media":{"alt":null,"id":26084636033123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a0a6116270511ef18e0a7bd78feeaa81a28a61.webp?v=1758525401"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43742904483939,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34514194399331,"product_id":7888382591075,"position":11,"created_at":"2025-09-22T15:16:42+08:00","updated_at":"2025-09-22T15:16:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90861f8f80b390cc1ed3e0bf539eb9bc844c392d.webp?v=1758525405","variant_ids":[43742904483939]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS! - 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-IQ02","featured_media":{"alt":null,"id":26084636917859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90861f8f80b390cc1ed3e0bf539eb9bc844c392d.webp?v=1758525405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43742904221795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":34514193383523,"product_id":7888382591075,"position":4,"created_at":"2025-09-22T15:16:39+08:00","updated_at":"2025-09-22T15:16:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401","variant_ids":[43742904221795]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello STUPID RABBITS! - 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-IQ02","featured_media":{"alt":null,"id":26084635902051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54585c064bee10d0818ccd318b832764114520a6.webp?v=1758525401"}},"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: "停產"
}