$product = {"id":7770047905891,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf57","description":null,"published_at":"2025-04-16T12:42:13+08:00","created_at":"2025-04-15T23:30:12+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":43305183772771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834170467,"product_id":7770047905891,"position":8,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598","variant_ids":[43305183772771]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25830127075427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd_f28b8b84-de07-4f20-aed0-80861ffc8d79.webp?v=1744731018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faaa3a15ebdb982f3c7731b2910c53a34f508754_728a121c-8e4d-4879-b882-0131eba93637.webp?v=1752650594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb9fb983c0776ee1694b0521232545e15cf7d0ef_e6de2e7e-71ec-4b4b-908f-14463edbf6c4.webp?v=1752650594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7951a044f764a036a4bd1a7e5636455c256eabd0_dd86216c-8d30-4625-b6c8-df1e7e1d5f1c.webp?v=1752650595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269ddba0ab03d766904afb76baf0358d2c742013_db5b401b-051f-4b40-aed7-16efda30d510.webp?v=1752650595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d490a2590b0f67c86ab57cc0a60aa883644f165b_a7a916c5-ad4b-4c98-812e-5a73689af8c0.webp?v=1752650596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78599267b9ec8005ee30f3245614584299ea2d6c_30de5ec9-51c5-44ae-a4b5-e0ad94ab4f06.webp?v=1752650597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/369856e5cfe96193d516e692c3b238459ffdc5da_7025826a-056e-484c-9d10-14cd5fa80304.webp?v=1752650598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5d85adea3df4f12af1da2b7b0f5402eb229a1d_91132628-a285-4833-bf37-43ef78188fa9.webp?v=1752650599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a15d1a21754aa9279f3c79ca38e9a03b9af111_90941aa7-e7f3-4839-93de-9c8f6e55ed26.webp?v=1752650600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e263a94f3f67f32ecfc474abaf1ebf557df843_6d350866-bdd4-4fa7-b99e-f609d9e937a7.webp?v=1752650600"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd_f28b8b84-de07-4f20-aed0-80861ffc8d79.webp?v=1744731018","options":["color"],"media":[{"alt":null,"id":25496795873379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd_f28b8b84-de07-4f20-aed0-80861ffc8d79.webp?v=1744731018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd_f28b8b84-de07-4f20-aed0-80861ffc8d79.webp?v=1744731018","width":2000},{"alt":null,"id":25830124519523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faaa3a15ebdb982f3c7731b2910c53a34f508754_728a121c-8e4d-4879-b882-0131eba93637.webp?v=1752650594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faaa3a15ebdb982f3c7731b2910c53a34f508754_728a121c-8e4d-4879-b882-0131eba93637.webp?v=1752650594","width":2000},{"alt":null,"id":25830125011043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb9fb983c0776ee1694b0521232545e15cf7d0ef_e6de2e7e-71ec-4b4b-908f-14463edbf6c4.webp?v=1752650594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb9fb983c0776ee1694b0521232545e15cf7d0ef_e6de2e7e-71ec-4b4b-908f-14463edbf6c4.webp?v=1752650594","width":2000},{"alt":null,"id":25830125371491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7951a044f764a036a4bd1a7e5636455c256eabd0_dd86216c-8d30-4625-b6c8-df1e7e1d5f1c.webp?v=1752650595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7951a044f764a036a4bd1a7e5636455c256eabd0_dd86216c-8d30-4625-b6c8-df1e7e1d5f1c.webp?v=1752650595","width":2000},{"alt":null,"id":25830125731939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269ddba0ab03d766904afb76baf0358d2c742013_db5b401b-051f-4b40-aed7-16efda30d510.webp?v=1752650595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269ddba0ab03d766904afb76baf0358d2c742013_db5b401b-051f-4b40-aed7-16efda30d510.webp?v=1752650595","width":2000},{"alt":null,"id":25830126190691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d490a2590b0f67c86ab57cc0a60aa883644f165b_a7a916c5-ad4b-4c98-812e-5a73689af8c0.webp?v=1752650596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d490a2590b0f67c86ab57cc0a60aa883644f165b_a7a916c5-ad4b-4c98-812e-5a73689af8c0.webp?v=1752650596","width":2000},{"alt":null,"id":25830126747747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78599267b9ec8005ee30f3245614584299ea2d6c_30de5ec9-51c5-44ae-a4b5-e0ad94ab4f06.webp?v=1752650597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78599267b9ec8005ee30f3245614584299ea2d6c_30de5ec9-51c5-44ae-a4b5-e0ad94ab4f06.webp?v=1752650597","width":2000},{"alt":null,"id":25830127075427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598","width":2000},{"alt":null,"id":25830127239267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/369856e5cfe96193d516e692c3b238459ffdc5da_7025826a-056e-484c-9d10-14cd5fa80304.webp?v=1752650598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/369856e5cfe96193d516e692c3b238459ffdc5da_7025826a-056e-484c-9d10-14cd5fa80304.webp?v=1752650598","width":2000},{"alt":null,"id":25830127534179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5d85adea3df4f12af1da2b7b0f5402eb229a1d_91132628-a285-4833-bf37-43ef78188fa9.webp?v=1752650599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5d85adea3df4f12af1da2b7b0f5402eb229a1d_91132628-a285-4833-bf37-43ef78188fa9.webp?v=1752650599","width":2000},{"alt":null,"id":25830127829091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a15d1a21754aa9279f3c79ca38e9a03b9af111_90941aa7-e7f3-4839-93de-9c8f6e55ed26.webp?v=1752650600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a15d1a21754aa9279f3c79ca38e9a03b9af111_90941aa7-e7f3-4839-93de-9c8f6e55ed26.webp?v=1752650600","width":2000},{"alt":null,"id":25830128451683,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e263a94f3f67f32ecfc474abaf1ebf557df843_6d350866-bdd4-4fa7-b99e-f609d9e937a7.webp?v=1752650600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e263a94f3f67f32ecfc474abaf1ebf557df843_6d350866-bdd4-4fa7-b99e-f609d9e937a7.webp?v=1752650600","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43305183772771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834170467,"product_id":7770047905891,"position":8,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598","variant_ids":[43305183772771]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25830127075427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43305183772771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834170467,"product_id":7770047905891,"position":8,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598","variant_ids":[43305183772771]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - 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-XF57","featured_media":{"alt":null,"id":25830127075427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657bece78a7132601d7e36d56a4b75c2e32f2f03_4ed4bea4-9f2b-4317-bc66-8736dcb02144.webp?v=1752650598"}},"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: "停產" }