$product = {"id":7848112717923,"title":"iPhone 14 Plus Mod NX 嗨小強 Hey You","handle":"iphone-14-plus-mod-nx-bumper-crossover-design-fv67","description":null,"published_at":"2025-08-07T08:57:34+08:00","created_at":"2025-08-05T09:51:37+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":43563087003747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FV67","requires_shipping":true,"taxable":true,"featured_image":{"id":34288166994019,"product_id":7848112717923,"position":4,"created_at":"2025-08-05T09:51:43+08:00","updated_at":"2025-08-05T09:51:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705","variant_ids":[43563087003747]},"available":true,"name":"iPhone 14 Plus Mod NX 嗨小強 Hey You - 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-FV67","featured_media":{"alt":null,"id":25889033584739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2605cda3504715c723f690ab6d7a0353f66789c9.webp?v=1754358703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ce546890f602862e50e2f93ccf8c9f85a90cce3.webp?v=1754358704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce42664d25d9f80e3d07a346d63b3337169888bf.webp?v=1754358705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf814f6c94fcbf26e6b193363cc733c8926d7f8.webp?v=1754358706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2286424b1b9d4e621a588d4fceeecceeba985b23.webp?v=1754358707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa559a385b732637b5a26cc73515eeaf9e5eba7c.webp?v=1754358707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e81e03762fea1a52a2d35de4a96b990e20e0898.webp?v=1754358708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4764bb441b2922820733dfaf1fac93683513030e.webp?v=1754358708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c34e74141e9b402e9f962b341f4f73717b77fe3b.webp?v=1754358709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47c5fab597cacd29ad8d9d2d538c83de8b3dbad.webp?v=1754358709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ba52df516b17754efb591ee7283526715f38e.webp?v=1754358710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e6cd86dc9562d97824848c822befa129b29d48.webp?v=1754358711"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2605cda3504715c723f690ab6d7a0353f66789c9.webp?v=1754358703","options":["color"],"media":[{"alt":null,"id":25889032929379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2605cda3504715c723f690ab6d7a0353f66789c9.webp?v=1754358703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2605cda3504715c723f690ab6d7a0353f66789c9.webp?v=1754358703","width":2000},{"alt":null,"id":25889033191523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ce546890f602862e50e2f93ccf8c9f85a90cce3.webp?v=1754358704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ce546890f602862e50e2f93ccf8c9f85a90cce3.webp?v=1754358704","width":2000},{"alt":null,"id":25889033420899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce42664d25d9f80e3d07a346d63b3337169888bf.webp?v=1754358705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce42664d25d9f80e3d07a346d63b3337169888bf.webp?v=1754358705","width":2000},{"alt":null,"id":25889033584739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705","width":2000},{"alt":null,"id":25889033715811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf814f6c94fcbf26e6b193363cc733c8926d7f8.webp?v=1754358706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf814f6c94fcbf26e6b193363cc733c8926d7f8.webp?v=1754358706","width":2000},{"alt":null,"id":25889033846883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2286424b1b9d4e621a588d4fceeecceeba985b23.webp?v=1754358707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2286424b1b9d4e621a588d4fceeecceeba985b23.webp?v=1754358707","width":2000},{"alt":null,"id":25889033977955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa559a385b732637b5a26cc73515eeaf9e5eba7c.webp?v=1754358707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa559a385b732637b5a26cc73515eeaf9e5eba7c.webp?v=1754358707","width":2000},{"alt":null,"id":25889034076259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e81e03762fea1a52a2d35de4a96b990e20e0898.webp?v=1754358708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e81e03762fea1a52a2d35de4a96b990e20e0898.webp?v=1754358708","width":2000},{"alt":null,"id":25889034174563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4764bb441b2922820733dfaf1fac93683513030e.webp?v=1754358708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4764bb441b2922820733dfaf1fac93683513030e.webp?v=1754358708","width":2000},{"alt":null,"id":25889034272867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c34e74141e9b402e9f962b341f4f73717b77fe3b.webp?v=1754358709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c34e74141e9b402e9f962b341f4f73717b77fe3b.webp?v=1754358709","width":2000},{"alt":null,"id":25889034371171,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47c5fab597cacd29ad8d9d2d538c83de8b3dbad.webp?v=1754358709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47c5fab597cacd29ad8d9d2d538c83de8b3dbad.webp?v=1754358709","width":2000},{"alt":null,"id":25889034469475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ba52df516b17754efb591ee7283526715f38e.webp?v=1754358710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df1ba52df516b17754efb591ee7283526715f38e.webp?v=1754358710","width":2000},{"alt":null,"id":25889034567779,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e6cd86dc9562d97824848c822befa129b29d48.webp?v=1754358711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e6cd86dc9562d97824848c822befa129b29d48.webp?v=1754358711","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43563087003747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FV67","requires_shipping":true,"taxable":true,"featured_image":{"id":34288166994019,"product_id":7848112717923,"position":4,"created_at":"2025-08-05T09:51:43+08:00","updated_at":"2025-08-05T09:51:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705","variant_ids":[43563087003747]},"available":true,"name":"iPhone 14 Plus Mod NX 嗨小強 Hey You - 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-FV67","featured_media":{"alt":null,"id":25889033584739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43563087003747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FV67","requires_shipping":true,"taxable":true,"featured_image":{"id":34288166994019,"product_id":7848112717923,"position":4,"created_at":"2025-08-05T09:51:43+08:00","updated_at":"2025-08-05T09:51:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705","variant_ids":[43563087003747]},"available":true,"name":"iPhone 14 Plus Mod NX 嗨小強 Hey You - 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-FV67","featured_media":{"alt":null,"id":25889033584739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a342dff9c25a16f4eadae71f741f26263530e351.webp?v=1754358705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}