$product = {"id":7769427050595,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Cat People - 貓派","handle":"iphone-8-mod-nx-printable-xf54","description":null,"published_at":"2025-07-16T17:37:36+08:00","created_at":"2025-04-15T15:57:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 8","merge","reseller-ilovedoodle"],"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":43302291964003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34196771733603,"product_id":7769427050595,"position":5,"created_at":"2025-07-16T14:51:02+08:00","updated_at":"2025-07-16T14:51:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663","variant_ids":[43302291964003]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF54","featured_media":{"alt":null,"id":25829536596067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07484786bd8bded4c0153e83953982714016d596.webp?v=1744703830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df08b4e4c95b81086e8158f2514c8a2761af350a_76826c57-bc51-4edd-aaba-e41ea38c74a0.webp?v=1752648662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8871038a1ea852c5c90ea2eb4cda9cd8e4545e19_52ff6162-4480-4512-a822-03e4af74ac96.webp?v=1752648663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d60339ec4717e3cb3273455ddb8d03907fe58f5c_27245e49-c170-4b7c-a7e9-ce4e4f5a436e.webp?v=1752648663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f437b09e9b1100e693cc5f3e587bdacaa3fbd7ed_6607ec93-e9fc-4725-8f94-dcad2dd87ea0.webp?v=1752648664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c14197f96a900f9b03dc957fd76bee6bad3a665b_e6af5102-d7d8-4b82-bef6-e492c8bb46e1.webp?v=1752648665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b5947d8d7870397be4300c7a737059636c739d5_c64be833-ecde-4665-82bb-81ab081dce49.webp?v=1752648665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc2a3757e1e67779e1b0b83d669e95c74945b70_a10a6ff6-2289-4f1a-ad7b-c5ef9d207f2b.webp?v=1752648666"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07484786bd8bded4c0153e83953982714016d596.webp?v=1744703830","options":["color"],"media":[{"alt":null,"id":25495393042531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07484786bd8bded4c0153e83953982714016d596.webp?v=1744703830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07484786bd8bded4c0153e83953982714016d596.webp?v=1744703830","width":2000},{"alt":null,"id":25829535252579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df08b4e4c95b81086e8158f2514c8a2761af350a_76826c57-bc51-4edd-aaba-e41ea38c74a0.webp?v=1752648662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df08b4e4c95b81086e8158f2514c8a2761af350a_76826c57-bc51-4edd-aaba-e41ea38c74a0.webp?v=1752648662","width":2000},{"alt":null,"id":25829536039011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8871038a1ea852c5c90ea2eb4cda9cd8e4545e19_52ff6162-4480-4512-a822-03e4af74ac96.webp?v=1752648663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8871038a1ea852c5c90ea2eb4cda9cd8e4545e19_52ff6162-4480-4512-a822-03e4af74ac96.webp?v=1752648663","width":2000},{"alt":null,"id":25829536333923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d60339ec4717e3cb3273455ddb8d03907fe58f5c_27245e49-c170-4b7c-a7e9-ce4e4f5a436e.webp?v=1752648663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d60339ec4717e3cb3273455ddb8d03907fe58f5c_27245e49-c170-4b7c-a7e9-ce4e4f5a436e.webp?v=1752648663","width":2000},{"alt":null,"id":25829536596067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663","width":2000},{"alt":null,"id":25829536792675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f437b09e9b1100e693cc5f3e587bdacaa3fbd7ed_6607ec93-e9fc-4725-8f94-dcad2dd87ea0.webp?v=1752648664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f437b09e9b1100e693cc5f3e587bdacaa3fbd7ed_6607ec93-e9fc-4725-8f94-dcad2dd87ea0.webp?v=1752648664","width":2000},{"alt":null,"id":25829536923747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c14197f96a900f9b03dc957fd76bee6bad3a665b_e6af5102-d7d8-4b82-bef6-e492c8bb46e1.webp?v=1752648665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c14197f96a900f9b03dc957fd76bee6bad3a665b_e6af5102-d7d8-4b82-bef6-e492c8bb46e1.webp?v=1752648665","width":2000},{"alt":null,"id":25829537054819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b5947d8d7870397be4300c7a737059636c739d5_c64be833-ecde-4665-82bb-81ab081dce49.webp?v=1752648665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b5947d8d7870397be4300c7a737059636c739d5_c64be833-ecde-4665-82bb-81ab081dce49.webp?v=1752648665","width":2000},{"alt":null,"id":25829537316963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc2a3757e1e67779e1b0b83d669e95c74945b70_a10a6ff6-2289-4f1a-ad7b-c5ef9d207f2b.webp?v=1752648666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc2a3757e1e67779e1b0b83d669e95c74945b70_a10a6ff6-2289-4f1a-ad7b-c5ef9d207f2b.webp?v=1752648666","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43302291964003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34196771733603,"product_id":7769427050595,"position":5,"created_at":"2025-07-16T14:51:02+08:00","updated_at":"2025-07-16T14:51:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663","variant_ids":[43302291964003]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF54","featured_media":{"alt":null,"id":25829536596067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43302291964003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34196771733603,"product_id":7769427050595,"position":5,"created_at":"2025-07-16T14:51:02+08:00","updated_at":"2025-07-16T14:51:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663","variant_ids":[43302291964003]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF54","featured_media":{"alt":null,"id":25829536596067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f485cbb1e5330fcbdd09c9a7328c4b1ce054f2_07bc658f-8bff-43fa-87eb-5be025a0b759.webp?v=1752648663"}},"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: "停產"
}