$product = {"id":7942085116003,"title":"iPhone 14 Plus Mod NX Nyangsongi 幸運的 2 美元","handle":"iphone-14-plus-mod-nx-nya02","description":null,"published_at":"2025-12-23T10:00:50+08:00","created_at":"2025-12-22T12:11:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nyangsongi","device-iPhone 14 Plus","merge","reseller-nyangsongi"],"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":43903435767907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA02","requires_shipping":true,"taxable":true,"featured_image":{"id":34986091184227,"product_id":7942085116003,"position":6,"created_at":"2025-12-22T12:12:06+08:00","updated_at":"2025-12-22T12:12:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729","variant_ids":[43903435767907]},"available":true,"name":"iPhone 14 Plus Mod NX Nyangsongi 幸運的 2 美元 - 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-NYA02","featured_media":{"alt":null,"id":26547164741731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/677f4e2d40833caf60aea7d249b1c514500f7447.webp?v=1766376726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cfaf0a3c5369c1ed4c4fab1d27e6705397b215.webp?v=1766376726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9492320f60f1440840ec0f62ac34cccabfa0c164.webp?v=1766376727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b96ea9f6ee963e688c19933ab54241c36731634.webp?v=1766376727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75126b5584abab97e83ebf30d623554b164c730e.webp?v=1766376728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b181cf327f1b0588abad4ebb37683ed22e5bebb0.webp?v=1766376729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9628d137992e64147e47bf488819d3d34f2d209a.webp?v=1766376730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755cecbe2dcaf4747c7e918c6eae743998a35272.webp?v=1766376730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f767c08d473892d454dd3ce2a5daedd225adf8f2.webp?v=1766376731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666c50a608dc870a6a2f163028b85d76257833e7.webp?v=1766376731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e8b20dc030b537d452a4874dc3bf2b9be6875f.webp?v=1766376731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee2a181522d4490eb6a45a35bac18973a8baf2f6.webp?v=1766376732"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/677f4e2d40833caf60aea7d249b1c514500f7447.webp?v=1766376726","options":["color"],"media":[{"alt":null,"id":26547164184675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/677f4e2d40833caf60aea7d249b1c514500f7447.webp?v=1766376726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/677f4e2d40833caf60aea7d249b1c514500f7447.webp?v=1766376726","width":2000},{"alt":null,"id":26547164282979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cfaf0a3c5369c1ed4c4fab1d27e6705397b215.webp?v=1766376726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cfaf0a3c5369c1ed4c4fab1d27e6705397b215.webp?v=1766376726","width":2000},{"alt":null,"id":26547164381283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9492320f60f1440840ec0f62ac34cccabfa0c164.webp?v=1766376727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9492320f60f1440840ec0f62ac34cccabfa0c164.webp?v=1766376727","width":2000},{"alt":null,"id":26547164479587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b96ea9f6ee963e688c19933ab54241c36731634.webp?v=1766376727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b96ea9f6ee963e688c19933ab54241c36731634.webp?v=1766376727","width":2000},{"alt":null,"id":26547164643427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75126b5584abab97e83ebf30d623554b164c730e.webp?v=1766376728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75126b5584abab97e83ebf30d623554b164c730e.webp?v=1766376728","width":2000},{"alt":null,"id":26547164741731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729","width":2000},{"alt":null,"id":26547164905571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b181cf327f1b0588abad4ebb37683ed22e5bebb0.webp?v=1766376729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b181cf327f1b0588abad4ebb37683ed22e5bebb0.webp?v=1766376729","width":2000},{"alt":null,"id":26547165102179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9628d137992e64147e47bf488819d3d34f2d209a.webp?v=1766376730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9628d137992e64147e47bf488819d3d34f2d209a.webp?v=1766376730","width":2000},{"alt":null,"id":26547165200483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755cecbe2dcaf4747c7e918c6eae743998a35272.webp?v=1766376730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755cecbe2dcaf4747c7e918c6eae743998a35272.webp?v=1766376730","width":2000},{"alt":null,"id":26547165298787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f767c08d473892d454dd3ce2a5daedd225adf8f2.webp?v=1766376731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f767c08d473892d454dd3ce2a5daedd225adf8f2.webp?v=1766376731","width":2000},{"alt":null,"id":26547165429859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666c50a608dc870a6a2f163028b85d76257833e7.webp?v=1766376731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666c50a608dc870a6a2f163028b85d76257833e7.webp?v=1766376731","width":2000},{"alt":null,"id":26547165528163,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e8b20dc030b537d452a4874dc3bf2b9be6875f.webp?v=1766376731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e8b20dc030b537d452a4874dc3bf2b9be6875f.webp?v=1766376731","width":2000},{"alt":null,"id":26547165626467,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee2a181522d4490eb6a45a35bac18973a8baf2f6.webp?v=1766376732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee2a181522d4490eb6a45a35bac18973a8baf2f6.webp?v=1766376732","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43903435767907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA02","requires_shipping":true,"taxable":true,"featured_image":{"id":34986091184227,"product_id":7942085116003,"position":6,"created_at":"2025-12-22T12:12:06+08:00","updated_at":"2025-12-22T12:12:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729","variant_ids":[43903435767907]},"available":true,"name":"iPhone 14 Plus Mod NX Nyangsongi 幸運的 2 美元 - 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-NYA02","featured_media":{"alt":null,"id":26547164741731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43903435767907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA02","requires_shipping":true,"taxable":true,"featured_image":{"id":34986091184227,"product_id":7942085116003,"position":6,"created_at":"2025-12-22T12:12:06+08:00","updated_at":"2025-12-22T12:12:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729","variant_ids":[43903435767907]},"available":true,"name":"iPhone 14 Plus Mod NX Nyangsongi 幸運的 2 美元 - 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-NYA02","featured_media":{"alt":null,"id":26547164741731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c4b30cf37ab6c908c5c35f73cfba54b1f43ad8.webp?v=1766376729"}},"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: "停產"
}