$product = {"id":7769638207587,"title":"iPhone 12 Pro Max Mod NX ilovedoodle The Sun and Cat - 太陽與貓","handle":"iphone-12-pro-max-mod-nx-printable-xf52","description":null,"published_at":"2025-07-16T17:15:20+08:00","created_at":"2025-04-15T18:46:44+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":43303284015203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34196842971235,"product_id":7769638207587,"position":5,"created_at":"2025-07-16T14:52:33+08:00","updated_at":"2025-07-16T14:52:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755","variant_ids":[43303284015203]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25829575229539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d_275f0fc5-6a1c-481c-aef8-0ed050e418cb.webp?v=1744714011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80bcdcb592c3fd00e2f9bc6a1a9eeb3b62e724da_6820d53d-77b6-40ad-b90f-19921c1f153e.webp?v=1752648754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5cc2ee430ba81a64fdab734792db5290d61859_a9582d95-86b9-4945-a038-3fc206dc10e1.webp?v=1752648754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f9cb126fff97583bc67b3da7fb5e9b3e08fe602_1f3c41d9-9ba8-4a0e-9e77-7974747d0165.webp?v=1752648755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3c27ed44a11341a54249cc75f7eccdfbe8d9ce_46c9e505-372b-456c-b08e-ac688b6df87a.webp?v=1752648756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4359d50b4c1b4a068841675a91793af8a46dab7_fc4605bb-9da2-4965-99db-c26874ecc542.webp?v=1752648756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4bd6a48a96dc4731efc92a4bfb371540de3ddc_e67c87b7-ac92-407d-b1cd-84659bc9807e.webp?v=1752648757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e81b877db4bd6ae2a75fb28692dea0209bed4516_d856546c-01cf-4ed4-92b7-19879f95c6ba.webp?v=1752648758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/716be0cda3ba0a134367e1c498c68228bd544328_fb135617-4584-43c0-9525-20be6df82aa6.webp?v=1752648759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/339e0c853fe378e5baa36ad0f37a9ef90f776c25_04a5c563-a6f8-425c-91d3-e9d23f1b308d.webp?v=1752648759"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d_275f0fc5-6a1c-481c-aef8-0ed050e418cb.webp?v=1744714011","options":["color"],"media":[{"alt":null,"id":25496027693155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d_275f0fc5-6a1c-481c-aef8-0ed050e418cb.webp?v=1744714011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277964875685c1a00c1d2c17866fd4b0b1fabe1d_275f0fc5-6a1c-481c-aef8-0ed050e418cb.webp?v=1744714011","width":2000},{"alt":null,"id":25829574705251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80bcdcb592c3fd00e2f9bc6a1a9eeb3b62e724da_6820d53d-77b6-40ad-b90f-19921c1f153e.webp?v=1752648754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80bcdcb592c3fd00e2f9bc6a1a9eeb3b62e724da_6820d53d-77b6-40ad-b90f-19921c1f153e.webp?v=1752648754","width":2000},{"alt":null,"id":25829574869091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5cc2ee430ba81a64fdab734792db5290d61859_a9582d95-86b9-4945-a038-3fc206dc10e1.webp?v=1752648754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b5cc2ee430ba81a64fdab734792db5290d61859_a9582d95-86b9-4945-a038-3fc206dc10e1.webp?v=1752648754","width":2000},{"alt":null,"id":25829575065699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f9cb126fff97583bc67b3da7fb5e9b3e08fe602_1f3c41d9-9ba8-4a0e-9e77-7974747d0165.webp?v=1752648755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f9cb126fff97583bc67b3da7fb5e9b3e08fe602_1f3c41d9-9ba8-4a0e-9e77-7974747d0165.webp?v=1752648755","width":2000},{"alt":null,"id":25829575229539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755","width":2000},{"alt":null,"id":25829575426147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3c27ed44a11341a54249cc75f7eccdfbe8d9ce_46c9e505-372b-456c-b08e-ac688b6df87a.webp?v=1752648756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3c27ed44a11341a54249cc75f7eccdfbe8d9ce_46c9e505-372b-456c-b08e-ac688b6df87a.webp?v=1752648756","width":2000},{"alt":null,"id":25829575688291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4359d50b4c1b4a068841675a91793af8a46dab7_fc4605bb-9da2-4965-99db-c26874ecc542.webp?v=1752648756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4359d50b4c1b4a068841675a91793af8a46dab7_fc4605bb-9da2-4965-99db-c26874ecc542.webp?v=1752648756","width":2000},{"alt":null,"id":25829575917667,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4bd6a48a96dc4731efc92a4bfb371540de3ddc_e67c87b7-ac92-407d-b1cd-84659bc9807e.webp?v=1752648757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4bd6a48a96dc4731efc92a4bfb371540de3ddc_e67c87b7-ac92-407d-b1cd-84659bc9807e.webp?v=1752648757","width":2000},{"alt":null,"id":25829576441955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e81b877db4bd6ae2a75fb28692dea0209bed4516_d856546c-01cf-4ed4-92b7-19879f95c6ba.webp?v=1752648758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e81b877db4bd6ae2a75fb28692dea0209bed4516_d856546c-01cf-4ed4-92b7-19879f95c6ba.webp?v=1752648758","width":2000},{"alt":null,"id":25829576704099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/716be0cda3ba0a134367e1c498c68228bd544328_fb135617-4584-43c0-9525-20be6df82aa6.webp?v=1752648759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/716be0cda3ba0a134367e1c498c68228bd544328_fb135617-4584-43c0-9525-20be6df82aa6.webp?v=1752648759","width":2000},{"alt":null,"id":25829576966243,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/339e0c853fe378e5baa36ad0f37a9ef90f776c25_04a5c563-a6f8-425c-91d3-e9d23f1b308d.webp?v=1752648759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/339e0c853fe378e5baa36ad0f37a9ef90f776c25_04a5c563-a6f8-425c-91d3-e9d23f1b308d.webp?v=1752648759","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43303284015203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34196842971235,"product_id":7769638207587,"position":5,"created_at":"2025-07-16T14:52:33+08:00","updated_at":"2025-07-16T14:52:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755","variant_ids":[43303284015203]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25829575229539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43303284015203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34196842971235,"product_id":7769638207587,"position":5,"created_at":"2025-07-16T14:52:33+08:00","updated_at":"2025-07-16T14:52:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755","variant_ids":[43303284015203]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25829575229539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d82e0dd944d9983426dc4c376ade5db92389fc_a5fad822-228f-4d15-9e32-e08c4d060003.webp?v=1752648755"}},"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: "停產"
}