$product = {"id":7770051084387,"title":"iPhone 13 Pro Max Mod NX ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-13-pro-max-mod-nx-printable-xf55","description":null,"published_at":"2025-04-16T12:40:57+08:00","created_at":"2025-04-15T23:32:32+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 13 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":43305203630179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197086961763,"product_id":7770051084387,"position":2,"created_at":"2025-07-16T14:58:15+08:00","updated_at":"2025-07-16T14:58:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097","variant_ids":[43305203630179]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-XF55","featured_media":{"alt":null,"id":25829707743331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43305208479843,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197089878115,"product_id":7770051084387,"position":7,"created_at":"2025-07-16T14:58:19+08:00","updated_at":"2025-07-16T14:58:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab83cb4a2b8caf021bb0c21d4173dc4aba8591b5_e0fe44b7-abd0-445d-ac6d-7a40529147ea.webp?v=1752649100","variant_ids":[43305208479843]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-XF55","featured_media":{"alt":null,"id":25829709054051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab83cb4a2b8caf021bb0c21d4173dc4aba8591b5_e0fe44b7-abd0-445d-ac6d-7a40529147ea.webp?v=1752649100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91_4e98da4d-8509-4722-a14b-f68b9cbafd85.webp?v=1744731158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7aaa21530633fc27d111fb5caf0793fb111e08_f56208cc-4125-491d-81f9-c4dbecde6ed1.webp?v=1752649098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c881ab0874ece4f8d52c3dec72b4af910b9e31c4_4bfd4686-711d-4020-98f9-12ab3bab4130.webp?v=1752649098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d333f5406110ae3b5abdb4bc547455aa524a1868_2ad8b49d-2741-440d-b7d2-c74eaaa1009c.webp?v=1752649099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01b2915f34598b0b3f1c15881da65bcf792ee3d_23b3c2a5-4cf3-4a14-aaa8-66727b7205c6.webp?v=1752649100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab83cb4a2b8caf021bb0c21d4173dc4aba8591b5_e0fe44b7-abd0-445d-ac6d-7a40529147ea.webp?v=1752649100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ecac49cde855f519829b60cb518dc540ed9dce0_e994be2a-7c48-4e47-828c-cb2b64368068.webp?v=1752649101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419375c69ca162172ffc9e2ab8f06601d788337b_61d10f67-ad24-45f0-a8f2-aa9838ee9009.webp?v=1752649101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6a08e1c9ea620056471632571d81907a1647ed5_6d967c30-a0df-46cb-bfbb-ad153e20e763.webp?v=1752649102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19e3ba24613a8fb13f6251dd44c6e5c7edf0c92_883e54cd-5eb8-46f1-9059-b4cf8a103e87.webp?v=1752649103"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91_4e98da4d-8509-4722-a14b-f68b9cbafd85.webp?v=1744731158","options":["color"],"media":[{"alt":null,"id":25496803803235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91_4e98da4d-8509-4722-a14b-f68b9cbafd85.webp?v=1744731158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91_4e98da4d-8509-4722-a14b-f68b9cbafd85.webp?v=1744731158","width":2000},{"alt":null,"id":25829707743331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097","width":2000},{"alt":null,"id":25829707972707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7aaa21530633fc27d111fb5caf0793fb111e08_f56208cc-4125-491d-81f9-c4dbecde6ed1.webp?v=1752649098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7aaa21530633fc27d111fb5caf0793fb111e08_f56208cc-4125-491d-81f9-c4dbecde6ed1.webp?v=1752649098","width":2000},{"alt":null,"id":25829708202083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c881ab0874ece4f8d52c3dec72b4af910b9e31c4_4bfd4686-711d-4020-98f9-12ab3bab4130.webp?v=1752649098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c881ab0874ece4f8d52c3dec72b4af910b9e31c4_4bfd4686-711d-4020-98f9-12ab3bab4130.webp?v=1752649098","width":2000},{"alt":null,"id":25829708464227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d333f5406110ae3b5abdb4bc547455aa524a1868_2ad8b49d-2741-440d-b7d2-c74eaaa1009c.webp?v=1752649099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d333f5406110ae3b5abdb4bc547455aa524a1868_2ad8b49d-2741-440d-b7d2-c74eaaa1009c.webp?v=1752649099","width":2000},{"alt":null,"id":25829708759139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01b2915f34598b0b3f1c15881da65bcf792ee3d_23b3c2a5-4cf3-4a14-aaa8-66727b7205c6.webp?v=1752649100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01b2915f34598b0b3f1c15881da65bcf792ee3d_23b3c2a5-4cf3-4a14-aaa8-66727b7205c6.webp?v=1752649100","width":2000},{"alt":null,"id":25829709054051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab83cb4a2b8caf021bb0c21d4173dc4aba8591b5_e0fe44b7-abd0-445d-ac6d-7a40529147ea.webp?v=1752649100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab83cb4a2b8caf021bb0c21d4173dc4aba8591b5_e0fe44b7-abd0-445d-ac6d-7a40529147ea.webp?v=1752649100","width":2000},{"alt":null,"id":25829709316195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ecac49cde855f519829b60cb518dc540ed9dce0_e994be2a-7c48-4e47-828c-cb2b64368068.webp?v=1752649101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ecac49cde855f519829b60cb518dc540ed9dce0_e994be2a-7c48-4e47-828c-cb2b64368068.webp?v=1752649101","width":2000},{"alt":null,"id":25829709512803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419375c69ca162172ffc9e2ab8f06601d788337b_61d10f67-ad24-45f0-a8f2-aa9838ee9009.webp?v=1752649101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419375c69ca162172ffc9e2ab8f06601d788337b_61d10f67-ad24-45f0-a8f2-aa9838ee9009.webp?v=1752649101","width":2000},{"alt":null,"id":25829710364771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6a08e1c9ea620056471632571d81907a1647ed5_6d967c30-a0df-46cb-bfbb-ad153e20e763.webp?v=1752649102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6a08e1c9ea620056471632571d81907a1647ed5_6d967c30-a0df-46cb-bfbb-ad153e20e763.webp?v=1752649102","width":2000},{"alt":null,"id":25829710495843,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19e3ba24613a8fb13f6251dd44c6e5c7edf0c92_883e54cd-5eb8-46f1-9059-b4cf8a103e87.webp?v=1752649103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d19e3ba24613a8fb13f6251dd44c6e5c7edf0c92_883e54cd-5eb8-46f1-9059-b4cf8a103e87.webp?v=1752649103","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43305203630179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197086961763,"product_id":7770051084387,"position":2,"created_at":"2025-07-16T14:58:15+08:00","updated_at":"2025-07-16T14:58:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097","variant_ids":[43305203630179]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-XF55","featured_media":{"alt":null,"id":25829707743331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43305208479843,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197089878115,"product_id":7770051084387,"position":7,"created_at":"2025-07-16T14:58:19+08:00","updated_at":"2025-07-16T14:58:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab83cb4a2b8caf021bb0c21d4173dc4aba8591b5_e0fe44b7-abd0-445d-ac6d-7a40529147ea.webp?v=1752649100","variant_ids":[43305208479843]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-XF55","featured_media":{"alt":null,"id":25829709054051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab83cb4a2b8caf021bb0c21d4173dc4aba8591b5_e0fe44b7-abd0-445d-ac6d-7a40529147ea.webp?v=1752649100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43305203630179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197086961763,"product_id":7770051084387,"position":2,"created_at":"2025-07-16T14:58:15+08:00","updated_at":"2025-07-16T14:58:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097","variant_ids":[43305203630179]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-XF55","featured_media":{"alt":null,"id":25829707743331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ebc67051c0cf3cad2b5645d04aa6caf8d877a25_56847b0c-01e2-4f3f-975d-bbac3d712bd6.webp?v=1752649097"}},"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: "停產"
}