$product = {"id":7769446449251,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf49","description":null,"published_at":"2025-07-16T17:35:29+08:00","created_at":"2025-04-15T16:14:56+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":43302387384419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197707194467,"product_id":7769446449251,"position":9,"created_at":"2025-07-16T15:21:22+08:00","updated_at":"2025-07-16T15:21:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484","variant_ids":[43302387384419]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25830059835491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17.webp?v=1744704903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f852629b559fe5986ac399fb6753dfbbd2968a4c_dff4a2a4-4753-4a16-bc48-85744a0a53dc.webp?v=1752650480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7868071d8efe26b22e72c7c5ea33134e29797700_b01f8f13-af9b-4059-8c3b-1fa038300fec.webp?v=1752650481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065a6467031c15c82484f1e4f68074042e4e6a89_8e5dae92-246a-4709-af17-3ff3fdf2d5ed.webp?v=1752650481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098879c580abedbbdbb71b7a45271b4a6c717676_b9b02da3-ee3d-43d1-9b33-a3430cac8541.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651eae875532959a0a292abfd436643776ef9d77_3727df66-752f-4a1c-97f2-95ed4bae407b.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5754988134a613f6bf9fffd52e08a9779f8e495b_3f93ae93-6654-4b8b-89d0-b950f087f95b.webp?v=1752650483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf57727109b9910a369ebd1fb781dc228cc57461_fb1940b1-51ec-4aae-8227-31038457e810.webp?v=1752650483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84bddb1f707218df1fa6f1b8d42d37eed11bd2e1_dd5f165a-b300-4a8e-9954-52841dd5e018.webp?v=1752650484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1aa375b800514da1e8617aea1b256ac0e88e15_0b5bb56c-1c57-4ba9-9802-967793220a8a.webp?v=1752650485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fac491ea017efe6ebda0346fcde6c5483cebf426_e148824e-095e-418b-891e-5671c521c95b.webp?v=1752650485"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17.webp?v=1744704903","options":["color"],"media":[{"alt":null,"id":25495459233891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17.webp?v=1744704903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d498ed17b46523b718818a3fc257b72580d0af17.webp?v=1744704903","width":2000},{"alt":null,"id":25830055936099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f852629b559fe5986ac399fb6753dfbbd2968a4c_dff4a2a4-4753-4a16-bc48-85744a0a53dc.webp?v=1752650480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f852629b559fe5986ac399fb6753dfbbd2968a4c_dff4a2a4-4753-4a16-bc48-85744a0a53dc.webp?v=1752650480","width":2000},{"alt":null,"id":25830056624227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7868071d8efe26b22e72c7c5ea33134e29797700_b01f8f13-af9b-4059-8c3b-1fa038300fec.webp?v=1752650481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7868071d8efe26b22e72c7c5ea33134e29797700_b01f8f13-af9b-4059-8c3b-1fa038300fec.webp?v=1752650481","width":2000},{"alt":null,"id":25830056853603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065a6467031c15c82484f1e4f68074042e4e6a89_8e5dae92-246a-4709-af17-3ff3fdf2d5ed.webp?v=1752650481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065a6467031c15c82484f1e4f68074042e4e6a89_8e5dae92-246a-4709-af17-3ff3fdf2d5ed.webp?v=1752650481","width":2000},{"alt":null,"id":25830057312355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098879c580abedbbdbb71b7a45271b4a6c717676_b9b02da3-ee3d-43d1-9b33-a3430cac8541.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098879c580abedbbdbb71b7a45271b4a6c717676_b9b02da3-ee3d-43d1-9b33-a3430cac8541.webp?v=1752650482","width":2000},{"alt":null,"id":25830057902179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651eae875532959a0a292abfd436643776ef9d77_3727df66-752f-4a1c-97f2-95ed4bae407b.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651eae875532959a0a292abfd436643776ef9d77_3727df66-752f-4a1c-97f2-95ed4bae407b.webp?v=1752650482","width":2000},{"alt":null,"id":25830058393699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5754988134a613f6bf9fffd52e08a9779f8e495b_3f93ae93-6654-4b8b-89d0-b950f087f95b.webp?v=1752650483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5754988134a613f6bf9fffd52e08a9779f8e495b_3f93ae93-6654-4b8b-89d0-b950f087f95b.webp?v=1752650483","width":2000},{"alt":null,"id":25830058983523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf57727109b9910a369ebd1fb781dc228cc57461_fb1940b1-51ec-4aae-8227-31038457e810.webp?v=1752650483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf57727109b9910a369ebd1fb781dc228cc57461_fb1940b1-51ec-4aae-8227-31038457e810.webp?v=1752650483","width":2000},{"alt":null,"id":25830059835491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484","width":2000},{"alt":null,"id":25830060327011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84bddb1f707218df1fa6f1b8d42d37eed11bd2e1_dd5f165a-b300-4a8e-9954-52841dd5e018.webp?v=1752650484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84bddb1f707218df1fa6f1b8d42d37eed11bd2e1_dd5f165a-b300-4a8e-9954-52841dd5e018.webp?v=1752650484","width":2000},{"alt":null,"id":25830060785763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1aa375b800514da1e8617aea1b256ac0e88e15_0b5bb56c-1c57-4ba9-9802-967793220a8a.webp?v=1752650485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1aa375b800514da1e8617aea1b256ac0e88e15_0b5bb56c-1c57-4ba9-9802-967793220a8a.webp?v=1752650485","width":2000},{"alt":null,"id":25830061244515,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fac491ea017efe6ebda0346fcde6c5483cebf426_e148824e-095e-418b-891e-5671c521c95b.webp?v=1752650485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fac491ea017efe6ebda0346fcde6c5483cebf426_e148824e-095e-418b-891e-5671c521c95b.webp?v=1752650485","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302387384419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197707194467,"product_id":7769446449251,"position":9,"created_at":"2025-07-16T15:21:22+08:00","updated_at":"2025-07-16T15:21:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484","variant_ids":[43302387384419]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25830059835491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302387384419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197707194467,"product_id":7769446449251,"position":9,"created_at":"2025-07-16T15:21:22+08:00","updated_at":"2025-07-16T15:21:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484","variant_ids":[43302387384419]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25830059835491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87975f8fb37fb9875c271db7de334c59de8378f4_6166932a-ab30-4b26-90d8-7bb18394f6cf.webp?v=1752650484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }