$product = {"id":7769737691235,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-xf53","description":null,"published_at":"2025-07-16T17:03:15+08:00","created_at":"2025-04-15T20:09:23+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":43303774847075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197726462051,"product_id":7769737691235,"position":11,"created_at":"2025-07-16T15:21:39+08:00","updated_at":"2025-07-16T15:21:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501","variant_ids":[43303774847075]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - 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-XF53","featured_media":{"alt":null,"id":25830070288483,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312_96694f04-3fa4-4975-98ce-58ef906c396d.webp?v=1744718969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a7a00a7128f1380c1c8d1e99f132f63281040f_5542536b-e47c-47ca-833e-9640a3b78219.webp?v=1752650495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646a40b3d268d908822bf89b358912a0de484f85_30e7c352-932d-4c3d-bcbf-c39b11e5e47d.webp?v=1752650496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d2a4c7e44fe87a4f6a2fe12797df258b93a716b_5d111fd2-68d5-44c8-a4a5-f6e3a55fc59c.webp?v=1752650496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa32c997ba73ddf8df5ee3b52c32647843711170_e31a1c1b-1812-4dbe-a1cd-4dd8c290ccdc.webp?v=1752650497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0051440db2711cf7570cc32d36e292034f076de2_5916a173-c8ee-4b02-8971-178b5d06a64a.webp?v=1752650497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa7e4901020843586740f06a62678f410d1fcb2_89ffdcf2-7e49-41bf-aa46-ebbcd143b618.webp?v=1752650498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ab40397820104d41bdc503f626e6077b261f1fd_1bfef368-05c1-42a9-9e93-c72e3f27bc78.webp?v=1752650498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0206d4d1f5d8da36ff65e7d56aa181c08571b94c_d41ee2ff-9099-491d-bd41-54068c326cf4.webp?v=1752650499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd6481a5bae7e8064b0eab55d0ea30753d6b1b8_37bc1477-6fd1-44d0-a301-4c37783d5343.webp?v=1752650500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312_96694f04-3fa4-4975-98ce-58ef906c396d.webp?v=1744718969","options":["color"],"media":[{"alt":null,"id":25496199266403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312_96694f04-3fa4-4975-98ce-58ef906c396d.webp?v=1744718969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312_96694f04-3fa4-4975-98ce-58ef906c396d.webp?v=1744718969","width":2000},{"alt":null,"id":25830065864803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a7a00a7128f1380c1c8d1e99f132f63281040f_5542536b-e47c-47ca-833e-9640a3b78219.webp?v=1752650495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a7a00a7128f1380c1c8d1e99f132f63281040f_5542536b-e47c-47ca-833e-9640a3b78219.webp?v=1752650495","width":2000},{"alt":null,"id":25830066356323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646a40b3d268d908822bf89b358912a0de484f85_30e7c352-932d-4c3d-bcbf-c39b11e5e47d.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646a40b3d268d908822bf89b358912a0de484f85_30e7c352-932d-4c3d-bcbf-c39b11e5e47d.webp?v=1752650496","width":2000},{"alt":null,"id":25830066749539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d2a4c7e44fe87a4f6a2fe12797df258b93a716b_5d111fd2-68d5-44c8-a4a5-f6e3a55fc59c.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d2a4c7e44fe87a4f6a2fe12797df258b93a716b_5d111fd2-68d5-44c8-a4a5-f6e3a55fc59c.webp?v=1752650496","width":2000},{"alt":null,"id":25830067241059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa32c997ba73ddf8df5ee3b52c32647843711170_e31a1c1b-1812-4dbe-a1cd-4dd8c290ccdc.webp?v=1752650497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa32c997ba73ddf8df5ee3b52c32647843711170_e31a1c1b-1812-4dbe-a1cd-4dd8c290ccdc.webp?v=1752650497","width":2000},{"alt":null,"id":25830067732579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0051440db2711cf7570cc32d36e292034f076de2_5916a173-c8ee-4b02-8971-178b5d06a64a.webp?v=1752650497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0051440db2711cf7570cc32d36e292034f076de2_5916a173-c8ee-4b02-8971-178b5d06a64a.webp?v=1752650497","width":2000},{"alt":null,"id":25830068224099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa7e4901020843586740f06a62678f410d1fcb2_89ffdcf2-7e49-41bf-aa46-ebbcd143b618.webp?v=1752650498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa7e4901020843586740f06a62678f410d1fcb2_89ffdcf2-7e49-41bf-aa46-ebbcd143b618.webp?v=1752650498","width":2000},{"alt":null,"id":25830068650083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ab40397820104d41bdc503f626e6077b261f1fd_1bfef368-05c1-42a9-9e93-c72e3f27bc78.webp?v=1752650498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ab40397820104d41bdc503f626e6077b261f1fd_1bfef368-05c1-42a9-9e93-c72e3f27bc78.webp?v=1752650498","width":2000},{"alt":null,"id":25830069108835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0206d4d1f5d8da36ff65e7d56aa181c08571b94c_d41ee2ff-9099-491d-bd41-54068c326cf4.webp?v=1752650499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0206d4d1f5d8da36ff65e7d56aa181c08571b94c_d41ee2ff-9099-491d-bd41-54068c326cf4.webp?v=1752650499","width":2000},{"alt":null,"id":25830069436515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd6481a5bae7e8064b0eab55d0ea30753d6b1b8_37bc1477-6fd1-44d0-a301-4c37783d5343.webp?v=1752650500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd6481a5bae7e8064b0eab55d0ea30753d6b1b8_37bc1477-6fd1-44d0-a301-4c37783d5343.webp?v=1752650500","width":2000},{"alt":null,"id":25830070288483,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303774847075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197726462051,"product_id":7769737691235,"position":11,"created_at":"2025-07-16T15:21:39+08:00","updated_at":"2025-07-16T15:21:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501","variant_ids":[43303774847075]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - 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-XF53","featured_media":{"alt":null,"id":25830070288483,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303774847075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197726462051,"product_id":7769737691235,"position":11,"created_at":"2025-07-16T15:21:39+08:00","updated_at":"2025-07-16T15:21:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501","variant_ids":[43303774847075]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - 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-XF53","featured_media":{"alt":null,"id":25830070288483,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3fc61f3b346d802ec6af1004e13109de68ccc3b_14652db5-89b5-4e16-9e50-449882aa6108.webp?v=1752650501"}},"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: "停產" }