$product = {"id":7769927745635,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-xf55","description":null,"published_at":"2025-04-16T13:28:18+08:00","created_at":"2025-04-15T22:13:01+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 13 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":43304639266915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197787181155,"product_id":7769927745635,"position":7,"created_at":"2025-07-16T15:22:35+08:00","updated_at":"2025-07-16T15:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556","variant_ids":[43304639266915]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-XF55","featured_media":{"alt":null,"id":25830102138979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304644739171,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197786689635,"product_id":7769927745635,"position":6,"created_at":"2025-07-16T15:22:34+08:00","updated_at":"2025-07-16T15:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487c5f06ead0d4a3af6ed0da7b0ba1c073568658_85b4cace-3e05-4a9b-9ff5-10f4ae17fe6a.webp?v=1752650556","variant_ids":[43304644739171]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-XF55","featured_media":{"alt":null,"id":25830101876835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487c5f06ead0d4a3af6ed0da7b0ba1c073568658_85b4cace-3e05-4a9b-9ff5-10f4ae17fe6a.webp?v=1752650556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91.webp?v=1744726387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557a9c991ec7eb1e8234049bc2d8ad457e3967db_0a05e7b6-dd68-40be-be0c-9b1058b6d035.webp?v=1752650553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6739c59478dd504bad6f1e6e5c44f4addb40c097_874243df-4eb7-4423-8f2c-d56e41714d3a.webp?v=1752650554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446484572b655cc9e03dc5ff261f0d65ebd1eee1_02622afe-47be-4e81-888a-dff8e769ac64.webp?v=1752650555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf42cba25332ec1cebd4cf73ef987365f2696991_a5ea2065-5d84-4689-bc98-082f46e8db88.webp?v=1752650555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487c5f06ead0d4a3af6ed0da7b0ba1c073568658_85b4cace-3e05-4a9b-9ff5-10f4ae17fe6a.webp?v=1752650556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb54e50aae31553ff08ce77d0a6e20a1f3507ab0_776f4e92-6eff-419f-ba3b-7cf49523954c.webp?v=1752650557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef70a65e2335ee1c68de412ee44871236606224_4cbc3a26-d763-49da-a77b-a1013b37982d.webp?v=1752650558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5bfaf3523da49c14bdb33d00082d9cbfb4078c3_6efb0de6-22a1-40b8-b9fb-21f02a448fee.webp?v=1752650558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b09f54c4fb72dead9289a7dba8903a346e5fff_84618b42-a684-4161-a213-11629430202d.webp?v=1752650559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395c39113ed2fa94a5cd682a9a74817f73ecac56_98d7b346-d4be-49f7-8e0e-f33f15d92fe9.webp?v=1752650559"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91.webp?v=1744726387","options":["color"],"media":[{"alt":null,"id":25496530321507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91.webp?v=1744726387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7354b1536bb8798823847246e982d2eb51bab91.webp?v=1744726387","width":2000},{"alt":null,"id":25830100435043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557a9c991ec7eb1e8234049bc2d8ad457e3967db_0a05e7b6-dd68-40be-be0c-9b1058b6d035.webp?v=1752650553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557a9c991ec7eb1e8234049bc2d8ad457e3967db_0a05e7b6-dd68-40be-be0c-9b1058b6d035.webp?v=1752650553","width":2000},{"alt":null,"id":25830100893795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6739c59478dd504bad6f1e6e5c44f4addb40c097_874243df-4eb7-4423-8f2c-d56e41714d3a.webp?v=1752650554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6739c59478dd504bad6f1e6e5c44f4addb40c097_874243df-4eb7-4423-8f2c-d56e41714d3a.webp?v=1752650554","width":2000},{"alt":null,"id":25830101221475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446484572b655cc9e03dc5ff261f0d65ebd1eee1_02622afe-47be-4e81-888a-dff8e769ac64.webp?v=1752650555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/446484572b655cc9e03dc5ff261f0d65ebd1eee1_02622afe-47be-4e81-888a-dff8e769ac64.webp?v=1752650555","width":2000},{"alt":null,"id":25830101614691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf42cba25332ec1cebd4cf73ef987365f2696991_a5ea2065-5d84-4689-bc98-082f46e8db88.webp?v=1752650555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf42cba25332ec1cebd4cf73ef987365f2696991_a5ea2065-5d84-4689-bc98-082f46e8db88.webp?v=1752650555","width":2000},{"alt":null,"id":25830101876835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487c5f06ead0d4a3af6ed0da7b0ba1c073568658_85b4cace-3e05-4a9b-9ff5-10f4ae17fe6a.webp?v=1752650556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487c5f06ead0d4a3af6ed0da7b0ba1c073568658_85b4cace-3e05-4a9b-9ff5-10f4ae17fe6a.webp?v=1752650556","width":2000},{"alt":null,"id":25830102138979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556","width":2000},{"alt":null,"id":25830102401123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb54e50aae31553ff08ce77d0a6e20a1f3507ab0_776f4e92-6eff-419f-ba3b-7cf49523954c.webp?v=1752650557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb54e50aae31553ff08ce77d0a6e20a1f3507ab0_776f4e92-6eff-419f-ba3b-7cf49523954c.webp?v=1752650557","width":2000},{"alt":null,"id":25830102663267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef70a65e2335ee1c68de412ee44871236606224_4cbc3a26-d763-49da-a77b-a1013b37982d.webp?v=1752650558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef70a65e2335ee1c68de412ee44871236606224_4cbc3a26-d763-49da-a77b-a1013b37982d.webp?v=1752650558","width":2000},{"alt":null,"id":25830102958179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5bfaf3523da49c14bdb33d00082d9cbfb4078c3_6efb0de6-22a1-40b8-b9fb-21f02a448fee.webp?v=1752650558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5bfaf3523da49c14bdb33d00082d9cbfb4078c3_6efb0de6-22a1-40b8-b9fb-21f02a448fee.webp?v=1752650558","width":2000},{"alt":null,"id":25830103449699,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b09f54c4fb72dead9289a7dba8903a346e5fff_84618b42-a684-4161-a213-11629430202d.webp?v=1752650559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b09f54c4fb72dead9289a7dba8903a346e5fff_84618b42-a684-4161-a213-11629430202d.webp?v=1752650559","width":2000},{"alt":null,"id":25830103777379,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395c39113ed2fa94a5cd682a9a74817f73ecac56_98d7b346-d4be-49f7-8e0e-f33f15d92fe9.webp?v=1752650559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395c39113ed2fa94a5cd682a9a74817f73ecac56_98d7b346-d4be-49f7-8e0e-f33f15d92fe9.webp?v=1752650559","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304639266915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197787181155,"product_id":7769927745635,"position":7,"created_at":"2025-07-16T15:22:35+08:00","updated_at":"2025-07-16T15:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556","variant_ids":[43304639266915]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-XF55","featured_media":{"alt":null,"id":25830102138979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304644739171,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197786689635,"product_id":7769927745635,"position":6,"created_at":"2025-07-16T15:22:34+08:00","updated_at":"2025-07-16T15:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487c5f06ead0d4a3af6ed0da7b0ba1c073568658_85b4cace-3e05-4a9b-9ff5-10f4ae17fe6a.webp?v=1752650556","variant_ids":[43304644739171]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-XF55","featured_media":{"alt":null,"id":25830101876835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487c5f06ead0d4a3af6ed0da7b0ba1c073568658_85b4cace-3e05-4a9b-9ff5-10f4ae17fe6a.webp?v=1752650556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304639266915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197787181155,"product_id":7769927745635,"position":7,"created_at":"2025-07-16T15:22:35+08:00","updated_at":"2025-07-16T15:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556","variant_ids":[43304639266915]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-XF55","featured_media":{"alt":null,"id":25830102138979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167a45afeaad939594d7413246af4bee6e20dc13_27228fa4-b53c-47a0-817c-95f2042bc183.webp?v=1752650556"}},"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: "停產" }