$product = {"id":7848021557347,"title":"iPhone 14 Plus Mod NX 嗨小強 Good Luck","handle":"iphone-14-plus-mod-nx-bumper-crossover-design-fv65","description":null,"published_at":"2025-08-07T09:23:12+08:00","created_at":"2025-08-05T09:35:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 14 Plus","merge","reseller-hijohnnn"],"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":43562788651107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FV65","requires_shipping":true,"taxable":true,"featured_image":{"id":34287650799715,"product_id":7848021557347,"position":12,"created_at":"2025-08-05T09:36:06+08:00","updated_at":"2025-08-05T09:36:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768","variant_ids":[43562788651107]},"available":true,"name":"iPhone 14 Plus Mod NX 嗨小強 Good Luck - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-FV65","featured_media":{"alt":null,"id":25888774193251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938af9d6c5e55077ddb386d3a665084ec9ce4d83.webp?v=1754357759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a0502ce9661a180d8bc500c03364ef443e62ce.webp?v=1754357760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1841a5f115c156e74afb8a54a2ab246142f0b6b5.webp?v=1754357760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b89535c2415334f106bbc2ef4d366b8ee8952e.webp?v=1754357761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c7b47b0143add6a909751d65f91e558ead7aaa1.webp?v=1754357762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cad1ac7e464493feea9a2e1ac2668586a7448dd.webp?v=1754357763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3557e2649d1ee7fab3283c51909285f66353c390.webp?v=1754357765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b198d06a0f7597c97f4075e9cf3a12124980ac9.webp?v=1754357766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c633b520bfd812fc068f2f0996d1fe76ee4433.webp?v=1754357766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e279d12fa26a99795d00d30fdb8cf8b4ec83fcea.webp?v=1754357767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baecdb888131227859fecc4cf03d06da7c37da06.webp?v=1754357767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b093dd4a096814c2618a1cc3868364b3760550fc.webp?v=1754357769"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938af9d6c5e55077ddb386d3a665084ec9ce4d83.webp?v=1754357759","options":["color"],"media":[{"alt":null,"id":25888770883683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938af9d6c5e55077ddb386d3a665084ec9ce4d83.webp?v=1754357759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/938af9d6c5e55077ddb386d3a665084ec9ce4d83.webp?v=1754357759","width":2000},{"alt":null,"id":25888771145827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a0502ce9661a180d8bc500c03364ef443e62ce.webp?v=1754357760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a0502ce9661a180d8bc500c03364ef443e62ce.webp?v=1754357760","width":2000},{"alt":null,"id":25888771375203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1841a5f115c156e74afb8a54a2ab246142f0b6b5.webp?v=1754357760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1841a5f115c156e74afb8a54a2ab246142f0b6b5.webp?v=1754357760","width":2000},{"alt":null,"id":25888771473507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b89535c2415334f106bbc2ef4d366b8ee8952e.webp?v=1754357761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b89535c2415334f106bbc2ef4d366b8ee8952e.webp?v=1754357761","width":2000},{"alt":null,"id":25888771768419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c7b47b0143add6a909751d65f91e558ead7aaa1.webp?v=1754357762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c7b47b0143add6a909751d65f91e558ead7aaa1.webp?v=1754357762","width":2000},{"alt":null,"id":25888771997795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cad1ac7e464493feea9a2e1ac2668586a7448dd.webp?v=1754357763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cad1ac7e464493feea9a2e1ac2668586a7448dd.webp?v=1754357763","width":2000},{"alt":null,"id":25888772653155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3557e2649d1ee7fab3283c51909285f66353c390.webp?v=1754357765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3557e2649d1ee7fab3283c51909285f66353c390.webp?v=1754357765","width":2000},{"alt":null,"id":25888773046371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b198d06a0f7597c97f4075e9cf3a12124980ac9.webp?v=1754357766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b198d06a0f7597c97f4075e9cf3a12124980ac9.webp?v=1754357766","width":2000},{"alt":null,"id":25888773308515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c633b520bfd812fc068f2f0996d1fe76ee4433.webp?v=1754357766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97c633b520bfd812fc068f2f0996d1fe76ee4433.webp?v=1754357766","width":2000},{"alt":null,"id":25888773570659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e279d12fa26a99795d00d30fdb8cf8b4ec83fcea.webp?v=1754357767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e279d12fa26a99795d00d30fdb8cf8b4ec83fcea.webp?v=1754357767","width":2000},{"alt":null,"id":25888773800035,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baecdb888131227859fecc4cf03d06da7c37da06.webp?v=1754357767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baecdb888131227859fecc4cf03d06da7c37da06.webp?v=1754357767","width":2000},{"alt":null,"id":25888774193251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768","width":2000},{"alt":null,"id":25888774520931,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b093dd4a096814c2618a1cc3868364b3760550fc.webp?v=1754357769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b093dd4a096814c2618a1cc3868364b3760550fc.webp?v=1754357769","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43562788651107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FV65","requires_shipping":true,"taxable":true,"featured_image":{"id":34287650799715,"product_id":7848021557347,"position":12,"created_at":"2025-08-05T09:36:06+08:00","updated_at":"2025-08-05T09:36:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768","variant_ids":[43562788651107]},"available":true,"name":"iPhone 14 Plus Mod NX 嗨小強 Good Luck - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-FV65","featured_media":{"alt":null,"id":25888774193251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43562788651107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FV65","requires_shipping":true,"taxable":true,"featured_image":{"id":34287650799715,"product_id":7848021557347,"position":12,"created_at":"2025-08-05T09:36:06+08:00","updated_at":"2025-08-05T09:36:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768","variant_ids":[43562788651107]},"available":true,"name":"iPhone 14 Plus Mod NX 嗨小強 Good Luck - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-FV65","featured_media":{"alt":null,"id":25888774193251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9acdd897306d55202c5b0f610309193d3a3bd0.webp?v=1754357768"}},"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: "停產"
}