$product = {"id":7769582043235,"title":"iPhone 12 Pro Max Mod NX ilovedoodle Cat Dive - 跳水貓咪","handle":"iphone-12-pro-max-mod-nx-printable-xf51","description":null,"published_at":"2025-07-16T17:21:26+08:00","created_at":"2025-04-15T18:04:13+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":43303036387427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34196588658787,"product_id":7769582043235,"position":4,"created_at":"2025-07-16T14:46:46+08:00","updated_at":"2025-07-16T14:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408","variant_ids":[43303036387427]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Cat Dive - 跳水貓咪 - 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-XF51","featured_media":{"alt":null,"id":25829436522595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3210e526b931ca669f9a4d06500583cbd977ba.webp?v=1744711460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/324775748c3bd092fbbd25a74075adab8896f26a_af841a48-ee0d-4573-b0d6-90dfa75fad12.webp?v=1752648407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0a1b47a5b5931630aa6e9a73ceba8e42fe31eea_6b0c9061-fb3e-47bb-976b-b1582309d276.webp?v=1752648408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d28a8307536cae5de6914969cccae2d7d892f54_b1dd528b-aa5b-4cb8-89ad-fb0ddc2e74a6.webp?v=1752648409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bdde025e4e1e2f0284dc14a77c1a8b906e4fcd_d96ef9d7-026e-4f01-96b9-ebad504355f5.webp?v=1752648409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3e92f4356871059805576b918a49a2a789ecab_e4b868cf-71c9-4983-b7a1-5618807e48e2.webp?v=1752648409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3407b2f648b5180bffe4541540b714e48f05f7ce_300c68dd-2ec3-49ec-b5ac-d2669a96def0.webp?v=1752648410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c445fb894e1c5c462ebd406c4b15d619711479_be3fea78-f669-49ac-9cdd-c81b42f5f02f.webp?v=1752648411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375152578582f532a6daf2b69f3be8bcf5d2660b_17d30679-ffc1-4942-b240-062f188f9fa7.webp?v=1752648411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efd7350aea14c6f14bdb45b59b6423182624780_1a74cdf6-dcdb-4f6a-883c-6d6f57e74ee7.webp?v=1752648412"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3210e526b931ca669f9a4d06500583cbd977ba.webp?v=1744711460","options":["color"],"media":[{"alt":null,"id":25495869259875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3210e526b931ca669f9a4d06500583cbd977ba.webp?v=1744711460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3210e526b931ca669f9a4d06500583cbd977ba.webp?v=1744711460","width":2000},{"alt":null,"id":25829436260451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/324775748c3bd092fbbd25a74075adab8896f26a_af841a48-ee0d-4573-b0d6-90dfa75fad12.webp?v=1752648407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/324775748c3bd092fbbd25a74075adab8896f26a_af841a48-ee0d-4573-b0d6-90dfa75fad12.webp?v=1752648407","width":2000},{"alt":null,"id":25829436391523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0a1b47a5b5931630aa6e9a73ceba8e42fe31eea_6b0c9061-fb3e-47bb-976b-b1582309d276.webp?v=1752648408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0a1b47a5b5931630aa6e9a73ceba8e42fe31eea_6b0c9061-fb3e-47bb-976b-b1582309d276.webp?v=1752648408","width":2000},{"alt":null,"id":25829436522595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408","width":2000},{"alt":null,"id":25829436883043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d28a8307536cae5de6914969cccae2d7d892f54_b1dd528b-aa5b-4cb8-89ad-fb0ddc2e74a6.webp?v=1752648409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d28a8307536cae5de6914969cccae2d7d892f54_b1dd528b-aa5b-4cb8-89ad-fb0ddc2e74a6.webp?v=1752648409","width":2000},{"alt":null,"id":25829437112419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bdde025e4e1e2f0284dc14a77c1a8b906e4fcd_d96ef9d7-026e-4f01-96b9-ebad504355f5.webp?v=1752648409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bdde025e4e1e2f0284dc14a77c1a8b906e4fcd_d96ef9d7-026e-4f01-96b9-ebad504355f5.webp?v=1752648409","width":2000},{"alt":null,"id":25829437341795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3e92f4356871059805576b918a49a2a789ecab_e4b868cf-71c9-4983-b7a1-5618807e48e2.webp?v=1752648409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3e92f4356871059805576b918a49a2a789ecab_e4b868cf-71c9-4983-b7a1-5618807e48e2.webp?v=1752648409","width":2000},{"alt":null,"id":25829437603939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3407b2f648b5180bffe4541540b714e48f05f7ce_300c68dd-2ec3-49ec-b5ac-d2669a96def0.webp?v=1752648410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3407b2f648b5180bffe4541540b714e48f05f7ce_300c68dd-2ec3-49ec-b5ac-d2669a96def0.webp?v=1752648410","width":2000},{"alt":null,"id":25829437866083,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c445fb894e1c5c462ebd406c4b15d619711479_be3fea78-f669-49ac-9cdd-c81b42f5f02f.webp?v=1752648411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c445fb894e1c5c462ebd406c4b15d619711479_be3fea78-f669-49ac-9cdd-c81b42f5f02f.webp?v=1752648411","width":2000},{"alt":null,"id":25829438095459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375152578582f532a6daf2b69f3be8bcf5d2660b_17d30679-ffc1-4942-b240-062f188f9fa7.webp?v=1752648411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375152578582f532a6daf2b69f3be8bcf5d2660b_17d30679-ffc1-4942-b240-062f188f9fa7.webp?v=1752648411","width":2000},{"alt":null,"id":25829438259299,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efd7350aea14c6f14bdb45b59b6423182624780_1a74cdf6-dcdb-4f6a-883c-6d6f57e74ee7.webp?v=1752648412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efd7350aea14c6f14bdb45b59b6423182624780_1a74cdf6-dcdb-4f6a-883c-6d6f57e74ee7.webp?v=1752648412","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43303036387427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34196588658787,"product_id":7769582043235,"position":4,"created_at":"2025-07-16T14:46:46+08:00","updated_at":"2025-07-16T14:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408","variant_ids":[43303036387427]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Cat Dive - 跳水貓咪 - 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-XF51","featured_media":{"alt":null,"id":25829436522595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43303036387427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34196588658787,"product_id":7769582043235,"position":4,"created_at":"2025-07-16T14:46:46+08:00","updated_at":"2025-07-16T14:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408","variant_ids":[43303036387427]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Cat Dive - 跳水貓咪 - 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-XF51","featured_media":{"alt":null,"id":25829436522595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56620376e2ecf7d76bc1d080df7bdb8608357a66_e22741af-e60c-4c29-bc22-57cf5093862c.webp?v=1752648408"}},"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: "停產"
}