$product = {"id":7769975619683,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Meowing Glory - 貓咪藤蔓","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf50","description":null,"published_at":"2025-04-16T13:06:57+08:00","created_at":"2025-04-15T22:47:36+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":43304868479075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197711126627,"product_id":7769975619683,"position":10,"created_at":"2025-07-16T15:21:25+08:00","updated_at":"2025-07-16T15:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486","variant_ids":[43304868479075]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25830062162019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a_d83616da-4703-4eec-af5c-3c2a98dfabd7.webp?v=1744728463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fdb63bafe231ee10fd8201568d78cdbb41a23d9_420a50c4-f6a5-4480-8ea0-6a1833a3418b.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/180ac2473ddcb6f8740610b6fa1726ead434018d_19dfe6b3-c321-4da5-9c84-80a3d5acffaa.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8b26cf32c047b4e9fe1008876e459b716adcc8b_ce2865fe-f0ec-4a65-8c5d-30dd959fa1bb.webp?v=1752650483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552b439ae78578a3b0dcec4a66943290dc3263f8_0b60a510-0ca5-426e-9fc7-8bb5bb48b833.webp?v=1752650483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad543fcc2b57809e2b1c9962ec91c3951d13eb56_b1ce4118-690b-4d06-bff2-d20f7bd94850.webp?v=1752650484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b6e162a8ac590969163d81b52db47e59771ea66_7c2eed3d-ea41-499c-be54-3dd95475e6de.webp?v=1752650485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a06377478921c887f692fd0b4f12d7c2caa9f15_086cb67a-50a7-496e-8f17-8f76987a909d.webp?v=1752650486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09da3746b590f783ca58b9e6be5780d2912e10c4_ab2f46df-265f-471e-a99b-37dd1260426c.webp?v=1752650486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1056d53b0324175e9a607890308225886bb07572_d7d6463d-4e8a-46ad-b7b8-44e40ce43575.webp?v=1752650487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/889843a2d06e9f98e11f5a92c396015ed9cf6c79_b7f46c6e-48bd-4639-9447-268f3e088612.webp?v=1752650488"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a_d83616da-4703-4eec-af5c-3c2a98dfabd7.webp?v=1744728463","options":["color"],"media":[{"alt":null,"id":25496632328291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a_d83616da-4703-4eec-af5c-3c2a98dfabd7.webp?v=1744728463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a_d83616da-4703-4eec-af5c-3c2a98dfabd7.webp?v=1744728463","width":2000},{"alt":null,"id":25830057017443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fdb63bafe231ee10fd8201568d78cdbb41a23d9_420a50c4-f6a5-4480-8ea0-6a1833a3418b.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fdb63bafe231ee10fd8201568d78cdbb41a23d9_420a50c4-f6a5-4480-8ea0-6a1833a3418b.webp?v=1752650482","width":2000},{"alt":null,"id":25830057803875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/180ac2473ddcb6f8740610b6fa1726ead434018d_19dfe6b3-c321-4da5-9c84-80a3d5acffaa.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/180ac2473ddcb6f8740610b6fa1726ead434018d_19dfe6b3-c321-4da5-9c84-80a3d5acffaa.webp?v=1752650482","width":2000},{"alt":null,"id":25830058459235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8b26cf32c047b4e9fe1008876e459b716adcc8b_ce2865fe-f0ec-4a65-8c5d-30dd959fa1bb.webp?v=1752650483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8b26cf32c047b4e9fe1008876e459b716adcc8b_ce2865fe-f0ec-4a65-8c5d-30dd959fa1bb.webp?v=1752650483","width":2000},{"alt":null,"id":25830059180131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552b439ae78578a3b0dcec4a66943290dc3263f8_0b60a510-0ca5-426e-9fc7-8bb5bb48b833.webp?v=1752650483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552b439ae78578a3b0dcec4a66943290dc3263f8_0b60a510-0ca5-426e-9fc7-8bb5bb48b833.webp?v=1752650483","width":2000},{"alt":null,"id":25830060064867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad543fcc2b57809e2b1c9962ec91c3951d13eb56_b1ce4118-690b-4d06-bff2-d20f7bd94850.webp?v=1752650484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad543fcc2b57809e2b1c9962ec91c3951d13eb56_b1ce4118-690b-4d06-bff2-d20f7bd94850.webp?v=1752650484","width":2000},{"alt":null,"id":25830060523619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b6e162a8ac590969163d81b52db47e59771ea66_7c2eed3d-ea41-499c-be54-3dd95475e6de.webp?v=1752650485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b6e162a8ac590969163d81b52db47e59771ea66_7c2eed3d-ea41-499c-be54-3dd95475e6de.webp?v=1752650485","width":2000},{"alt":null,"id":25830061178979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a06377478921c887f692fd0b4f12d7c2caa9f15_086cb67a-50a7-496e-8f17-8f76987a909d.webp?v=1752650486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a06377478921c887f692fd0b4f12d7c2caa9f15_086cb67a-50a7-496e-8f17-8f76987a909d.webp?v=1752650486","width":2000},{"alt":null,"id":25830061703267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09da3746b590f783ca58b9e6be5780d2912e10c4_ab2f46df-265f-471e-a99b-37dd1260426c.webp?v=1752650486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09da3746b590f783ca58b9e6be5780d2912e10c4_ab2f46df-265f-471e-a99b-37dd1260426c.webp?v=1752650486","width":2000},{"alt":null,"id":25830062162019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486","width":2000},{"alt":null,"id":25830062489699,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1056d53b0324175e9a607890308225886bb07572_d7d6463d-4e8a-46ad-b7b8-44e40ce43575.webp?v=1752650487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1056d53b0324175e9a607890308225886bb07572_d7d6463d-4e8a-46ad-b7b8-44e40ce43575.webp?v=1752650487","width":2000},{"alt":null,"id":25830062915683,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/889843a2d06e9f98e11f5a92c396015ed9cf6c79_b7f46c6e-48bd-4639-9447-268f3e088612.webp?v=1752650488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/889843a2d06e9f98e11f5a92c396015ed9cf6c79_b7f46c6e-48bd-4639-9447-268f3e088612.webp?v=1752650488","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304868479075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197711126627,"product_id":7769975619683,"position":10,"created_at":"2025-07-16T15:21:25+08:00","updated_at":"2025-07-16T15:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486","variant_ids":[43304868479075]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25830062162019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304868479075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197711126627,"product_id":7769975619683,"position":10,"created_at":"2025-07-16T15:21:25+08:00","updated_at":"2025-07-16T15:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486","variant_ids":[43304868479075]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25830062162019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238d1ca2d1f0500c7e171a9fcfedd2fed0cb4ae1_ed66629f-9279-427f-9a81-12af8ccb5864.webp?v=1752650486"}},"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: "停產" }