$product = {"id":7903449907299,"title":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 吉樂泳池","handle":"iphone-14-plus-mod-nx-printable-it31","description":null,"published_at":"2025-10-20T09:39:28+08:00","created_at":"2025-10-20T09:31:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-godgwawa","device-iPhone 14 Plus","merge","reseller-godgwawa"],"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":43786700226659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34673010180195,"product_id":7903449907299,"position":13,"created_at":"2025-10-20T09:31:43+08:00","updated_at":"2025-10-20T09:31:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905","variant_ids":[43786700226659]},"available":true,"name":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - 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-IT31","featured_media":{"alt":null,"id":26242269118563,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da911978c3515bf4a99c296a5fed9f0899a97de1.webp?v=1760923897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e4e7bd6f77138df73b6ed6d55e0991b1d43c0fa.webp?v=1760923897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ed113b5e5b04bfc58fa6b70c925d205ad1c045.webp?v=1760923898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829b98fee17fc5cb19edc8b80303377e2224bc89.webp?v=1760923899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a995a853d9c4b42f59a7c52f1a7da989999e2368.webp?v=1760923900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0262857102cfd25ea70584819303e491d738d983.webp?v=1760923900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/517adf61d75b05b1e5d259ecf3da3996b45dfb90.webp?v=1760923901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a5ce2635348f3d53bd092e4678fed8f32ce316.webp?v=1760923901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec72fdea85935ef5f764eca0963bcf99cf0cbac7.webp?v=1760923902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2218f294b4c3fc1513f154571f07fa65fe4f8a08.webp?v=1760923903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21772a443d892ed7ccb607b4cef5f548e80720e8.webp?v=1760923903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8877df92f10bf60ff7b6fac733e5ca22ec5c1c3.webp?v=1760923904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da911978c3515bf4a99c296a5fed9f0899a97de1.webp?v=1760923897","options":["color"],"media":[{"alt":null,"id":26242258894947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da911978c3515bf4a99c296a5fed9f0899a97de1.webp?v=1760923897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da911978c3515bf4a99c296a5fed9f0899a97de1.webp?v=1760923897","width":2000},{"alt":null,"id":26242259288163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e4e7bd6f77138df73b6ed6d55e0991b1d43c0fa.webp?v=1760923897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e4e7bd6f77138df73b6ed6d55e0991b1d43c0fa.webp?v=1760923897","width":2000},{"alt":null,"id":26242259583075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ed113b5e5b04bfc58fa6b70c925d205ad1c045.webp?v=1760923898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ed113b5e5b04bfc58fa6b70c925d205ad1c045.webp?v=1760923898","width":2000},{"alt":null,"id":26242260041827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829b98fee17fc5cb19edc8b80303377e2224bc89.webp?v=1760923899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/829b98fee17fc5cb19edc8b80303377e2224bc89.webp?v=1760923899","width":2000},{"alt":null,"id":26242260402275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a995a853d9c4b42f59a7c52f1a7da989999e2368.webp?v=1760923900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a995a853d9c4b42f59a7c52f1a7da989999e2368.webp?v=1760923900","width":2000},{"alt":null,"id":26242260697187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0262857102cfd25ea70584819303e491d738d983.webp?v=1760923900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0262857102cfd25ea70584819303e491d738d983.webp?v=1760923900","width":2000},{"alt":null,"id":26242261450851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/517adf61d75b05b1e5d259ecf3da3996b45dfb90.webp?v=1760923901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/517adf61d75b05b1e5d259ecf3da3996b45dfb90.webp?v=1760923901","width":2000},{"alt":null,"id":26242262368355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a5ce2635348f3d53bd092e4678fed8f32ce316.webp?v=1760923901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a5ce2635348f3d53bd092e4678fed8f32ce316.webp?v=1760923901","width":2000},{"alt":null,"id":26242263810147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec72fdea85935ef5f764eca0963bcf99cf0cbac7.webp?v=1760923902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec72fdea85935ef5f764eca0963bcf99cf0cbac7.webp?v=1760923902","width":2000},{"alt":null,"id":26242265415779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2218f294b4c3fc1513f154571f07fa65fe4f8a08.webp?v=1760923903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2218f294b4c3fc1513f154571f07fa65fe4f8a08.webp?v=1760923903","width":2000},{"alt":null,"id":26242266693731,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21772a443d892ed7ccb607b4cef5f548e80720e8.webp?v=1760923903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21772a443d892ed7ccb607b4cef5f548e80720e8.webp?v=1760923903","width":2000},{"alt":null,"id":26242268004451,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8877df92f10bf60ff7b6fac733e5ca22ec5c1c3.webp?v=1760923904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8877df92f10bf60ff7b6fac733e5ca22ec5c1c3.webp?v=1760923904","width":2000},{"alt":null,"id":26242269118563,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43786700226659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34673010180195,"product_id":7903449907299,"position":13,"created_at":"2025-10-20T09:31:43+08:00","updated_at":"2025-10-20T09:31:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905","variant_ids":[43786700226659]},"available":true,"name":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - 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-IT31","featured_media":{"alt":null,"id":26242269118563,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43786700226659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34673010180195,"product_id":7903449907299,"position":13,"created_at":"2025-10-20T09:31:43+08:00","updated_at":"2025-10-20T09:31:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905","variant_ids":[43786700226659]},"available":true,"name":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - 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-IT31","featured_media":{"alt":null,"id":26242269118563,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d9a64a35864dba159d799535b1e1ced42047a.webp?v=1760923905"}},"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: "停產"
}