$product = {"id":7937621819491,"title":"iPhone 14 Plus Mod NX Jin Young Choi 小心輕放","handle":"iphone-14-plus-mod-nx-cjy13","description":null,"published_at":"2025-12-12T09:38:38+08:00","created_at":"2025-12-11T10:03:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jychoioioi","device-iPhone 14 Plus","merge","reseller-jychoioioi"],"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":43883215061091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY13","requires_shipping":true,"taxable":true,"featured_image":{"id":34931145441379,"product_id":7937621819491,"position":11,"created_at":"2025-12-11T10:03:50+08:00","updated_at":"2025-12-11T10:03:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632","variant_ids":[43883215061091]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 小心輕放 - 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-CJY13","featured_media":{"alt":null,"id":26493519724643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c3ce49d77313b5f2bf075a9c7c7e0ea46a673c.webp?v=1765418627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90006de0c306cf81f1896e2bfd60d47e2032647c.webp?v=1765418628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7f33cca39bef721bbda383a9bdb488953f5e22.webp?v=1765418628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6413b81df184ae2d65175db78d09ef61b00528.webp?v=1765418629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd790942b621e73ad915b2808e7af9ecb7cea006.webp?v=1765418629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00310dd4481befca39a560096bbe5e9a9ccabbb0.webp?v=1765418629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72479e65979cfc7b990f18181158249dc197c850.webp?v=1765418630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6bad215bdc1993a2d3c3d49b282432275ac4980.webp?v=1765418630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f95883efe864d38950c04bb90831f2a4fc61fd0.webp?v=1765418631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1298c35740810b0be6f83dbab4993ea0b605ca.webp?v=1765418632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c79004e347fad6b95b0ac705e779320b4329b2f.webp?v=1765418633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af508812a3c5e633b53935bcda8f39ffa1961009.webp?v=1765418633"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c3ce49d77313b5f2bf075a9c7c7e0ea46a673c.webp?v=1765418627","options":["color"],"media":[{"alt":null,"id":26493517299811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c3ce49d77313b5f2bf075a9c7c7e0ea46a673c.webp?v=1765418627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c3ce49d77313b5f2bf075a9c7c7e0ea46a673c.webp?v=1765418627","width":2000},{"alt":null,"id":26493517496419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90006de0c306cf81f1896e2bfd60d47e2032647c.webp?v=1765418628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90006de0c306cf81f1896e2bfd60d47e2032647c.webp?v=1765418628","width":2000},{"alt":null,"id":26493517725795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7f33cca39bef721bbda383a9bdb488953f5e22.webp?v=1765418628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c7f33cca39bef721bbda383a9bdb488953f5e22.webp?v=1765418628","width":2000},{"alt":null,"id":26493517922403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6413b81df184ae2d65175db78d09ef61b00528.webp?v=1765418629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6413b81df184ae2d65175db78d09ef61b00528.webp?v=1765418629","width":2000},{"alt":null,"id":26493518086243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd790942b621e73ad915b2808e7af9ecb7cea006.webp?v=1765418629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd790942b621e73ad915b2808e7af9ecb7cea006.webp?v=1765418629","width":2000},{"alt":null,"id":26493518348387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00310dd4481befca39a560096bbe5e9a9ccabbb0.webp?v=1765418629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00310dd4481befca39a560096bbe5e9a9ccabbb0.webp?v=1765418629","width":2000},{"alt":null,"id":26493518708835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72479e65979cfc7b990f18181158249dc197c850.webp?v=1765418630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72479e65979cfc7b990f18181158249dc197c850.webp?v=1765418630","width":2000},{"alt":null,"id":26493519069283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6bad215bdc1993a2d3c3d49b282432275ac4980.webp?v=1765418630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6bad215bdc1993a2d3c3d49b282432275ac4980.webp?v=1765418630","width":2000},{"alt":null,"id":26493519331427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f95883efe864d38950c04bb90831f2a4fc61fd0.webp?v=1765418631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f95883efe864d38950c04bb90831f2a4fc61fd0.webp?v=1765418631","width":2000},{"alt":null,"id":26493519528035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1298c35740810b0be6f83dbab4993ea0b605ca.webp?v=1765418632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1298c35740810b0be6f83dbab4993ea0b605ca.webp?v=1765418632","width":2000},{"alt":null,"id":26493519724643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632","width":2000},{"alt":null,"id":26493519954019,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c79004e347fad6b95b0ac705e779320b4329b2f.webp?v=1765418633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c79004e347fad6b95b0ac705e779320b4329b2f.webp?v=1765418633","width":2000},{"alt":null,"id":26493520117859,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af508812a3c5e633b53935bcda8f39ffa1961009.webp?v=1765418633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af508812a3c5e633b53935bcda8f39ffa1961009.webp?v=1765418633","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43883215061091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY13","requires_shipping":true,"taxable":true,"featured_image":{"id":34931145441379,"product_id":7937621819491,"position":11,"created_at":"2025-12-11T10:03:50+08:00","updated_at":"2025-12-11T10:03:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632","variant_ids":[43883215061091]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 小心輕放 - 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-CJY13","featured_media":{"alt":null,"id":26493519724643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43883215061091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY13","requires_shipping":true,"taxable":true,"featured_image":{"id":34931145441379,"product_id":7937621819491,"position":11,"created_at":"2025-12-11T10:03:50+08:00","updated_at":"2025-12-11T10:03:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632","variant_ids":[43883215061091]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 小心輕放 - 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-CJY13","featured_media":{"alt":null,"id":26493519724643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa8967c85d54da206dad968862e4de15c1714dca.webp?v=1765418632"}},"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: "停產"
}