$product = {"id":7770000359523,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf52","description":null,"published_at":"2025-04-16T12:54:53+08:00","created_at":"2025-04-15T23:08:06+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":43304989687907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197854421091,"product_id":7770000359523,"position":3,"created_at":"2025-07-16T15:23:34+08:00","updated_at":"2025-07-16T15:23:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616","variant_ids":[43304989687907]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and 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-XF52","featured_media":{"alt":null,"id":25830137167971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500_21f6347a-dd11-45f6-8b94-60085b98f75c.webp?v=1744729693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67be9b4120e3207e263fb902bad6c5e517cdf617_63701e1f-8bf5-4eda-9be0-4de74f028030.webp?v=1752650616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f156155a5956af8ea598964104178cb1afdde151_34d9e2dd-760d-406d-9b6a-c5759b1f5c6c.webp?v=1752650617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eef26ae32be02277a8cfd1d0c217c68dee70d_b32a4e72-3601-4c53-ba97-6bd29ce45999.webp?v=1752650617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe93e20025bf15804a1d3e712573717342b7a22_c7caefa4-14fe-4192-9a8d-e2c613091839.webp?v=1752650618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab90db54c815913a810bfee62167b3504f41491_d49c3be5-5bde-4ec7-9e96-a358556dbe3b.webp?v=1752650619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670d3989ff1d0037b6d04406e8277d9e0045571_a0a2a753-dbcc-4513-bf11-0fb133856ba1.webp?v=1752650619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b8c6b94c8a34d8d5a4850106e59823f22c7cc1_ee77a853-cc56-44de-8e22-0fd72cf129a4.webp?v=1752650620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb1e0cc64817d1e99a172666a5a565659ea08cd_202791de-e23b-4d19-bf6e-4e83ea8d9ad7.webp?v=1752650621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f5c325741761b71c54f6471adc00623efc5866_3d0badba-499b-44d3-9d5f-7db3e87916f0.webp?v=1752650621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee66edb83aa3084f2eb0bc6e43ad6d7706fe9cb_e56409d3-aaef-42c2-a51a-4a3cd7a84c46.webp?v=1752650622"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500_21f6347a-dd11-45f6-8b94-60085b98f75c.webp?v=1744729693","options":["color"],"media":[{"alt":null,"id":25496668373091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500_21f6347a-dd11-45f6-8b94-60085b98f75c.webp?v=1744729693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500_21f6347a-dd11-45f6-8b94-60085b98f75c.webp?v=1744729693","width":2000},{"alt":null,"id":25830136807523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67be9b4120e3207e263fb902bad6c5e517cdf617_63701e1f-8bf5-4eda-9be0-4de74f028030.webp?v=1752650616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67be9b4120e3207e263fb902bad6c5e517cdf617_63701e1f-8bf5-4eda-9be0-4de74f028030.webp?v=1752650616","width":2000},{"alt":null,"id":25830137167971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616","width":2000},{"alt":null,"id":25830137528419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f156155a5956af8ea598964104178cb1afdde151_34d9e2dd-760d-406d-9b6a-c5759b1f5c6c.webp?v=1752650617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f156155a5956af8ea598964104178cb1afdde151_34d9e2dd-760d-406d-9b6a-c5759b1f5c6c.webp?v=1752650617","width":2000},{"alt":null,"id":25830138216547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eef26ae32be02277a8cfd1d0c217c68dee70d_b32a4e72-3601-4c53-ba97-6bd29ce45999.webp?v=1752650617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11eef26ae32be02277a8cfd1d0c217c68dee70d_b32a4e72-3601-4c53-ba97-6bd29ce45999.webp?v=1752650617","width":2000},{"alt":null,"id":25830138871907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe93e20025bf15804a1d3e712573717342b7a22_c7caefa4-14fe-4192-9a8d-e2c613091839.webp?v=1752650618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe93e20025bf15804a1d3e712573717342b7a22_c7caefa4-14fe-4192-9a8d-e2c613091839.webp?v=1752650618","width":2000},{"alt":null,"id":25830139199587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab90db54c815913a810bfee62167b3504f41491_d49c3be5-5bde-4ec7-9e96-a358556dbe3b.webp?v=1752650619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab90db54c815913a810bfee62167b3504f41491_d49c3be5-5bde-4ec7-9e96-a358556dbe3b.webp?v=1752650619","width":2000},{"alt":null,"id":25830139527267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670d3989ff1d0037b6d04406e8277d9e0045571_a0a2a753-dbcc-4513-bf11-0fb133856ba1.webp?v=1752650619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670d3989ff1d0037b6d04406e8277d9e0045571_a0a2a753-dbcc-4513-bf11-0fb133856ba1.webp?v=1752650619","width":2000},{"alt":null,"id":25830139789411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b8c6b94c8a34d8d5a4850106e59823f22c7cc1_ee77a853-cc56-44de-8e22-0fd72cf129a4.webp?v=1752650620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b8c6b94c8a34d8d5a4850106e59823f22c7cc1_ee77a853-cc56-44de-8e22-0fd72cf129a4.webp?v=1752650620","width":2000},{"alt":null,"id":25830140379235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb1e0cc64817d1e99a172666a5a565659ea08cd_202791de-e23b-4d19-bf6e-4e83ea8d9ad7.webp?v=1752650621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb1e0cc64817d1e99a172666a5a565659ea08cd_202791de-e23b-4d19-bf6e-4e83ea8d9ad7.webp?v=1752650621","width":2000},{"alt":null,"id":25830140575843,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f5c325741761b71c54f6471adc00623efc5866_3d0badba-499b-44d3-9d5f-7db3e87916f0.webp?v=1752650621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79f5c325741761b71c54f6471adc00623efc5866_3d0badba-499b-44d3-9d5f-7db3e87916f0.webp?v=1752650621","width":2000},{"alt":null,"id":25830140739683,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee66edb83aa3084f2eb0bc6e43ad6d7706fe9cb_e56409d3-aaef-42c2-a51a-4a3cd7a84c46.webp?v=1752650622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee66edb83aa3084f2eb0bc6e43ad6d7706fe9cb_e56409d3-aaef-42c2-a51a-4a3cd7a84c46.webp?v=1752650622","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304989687907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197854421091,"product_id":7770000359523,"position":3,"created_at":"2025-07-16T15:23:34+08:00","updated_at":"2025-07-16T15:23:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616","variant_ids":[43304989687907]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and 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-XF52","featured_media":{"alt":null,"id":25830137167971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304989687907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197854421091,"product_id":7770000359523,"position":3,"created_at":"2025-07-16T15:23:34+08:00","updated_at":"2025-07-16T15:23:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616","variant_ids":[43304989687907]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and 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-XF52","featured_media":{"alt":null,"id":25830137167971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e4ecede5c3824da045e3108584f16998b12b43_4da0b2ea-cf47-4b96-93c9-1131e7e96e07.webp?v=1752650616"}},"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: "停產" }