$product = {"id":7769903562851,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-xf47","description":null,"published_at":"2025-04-16T13:39:06+08:00","created_at":"2025-04-15T21:55:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 12 Pro Max","merge","reseller-ilovedoodle"],"price":110000,"price_min":110000,"price_max":110000,"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":43304516255843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197858779235,"product_id":7769903562851,"position":5,"created_at":"2025-07-16T15:23:39+08:00","updated_at":"2025-07-16T15:23:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620","variant_ids":[43304516255843]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF47","featured_media":{"alt":null,"id":25830140346467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29_cb807b90-4883-4fc6-8f91-55cc4759e448.webp?v=1744725349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b06dc8f0b2990df0f022aeb4ba5438aa23961_e3d37a50-86bd-4447-95b7-8532e982b090.webp?v=1752650619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8874dc80f1ef7b6373e61ed51dd06284db2fbc9_10bf8e45-2dc5-4a35-abdc-1e69b3fdbe46.webp?v=1752650619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e10749e3b4c295b101b881f936ace796b1c01a1f_837dce82-af94-429f-bed0-d2ee9c5fd832.webp?v=1752650620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2722a258c4089f44c4a1fb0322bba2a9d5a7b7a5_3ec6e3cd-729e-44c1-bf30-413679f03be2.webp?v=1752650621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83ff182f23ef6df34236fdeb056e0441e83c36a_74abbd2f-b620-451b-a013-48c39e593df2.webp?v=1752650622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9405466e0216afe7d368e53e5173610cca5b2967_cb74d197-48e6-4595-af67-d69e4a139c06.webp?v=1752650622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f85d785be88f28588f659cd85b2e08a34002641_8c4bd40c-3a2e-46b2-bd35-bbf82500489a.webp?v=1752650623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3fb1b3140d89d4305854670131b1edeb246ec94_5317aa9d-6bf8-4650-95a4-1d3837709894.webp?v=1752650624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac814136b6da13a99ab7fad5d3d8b5320bcea98_d19d4ace-64c9-42d5-88c3-eeab6df34a01.webp?v=1752650625"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29_cb807b90-4883-4fc6-8f91-55cc4759e448.webp?v=1744725349","options":["color"],"media":[{"alt":null,"id":25496475304035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29_cb807b90-4883-4fc6-8f91-55cc4759e448.webp?v=1744725349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ea63cce5cf5481d7d48aacee5a43adbc72dfd29_cb807b90-4883-4fc6-8f91-55cc4759e448.webp?v=1744725349","width":2000},{"alt":null,"id":25830139068515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b06dc8f0b2990df0f022aeb4ba5438aa23961_e3d37a50-86bd-4447-95b7-8532e982b090.webp?v=1752650619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204b06dc8f0b2990df0f022aeb4ba5438aa23961_e3d37a50-86bd-4447-95b7-8532e982b090.webp?v=1752650619","width":2000},{"alt":null,"id":25830139461731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8874dc80f1ef7b6373e61ed51dd06284db2fbc9_10bf8e45-2dc5-4a35-abdc-1e69b3fdbe46.webp?v=1752650619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8874dc80f1ef7b6373e61ed51dd06284db2fbc9_10bf8e45-2dc5-4a35-abdc-1e69b3fdbe46.webp?v=1752650619","width":2000},{"alt":null,"id":25830139756643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e10749e3b4c295b101b881f936ace796b1c01a1f_837dce82-af94-429f-bed0-d2ee9c5fd832.webp?v=1752650620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e10749e3b4c295b101b881f936ace796b1c01a1f_837dce82-af94-429f-bed0-d2ee9c5fd832.webp?v=1752650620","width":2000},{"alt":null,"id":25830140346467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620","width":2000},{"alt":null,"id":25830140543075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2722a258c4089f44c4a1fb0322bba2a9d5a7b7a5_3ec6e3cd-729e-44c1-bf30-413679f03be2.webp?v=1752650621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2722a258c4089f44c4a1fb0322bba2a9d5a7b7a5_3ec6e3cd-729e-44c1-bf30-413679f03be2.webp?v=1752650621","width":2000},{"alt":null,"id":25830140706915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83ff182f23ef6df34236fdeb056e0441e83c36a_74abbd2f-b620-451b-a013-48c39e593df2.webp?v=1752650622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83ff182f23ef6df34236fdeb056e0441e83c36a_74abbd2f-b620-451b-a013-48c39e593df2.webp?v=1752650622","width":2000},{"alt":null,"id":25830140870755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9405466e0216afe7d368e53e5173610cca5b2967_cb74d197-48e6-4595-af67-d69e4a139c06.webp?v=1752650622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9405466e0216afe7d368e53e5173610cca5b2967_cb74d197-48e6-4595-af67-d69e4a139c06.webp?v=1752650622","width":2000},{"alt":null,"id":25830140969059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f85d785be88f28588f659cd85b2e08a34002641_8c4bd40c-3a2e-46b2-bd35-bbf82500489a.webp?v=1752650623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f85d785be88f28588f659cd85b2e08a34002641_8c4bd40c-3a2e-46b2-bd35-bbf82500489a.webp?v=1752650623","width":2000},{"alt":null,"id":25830141165667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3fb1b3140d89d4305854670131b1edeb246ec94_5317aa9d-6bf8-4650-95a4-1d3837709894.webp?v=1752650624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3fb1b3140d89d4305854670131b1edeb246ec94_5317aa9d-6bf8-4650-95a4-1d3837709894.webp?v=1752650624","width":2000},{"alt":null,"id":25830141296739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac814136b6da13a99ab7fad5d3d8b5320bcea98_d19d4ace-64c9-42d5-88c3-eeab6df34a01.webp?v=1752650625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ac814136b6da13a99ab7fad5d3d8b5320bcea98_d19d4ace-64c9-42d5-88c3-eeab6df34a01.webp?v=1752650625","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43304516255843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197858779235,"product_id":7769903562851,"position":5,"created_at":"2025-07-16T15:23:39+08:00","updated_at":"2025-07-16T15:23:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620","variant_ids":[43304516255843]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF47","featured_media":{"alt":null,"id":25830140346467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304516255843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197858779235,"product_id":7769903562851,"position":5,"created_at":"2025-07-16T15:23:39+08:00","updated_at":"2025-07-16T15:23:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620","variant_ids":[43304516255843]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF47","featured_media":{"alt":null,"id":25830140346467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767ee0555c3825ff6b1fd139acebd279964dfff7_261ce1be-5d8c-4ed3-a723-d3fc3fc928e0.webp?v=1752650620"}},"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: "停產" }