$product = {"id":7769495175267,"title":"iPhone 12 Pro Max Mod NX ilovedoodle Mindful Cat - Love Yourself","handle":"iphone-12-pro-max-mod-nx-printable-xf47","description":null,"published_at":"2025-07-16T17:30:00+08:00","created_at":"2025-04-15T16:54:12+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 12 Pro Max","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":43302620430435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197185069155,"product_id":7769495175267,"position":2,"created_at":"2025-07-16T15:00:22+08:00","updated_at":"2025-07-16T15:00:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224","variant_ids":[43302620430435]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF47","featured_media":{"alt":null,"id":25829761024099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29.webp?v=1744707258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a404ff3a9f34237d5e0b03e9e5c945326e905ed_d6188d91-5ec7-4747-b583-25c1f04caf76.webp?v=1752649224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f6037b485683cdb39db146e0ac882220443d6d_23255147-179b-4f5a-9c41-613282105d45.webp?v=1752649225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52abfcf79f38fea1fd0db6daafc5354624425797_6a0b81dd-871f-4257-8690-7b10c955516d.webp?v=1752649225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29361778ea1695552890d992674d4474cb89d93a_3244eed2-9e44-4569-aef3-6df83fcc9dbe.webp?v=1752649226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fae7abce825f1c9c4f2001d33b64b4eb0388bb1_2b9b431a-3f83-487a-b740-dadadcb58dd0.webp?v=1752649226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ee42eddcbff5137eb1ecddb061c5bdfb364058_16710b65-c1e7-408c-8e6c-511d4b7c72be.webp?v=1752649227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfdf8bb3c93229745c42399166d3f08fd5f7a698_f0fda722-2bc5-4d24-8446-43019ab716d0.webp?v=1752649228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23933fa6344a0b24e650397911f57bb6a66368e_87a3f999-d9fe-4253-925f-daa34c72f6b3.webp?v=1752649228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6962da9a619efebe066d69b2a75badd31eecfa3b_e8528c0f-142a-4956-bd97-88e2bd864347.webp?v=1752649229"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29.webp?v=1744707258","options":["color"],"media":[{"alt":null,"id":25495607509091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29.webp?v=1744707258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29.webp?v=1744707258","width":2000},{"alt":null,"id":25829761024099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224","width":2000},{"alt":null,"id":25829761286243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a404ff3a9f34237d5e0b03e9e5c945326e905ed_d6188d91-5ec7-4747-b583-25c1f04caf76.webp?v=1752649224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a404ff3a9f34237d5e0b03e9e5c945326e905ed_d6188d91-5ec7-4747-b583-25c1f04caf76.webp?v=1752649224","width":2000},{"alt":null,"id":25829761450083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f6037b485683cdb39db146e0ac882220443d6d_23255147-179b-4f5a-9c41-613282105d45.webp?v=1752649225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f6037b485683cdb39db146e0ac882220443d6d_23255147-179b-4f5a-9c41-613282105d45.webp?v=1752649225","width":2000},{"alt":null,"id":25829761712227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52abfcf79f38fea1fd0db6daafc5354624425797_6a0b81dd-871f-4257-8690-7b10c955516d.webp?v=1752649225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52abfcf79f38fea1fd0db6daafc5354624425797_6a0b81dd-871f-4257-8690-7b10c955516d.webp?v=1752649225","width":2000},{"alt":null,"id":25829761974371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29361778ea1695552890d992674d4474cb89d93a_3244eed2-9e44-4569-aef3-6df83fcc9dbe.webp?v=1752649226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29361778ea1695552890d992674d4474cb89d93a_3244eed2-9e44-4569-aef3-6df83fcc9dbe.webp?v=1752649226","width":2000},{"alt":null,"id":25829762531427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fae7abce825f1c9c4f2001d33b64b4eb0388bb1_2b9b431a-3f83-487a-b740-dadadcb58dd0.webp?v=1752649226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fae7abce825f1c9c4f2001d33b64b4eb0388bb1_2b9b431a-3f83-487a-b740-dadadcb58dd0.webp?v=1752649226","width":2000},{"alt":null,"id":25829762859107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ee42eddcbff5137eb1ecddb061c5bdfb364058_16710b65-c1e7-408c-8e6c-511d4b7c72be.webp?v=1752649227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ee42eddcbff5137eb1ecddb061c5bdfb364058_16710b65-c1e7-408c-8e6c-511d4b7c72be.webp?v=1752649227","width":2000},{"alt":null,"id":25829763055715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfdf8bb3c93229745c42399166d3f08fd5f7a698_f0fda722-2bc5-4d24-8446-43019ab716d0.webp?v=1752649228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfdf8bb3c93229745c42399166d3f08fd5f7a698_f0fda722-2bc5-4d24-8446-43019ab716d0.webp?v=1752649228","width":2000},{"alt":null,"id":25829763317859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23933fa6344a0b24e650397911f57bb6a66368e_87a3f999-d9fe-4253-925f-daa34c72f6b3.webp?v=1752649228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23933fa6344a0b24e650397911f57bb6a66368e_87a3f999-d9fe-4253-925f-daa34c72f6b3.webp?v=1752649228","width":2000},{"alt":null,"id":25829763580003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6962da9a619efebe066d69b2a75badd31eecfa3b_e8528c0f-142a-4956-bd97-88e2bd864347.webp?v=1752649229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6962da9a619efebe066d69b2a75badd31eecfa3b_e8528c0f-142a-4956-bd97-88e2bd864347.webp?v=1752649229","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43302620430435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197185069155,"product_id":7769495175267,"position":2,"created_at":"2025-07-16T15:00:22+08:00","updated_at":"2025-07-16T15:00:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224","variant_ids":[43302620430435]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF47","featured_media":{"alt":null,"id":25829761024099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43302620430435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197185069155,"product_id":7769495175267,"position":2,"created_at":"2025-07-16T15:00:22+08:00","updated_at":"2025-07-16T15:00:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224","variant_ids":[43302620430435]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF47","featured_media":{"alt":null,"id":25829761024099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/214693a289b6c40a03c68cf752e537fa330e17fd_525eca61-b094-4dcb-bd69-732dbac26524.webp?v=1752649224"}},"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: "停產"
}