$product = {"id":7728412688483,"title":"iPhone XS Mod NX 小高潮色計事務所 LOVE is LOVE","handle":"iphone-xs-mod-nx-printable-iku01","description":null,"published_at":"2025-02-05T17:17:09+08:00","created_at":"2025-02-05T11:32:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-小高潮色計事務所 ikuiku studio","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ikuiku-studio","device-iPhone XS","merge","reseller-ikuiku-studio"],"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":43155613122659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108424-IKU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34515651526755,"product_id":7728412688483,"position":8,"created_at":"2025-09-22T16:44:27+08:00","updated_at":"2025-09-22T16:44:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670","variant_ids":[43155613122659]},"available":true,"name":"iPhone XS Mod NX 小高潮色計事務所 LOVE is LOVE - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108424-IKU01","featured_media":{"alt":null,"id":26086088704099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74f581bbbbaec077af9e335cc3805e06fb212442.webp?v=1738726334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb92abb3cb70ed3bf51f10d2f06a80ec271f252b.webp?v=1758530666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e1e963223e5ae55da98cacd1d21487d3a02b03.webp?v=1758530667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f47a599112cfedb2292785daf7e1bc1cf97476e5.webp?v=1758530667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bc9eff275265f1b6550921432edd19cec1d15f4.webp?v=1758530668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c652450d0e2b6b10ef635ad7fa616d78cd3fb8.webp?v=1758530668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ea2069c9f40195d0392b10ef764abdee74a7b19.webp?v=1758530669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b04e66ca6540676829707c5531b1219a26ff14ec.webp?v=1758530670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7efcb810ac758246ff0a3392b1d45cd53f8a9ac.webp?v=1758530671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9364d059309393da193de1dbea01b7880158587d.webp?v=1758530671"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74f581bbbbaec077af9e335cc3805e06fb212442.webp?v=1738726334","options":["color"],"media":[{"alt":null,"id":25254932938851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74f581bbbbaec077af9e335cc3805e06fb212442.webp?v=1738726334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74f581bbbbaec077af9e335cc3805e06fb212442.webp?v=1738726334","width":2000},{"alt":null,"id":26086087688291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb92abb3cb70ed3bf51f10d2f06a80ec271f252b.webp?v=1758530666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb92abb3cb70ed3bf51f10d2f06a80ec271f252b.webp?v=1758530666","width":2000},{"alt":null,"id":26086087819363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e1e963223e5ae55da98cacd1d21487d3a02b03.webp?v=1758530667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e1e963223e5ae55da98cacd1d21487d3a02b03.webp?v=1758530667","width":2000},{"alt":null,"id":26086088114275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f47a599112cfedb2292785daf7e1bc1cf97476e5.webp?v=1758530667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f47a599112cfedb2292785daf7e1bc1cf97476e5.webp?v=1758530667","width":2000},{"alt":null,"id":26086088278115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bc9eff275265f1b6550921432edd19cec1d15f4.webp?v=1758530668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bc9eff275265f1b6550921432edd19cec1d15f4.webp?v=1758530668","width":2000},{"alt":null,"id":26086088409187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c652450d0e2b6b10ef635ad7fa616d78cd3fb8.webp?v=1758530668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c652450d0e2b6b10ef635ad7fa616d78cd3fb8.webp?v=1758530668","width":2000},{"alt":null,"id":26086088540259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ea2069c9f40195d0392b10ef764abdee74a7b19.webp?v=1758530669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ea2069c9f40195d0392b10ef764abdee74a7b19.webp?v=1758530669","width":2000},{"alt":null,"id":26086088704099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670","width":2000},{"alt":null,"id":26086088867939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b04e66ca6540676829707c5531b1219a26ff14ec.webp?v=1758530670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b04e66ca6540676829707c5531b1219a26ff14ec.webp?v=1758530670","width":2000},{"alt":null,"id":26086089261155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7efcb810ac758246ff0a3392b1d45cd53f8a9ac.webp?v=1758530671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7efcb810ac758246ff0a3392b1d45cd53f8a9ac.webp?v=1758530671","width":2000},{"alt":null,"id":26086089359459,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9364d059309393da193de1dbea01b7880158587d.webp?v=1758530671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9364d059309393da193de1dbea01b7880158587d.webp?v=1758530671","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43155613122659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108424-IKU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34515651526755,"product_id":7728412688483,"position":8,"created_at":"2025-09-22T16:44:27+08:00","updated_at":"2025-09-22T16:44:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670","variant_ids":[43155613122659]},"available":true,"name":"iPhone XS Mod NX 小高潮色計事務所 LOVE is LOVE - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108424-IKU01","featured_media":{"alt":null,"id":26086088704099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43155613122659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108424-IKU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34515651526755,"product_id":7728412688483,"position":8,"created_at":"2025-09-22T16:44:27+08:00","updated_at":"2025-09-22T16:44:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670","variant_ids":[43155613122659]},"available":true,"name":"iPhone XS Mod NX 小高潮色計事務所 LOVE is LOVE - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108424-IKU01","featured_media":{"alt":null,"id":26086088704099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bba494a954cab6e12ee5a2919d11db74073f3c2.webp?v=1758530670"}},"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: "停產"
}