$product = {"id":7769800179811,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf53","description":null,"published_at":"2025-04-16T14:20:33+08:00","created_at":"2025-04-15T20:41:22+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 Mini","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":43304002224227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197821587555,"product_id":7769800179811,"position":3,"created_at":"2025-07-16T15:23:05+08:00","updated_at":"2025-07-16T15:23:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587","variant_ids":[43304002224227]},"available":true,"name":"iPhone 12 mini 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":"MPB0118424-XF53","featured_media":{"alt":null,"id":25830120521827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3096567fc3b65fa5df165680fe1871c8a8ecf59d_0037cb6c-b59d-442e-96e1-8deb89c22d6d.webp?v=1744720889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a98365b39415ce9289da0e2528401755d114721_f1a646d8-fb0e-42e9-9bd9-0c63dc083f7f.webp?v=1752650586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c7e10b2e0e89f43e274567c6bf10459117d4e7_cd3765fb-0780-47a2-8d72-625a162e1cb7.webp?v=1752650587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d952482775b1403902a4cd22689a3646c714a0eb_7321323a-a400-4dbd-9099-59fd10595e6f.webp?v=1752650588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae4733d3b511f4faa0ad9836176a00469c8e93c_ec83ca93-e1fa-48ad-bb60-45014d73fa7b.webp?v=1752650589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8833cfde3e5e12631198a945befd51c1339b288d_3dc8f5ae-0374-4db0-9108-5a6e1232a8cc.webp?v=1752650589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf73b692612911b3ca19dc318f441fd60be89089_6a4f86af-854a-4f28-bb39-efbc72369568.webp?v=1752650590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c68c9e0155aaa950503101117a36127bbe2f62_dbb07c4a-8e8e-4826-a5fb-97cfc1acd324.webp?v=1752650590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bc44e0d92a61a303d43efc7ac63d6158681ee4_a01cf47a-3af3-411f-9477-4caecbbb2cd5.webp?v=1752650591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51eb2a3b108fa5130f4490cd526ff65e9099ffb0_d9f7fd0a-d1a9-4508-95de-b9669825ec90.webp?v=1752650592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae93675f7eec9506975272cd0b78736d6b4d6955_cfbe585f-7127-4e9b-81c8-627831064f30.webp?v=1752650593"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3096567fc3b65fa5df165680fe1871c8a8ecf59d_0037cb6c-b59d-442e-96e1-8deb89c22d6d.webp?v=1744720889","options":["color"],"media":[{"alt":null,"id":25496291278947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3096567fc3b65fa5df165680fe1871c8a8ecf59d_0037cb6c-b59d-442e-96e1-8deb89c22d6d.webp?v=1744720889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3096567fc3b65fa5df165680fe1871c8a8ecf59d_0037cb6c-b59d-442e-96e1-8deb89c22d6d.webp?v=1744720889","width":2000},{"alt":null,"id":25830120292451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a98365b39415ce9289da0e2528401755d114721_f1a646d8-fb0e-42e9-9bd9-0c63dc083f7f.webp?v=1752650586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a98365b39415ce9289da0e2528401755d114721_f1a646d8-fb0e-42e9-9bd9-0c63dc083f7f.webp?v=1752650586","width":2000},{"alt":null,"id":25830120521827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587","width":2000},{"alt":null,"id":25830120816739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c7e10b2e0e89f43e274567c6bf10459117d4e7_cd3765fb-0780-47a2-8d72-625a162e1cb7.webp?v=1752650587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c7e10b2e0e89f43e274567c6bf10459117d4e7_cd3765fb-0780-47a2-8d72-625a162e1cb7.webp?v=1752650587","width":2000},{"alt":null,"id":25830120980579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d952482775b1403902a4cd22689a3646c714a0eb_7321323a-a400-4dbd-9099-59fd10595e6f.webp?v=1752650588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d952482775b1403902a4cd22689a3646c714a0eb_7321323a-a400-4dbd-9099-59fd10595e6f.webp?v=1752650588","width":2000},{"alt":null,"id":25830121373795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae4733d3b511f4faa0ad9836176a00469c8e93c_ec83ca93-e1fa-48ad-bb60-45014d73fa7b.webp?v=1752650589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae4733d3b511f4faa0ad9836176a00469c8e93c_ec83ca93-e1fa-48ad-bb60-45014d73fa7b.webp?v=1752650589","width":2000},{"alt":null,"id":25830121635939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8833cfde3e5e12631198a945befd51c1339b288d_3dc8f5ae-0374-4db0-9108-5a6e1232a8cc.webp?v=1752650589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8833cfde3e5e12631198a945befd51c1339b288d_3dc8f5ae-0374-4db0-9108-5a6e1232a8cc.webp?v=1752650589","width":2000},{"alt":null,"id":25830122160227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf73b692612911b3ca19dc318f441fd60be89089_6a4f86af-854a-4f28-bb39-efbc72369568.webp?v=1752650590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf73b692612911b3ca19dc318f441fd60be89089_6a4f86af-854a-4f28-bb39-efbc72369568.webp?v=1752650590","width":2000},{"alt":null,"id":25830122455139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c68c9e0155aaa950503101117a36127bbe2f62_dbb07c4a-8e8e-4826-a5fb-97cfc1acd324.webp?v=1752650590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1c68c9e0155aaa950503101117a36127bbe2f62_dbb07c4a-8e8e-4826-a5fb-97cfc1acd324.webp?v=1752650590","width":2000},{"alt":null,"id":25830122979427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bc44e0d92a61a303d43efc7ac63d6158681ee4_a01cf47a-3af3-411f-9477-4caecbbb2cd5.webp?v=1752650591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4bc44e0d92a61a303d43efc7ac63d6158681ee4_a01cf47a-3af3-411f-9477-4caecbbb2cd5.webp?v=1752650591","width":2000},{"alt":null,"id":25830123470947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51eb2a3b108fa5130f4490cd526ff65e9099ffb0_d9f7fd0a-d1a9-4508-95de-b9669825ec90.webp?v=1752650592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51eb2a3b108fa5130f4490cd526ff65e9099ffb0_d9f7fd0a-d1a9-4508-95de-b9669825ec90.webp?v=1752650592","width":2000},{"alt":null,"id":25830123831395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae93675f7eec9506975272cd0b78736d6b4d6955_cfbe585f-7127-4e9b-81c8-627831064f30.webp?v=1752650593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae93675f7eec9506975272cd0b78736d6b4d6955_cfbe585f-7127-4e9b-81c8-627831064f30.webp?v=1752650593","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304002224227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197821587555,"product_id":7769800179811,"position":3,"created_at":"2025-07-16T15:23:05+08:00","updated_at":"2025-07-16T15:23:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587","variant_ids":[43304002224227]},"available":true,"name":"iPhone 12 mini 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":"MPB0118424-XF53","featured_media":{"alt":null,"id":25830120521827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304002224227,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197821587555,"product_id":7769800179811,"position":3,"created_at":"2025-07-16T15:23:05+08:00","updated_at":"2025-07-16T15:23:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587","variant_ids":[43304002224227]},"available":true,"name":"iPhone 12 mini 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":"MPB0118424-XF53","featured_media":{"alt":null,"id":25830120521827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06967d86ff9e9ccc794175d9257ed165cde4c4_2bbd0a28-0a11-4046-8f46-fba28a67c0f5.webp?v=1752650587"}},"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: "停產" }