$product = {"id":7769858113635,"title":"iPhone 13 Pro Max Mod NX ilovedoodle Mindful Cat - Love Yourself","handle":"iphone-13-pro-max-mod-nx-printable-xf47","description":null,"published_at":"2025-04-16T13:59:25+08:00","created_at":"2025-04-15T21:19:55+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":43304268595299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34196545962083,"product_id":7769858113635,"position":4,"created_at":"2025-07-16T14:45:49+08:00","updated_at":"2025-07-16T14:45:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351","variant_ids":[43304268595299]},"available":true,"name":"iPhone 13 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":"NPB0123224-XF47","featured_media":{"alt":null,"id":25829413388387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304274067555,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34196549402723,"product_id":7769858113635,"position":10,"created_at":"2025-07-16T14:45:53+08:00","updated_at":"2025-07-16T14:45:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8bb7cd35730a8aa3769a86d9fda7182fbdfeef_cb04ee18-d1ea-435c-9c0c-8db0fd31d5dc.webp?v=1752648355","variant_ids":[43304274067555]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Mindful Cat - Love Yourself - 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-XF47","featured_media":{"alt":null,"id":25829415223395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8bb7cd35730a8aa3769a86d9fda7182fbdfeef_cb04ee18-d1ea-435c-9c0c-8db0fd31d5dc.webp?v=1752648355"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12db04d8a8478121f3f46b4326d1696217ab9876_cfaaa55e-89ad-4522-985a-4d582cbb3144.webp?v=1744723202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022add3ae31efe8dd892aeebb85685f6709516ed_32172a79-1c85-4c49-8a8b-2ce8b407af5a.webp?v=1752648349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1dca50372e4f65f100a2f29cfe5a61bee6156a_aacca8e4-32ed-4a65-a53d-41a5b5c9eb09.webp?v=1752648350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa4b57a062f6ceb35992b3a6cb22ede07c6df8a_5b38e03e-2d0f-4f44-99bd-b6baa29b7f75.webp?v=1752648351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda1eda66116457ad0b9e5a2ea3054d68555791e_c0f6a2cf-3d7a-4881-bc89-7514935ada94.webp?v=1752648352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53cd1993fc2032eddc4d8b544d5adfb1916ec1a2_077b80ce-99e1-4399-a1b2-7fc7511c38ad.webp?v=1752648352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14079915e5f067d813f96a6a60c3ac0a2053a45_f9514311-7404-40c0-90d3-feac67eec808.webp?v=1752648353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d87abd2bd574fd98113bca8adbf1a4d8769942f_1c9dd3bc-ffd1-4034-9113-d3a30ee99b94.webp?v=1752648354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8bb7cd35730a8aa3769a86d9fda7182fbdfeef_cb04ee18-d1ea-435c-9c0c-8db0fd31d5dc.webp?v=1752648355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a70b2cd46f58e77af6bd3d502530b1eee607df3_1ff1b42b-34e2-496f-a2c1-5ac0311eb163.webp?v=1752648355"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12db04d8a8478121f3f46b4326d1696217ab9876_cfaaa55e-89ad-4522-985a-4d582cbb3144.webp?v=1744723202","options":["color"],"media":[{"alt":null,"id":25496372183139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12db04d8a8478121f3f46b4326d1696217ab9876_cfaaa55e-89ad-4522-985a-4d582cbb3144.webp?v=1744723202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12db04d8a8478121f3f46b4326d1696217ab9876_cfaaa55e-89ad-4522-985a-4d582cbb3144.webp?v=1744723202","width":2000},{"alt":null,"id":25829412831331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022add3ae31efe8dd892aeebb85685f6709516ed_32172a79-1c85-4c49-8a8b-2ce8b407af5a.webp?v=1752648349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022add3ae31efe8dd892aeebb85685f6709516ed_32172a79-1c85-4c49-8a8b-2ce8b407af5a.webp?v=1752648349","width":2000},{"alt":null,"id":25829413191779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1dca50372e4f65f100a2f29cfe5a61bee6156a_aacca8e4-32ed-4a65-a53d-41a5b5c9eb09.webp?v=1752648350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1dca50372e4f65f100a2f29cfe5a61bee6156a_aacca8e4-32ed-4a65-a53d-41a5b5c9eb09.webp?v=1752648350","width":2000},{"alt":null,"id":25829413388387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351","width":2000},{"alt":null,"id":25829413814371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa4b57a062f6ceb35992b3a6cb22ede07c6df8a_5b38e03e-2d0f-4f44-99bd-b6baa29b7f75.webp?v=1752648351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa4b57a062f6ceb35992b3a6cb22ede07c6df8a_5b38e03e-2d0f-4f44-99bd-b6baa29b7f75.webp?v=1752648351","width":2000},{"alt":null,"id":25829414043747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda1eda66116457ad0b9e5a2ea3054d68555791e_c0f6a2cf-3d7a-4881-bc89-7514935ada94.webp?v=1752648352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda1eda66116457ad0b9e5a2ea3054d68555791e_c0f6a2cf-3d7a-4881-bc89-7514935ada94.webp?v=1752648352","width":2000},{"alt":null,"id":25829414338659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53cd1993fc2032eddc4d8b544d5adfb1916ec1a2_077b80ce-99e1-4399-a1b2-7fc7511c38ad.webp?v=1752648352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53cd1993fc2032eddc4d8b544d5adfb1916ec1a2_077b80ce-99e1-4399-a1b2-7fc7511c38ad.webp?v=1752648352","width":2000},{"alt":null,"id":25829414568035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14079915e5f067d813f96a6a60c3ac0a2053a45_f9514311-7404-40c0-90d3-feac67eec808.webp?v=1752648353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b14079915e5f067d813f96a6a60c3ac0a2053a45_f9514311-7404-40c0-90d3-feac67eec808.webp?v=1752648353","width":2000},{"alt":null,"id":25829414764643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d87abd2bd574fd98113bca8adbf1a4d8769942f_1c9dd3bc-ffd1-4034-9113-d3a30ee99b94.webp?v=1752648354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d87abd2bd574fd98113bca8adbf1a4d8769942f_1c9dd3bc-ffd1-4034-9113-d3a30ee99b94.webp?v=1752648354","width":2000},{"alt":null,"id":25829415223395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8bb7cd35730a8aa3769a86d9fda7182fbdfeef_cb04ee18-d1ea-435c-9c0c-8db0fd31d5dc.webp?v=1752648355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8bb7cd35730a8aa3769a86d9fda7182fbdfeef_cb04ee18-d1ea-435c-9c0c-8db0fd31d5dc.webp?v=1752648355","width":2000},{"alt":null,"id":25829415452771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a70b2cd46f58e77af6bd3d502530b1eee607df3_1ff1b42b-34e2-496f-a2c1-5ac0311eb163.webp?v=1752648355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a70b2cd46f58e77af6bd3d502530b1eee607df3_1ff1b42b-34e2-496f-a2c1-5ac0311eb163.webp?v=1752648355","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43304268595299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34196545962083,"product_id":7769858113635,"position":4,"created_at":"2025-07-16T14:45:49+08:00","updated_at":"2025-07-16T14:45:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351","variant_ids":[43304268595299]},"available":true,"name":"iPhone 13 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":"NPB0123224-XF47","featured_media":{"alt":null,"id":25829413388387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304274067555,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34196549402723,"product_id":7769858113635,"position":10,"created_at":"2025-07-16T14:45:53+08:00","updated_at":"2025-07-16T14:45:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8bb7cd35730a8aa3769a86d9fda7182fbdfeef_cb04ee18-d1ea-435c-9c0c-8db0fd31d5dc.webp?v=1752648355","variant_ids":[43304274067555]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Mindful Cat - Love Yourself - 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-XF47","featured_media":{"alt":null,"id":25829415223395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8bb7cd35730a8aa3769a86d9fda7182fbdfeef_cb04ee18-d1ea-435c-9c0c-8db0fd31d5dc.webp?v=1752648355"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304268595299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34196545962083,"product_id":7769858113635,"position":4,"created_at":"2025-07-16T14:45:49+08:00","updated_at":"2025-07-16T14:45:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351","variant_ids":[43304268595299]},"available":true,"name":"iPhone 13 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":"NPB0123224-XF47","featured_media":{"alt":null,"id":25829413388387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468977ca512a67ad9846d5c511e5e7a2919e8aef_a5ef306a-42ff-4c50-8ecd-51516727a2d3.webp?v=1752648351"}},"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: "停產" }