$product = {"id":7300870340707,"title":"iPhone 12 mini Mod NX noiinoii 賊笑雙仔","handle":"iphone-12-mini-mod-nx-printable-mw04","description":null,"published_at":"2024-06-11T16:12:15+08:00","created_at":"2024-04-11T14:33:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-noiinoii","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-noiinoii","device-iPhone 12 Mini","merge","reseller-noiinoii"],"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":41638455705699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":31259224080483,"product_id":7300870340707,"position":1,"created_at":"2024-04-11T17:01:13+08:00","updated_at":"2024-04-11T17:01:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073","variant_ids":[41638455705699]},"available":true,"name":"iPhone 12 mini Mod NX noiinoii 賊笑雙仔 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-MW04","featured_media":{"alt":null,"id":23646240669795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743596609635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":34515020906595,"product_id":7300870340707,"position":6,"created_at":"2025-09-22T16:17:17+08:00","updated_at":"2025-09-22T16:17:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b2174a91b64cb07fef76877e3aebaa7d10ef1c.webp?v=1758529039","variant_ids":[43743596609635]},"available":true,"name":"iPhone 12 mini Mod NX noiinoii 賊笑雙仔 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-MW04","featured_media":{"alt":null,"id":26085461819491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b2174a91b64cb07fef76877e3aebaa7d10ef1c.webp?v=1758529039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9348473f348e63a7b7dc8717224dec0e7465b60e.webp?v=1758529037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b37832510fe21610399e4a87fd86a0fca97ec3c.webp?v=1758529037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b9da6b4a516fc72e3865630210c15b9e2449dd.webp?v=1758529038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5168ada59bbc848186a151efcb61a018f8886d4f.webp?v=1758529039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b2174a91b64cb07fef76877e3aebaa7d10ef1c.webp?v=1758529039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21caf3dfa95a517d9d10f8bc75b5d66b150ed6d7.webp?v=1758529040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d4be40f075e28e2673618d0b59add5684bee0b.webp?v=1758529040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fb181ab9b61d497cae4ee04e016698104b55b3.webp?v=1758529041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17cb6628321dfcef78714dda6606de0b871a7e80.webp?v=1758529042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e99fb12fa24ae0eff4f6f3f7d21daec97c1360.webp?v=1758529043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b58b88bc05c5063f52a07da5efd9b35b691ea25.webp?v=1758529043"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073","options":["color"],"media":[{"alt":null,"id":23646240669795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073","width":2000},{"alt":null,"id":26085460246627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9348473f348e63a7b7dc8717224dec0e7465b60e.webp?v=1758529037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9348473f348e63a7b7dc8717224dec0e7465b60e.webp?v=1758529037","width":2000},{"alt":null,"id":26085460770915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b37832510fe21610399e4a87fd86a0fca97ec3c.webp?v=1758529037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b37832510fe21610399e4a87fd86a0fca97ec3c.webp?v=1758529037","width":2000},{"alt":null,"id":26085460967523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b9da6b4a516fc72e3865630210c15b9e2449dd.webp?v=1758529038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b9da6b4a516fc72e3865630210c15b9e2449dd.webp?v=1758529038","width":2000},{"alt":null,"id":26085461459043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5168ada59bbc848186a151efcb61a018f8886d4f.webp?v=1758529039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5168ada59bbc848186a151efcb61a018f8886d4f.webp?v=1758529039","width":2000},{"alt":null,"id":26085461819491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b2174a91b64cb07fef76877e3aebaa7d10ef1c.webp?v=1758529039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b2174a91b64cb07fef76877e3aebaa7d10ef1c.webp?v=1758529039","width":2000},{"alt":null,"id":26085462048867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21caf3dfa95a517d9d10f8bc75b5d66b150ed6d7.webp?v=1758529040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21caf3dfa95a517d9d10f8bc75b5d66b150ed6d7.webp?v=1758529040","width":2000},{"alt":null,"id":26085462540387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d4be40f075e28e2673618d0b59add5684bee0b.webp?v=1758529040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d4be40f075e28e2673618d0b59add5684bee0b.webp?v=1758529040","width":2000},{"alt":null,"id":26085462704227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fb181ab9b61d497cae4ee04e016698104b55b3.webp?v=1758529041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fb181ab9b61d497cae4ee04e016698104b55b3.webp?v=1758529041","width":2000},{"alt":null,"id":26085462868067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17cb6628321dfcef78714dda6606de0b871a7e80.webp?v=1758529042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17cb6628321dfcef78714dda6606de0b871a7e80.webp?v=1758529042","width":2000},{"alt":null,"id":26085463392355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e99fb12fa24ae0eff4f6f3f7d21daec97c1360.webp?v=1758529043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e99fb12fa24ae0eff4f6f3f7d21daec97c1360.webp?v=1758529043","width":2000},{"alt":null,"id":26085463556195,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b58b88bc05c5063f52a07da5efd9b35b691ea25.webp?v=1758529043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b58b88bc05c5063f52a07da5efd9b35b691ea25.webp?v=1758529043","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41638455705699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":31259224080483,"product_id":7300870340707,"position":1,"created_at":"2024-04-11T17:01:13+08:00","updated_at":"2024-04-11T17:01:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073","variant_ids":[41638455705699]},"available":true,"name":"iPhone 12 mini Mod NX noiinoii 賊笑雙仔 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-MW04","featured_media":{"alt":null,"id":23646240669795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743596609635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":34515020906595,"product_id":7300870340707,"position":6,"created_at":"2025-09-22T16:17:17+08:00","updated_at":"2025-09-22T16:17:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b2174a91b64cb07fef76877e3aebaa7d10ef1c.webp?v=1758529039","variant_ids":[43743596609635]},"available":true,"name":"iPhone 12 mini Mod NX noiinoii 賊笑雙仔 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-MW04","featured_media":{"alt":null,"id":26085461819491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0b2174a91b64cb07fef76877e3aebaa7d10ef1c.webp?v=1758529039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41638455705699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":31259224080483,"product_id":7300870340707,"position":1,"created_at":"2024-04-11T17:01:13+08:00","updated_at":"2024-04-11T17:01:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073","variant_ids":[41638455705699]},"available":true,"name":"iPhone 12 mini Mod NX noiinoii 賊笑雙仔 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-MW04","featured_media":{"alt":null,"id":23646240669795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2389b1ba4a1bba45a2f46635fb4e9c48a9aa7f34_55e48c05-6469-4db0-843d-c7e87d7c092a.webp?v=1712826073"}},"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: "停產"
}