$product = {"id":7769912770659,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf51","description":null,"published_at":"2025-04-16T13:35:01+08:00","created_at":"2025-04-15T22:02:14+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":43304560656483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197776433251,"product_id":7769912770659,"position":7,"created_at":"2025-07-16T15:22:25+08:00","updated_at":"2025-07-16T15:22:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547","variant_ids":[43304560656483]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - 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-XF51","featured_media":{"alt":null,"id":25830096437347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051.webp?v=1744725741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e8934f17bc673da08935651a61184c8da7111_3218fcff-1755-4e8f-a839-87922750911f.webp?v=1752650543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b89b21656a51c0a73b6149eeea9eff81f786f0a_fbe9f117-51e1-4239-838d-0c5a96a42459.webp?v=1752650544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd7398da7b3e4150ff9ce87b1f34a0bf81de2cd_5e28ee8a-d998-4987-baed-96e9a2f1d30f.webp?v=1752650545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cd11593a98de0827b5685d68f3f416b1d0eaff_6370348b-8882-41ec-ad93-876555ec915a.webp?v=1752650545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e8136b34f45d4286ad4e21e719916be562d363_a0b15d22-ad75-48ef-80ea-9ab2fdf19afc.webp?v=1752650546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a7f27fd2ac03a66823ed300f3b05a106a8a76e1_b436b846-977a-4092-99d3-3d856f38463b.webp?v=1752650548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f12010687ddff92ac5035d0f88926bc5db0d53a8_ff106ade-7f8e-4e46-9bab-452efdd81ede.webp?v=1752650548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957c36c2964904fa160f0ec6766cbedc06001444_25474578-0d56-4335-88ca-aaa2a8b2f44b.webp?v=1752650549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7864a9784725c2269bd8b92dcd5fcbf1b3eb468c_1f9512ed-60a3-47a0-bc1a-df226f2bc2c5.webp?v=1752650549"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051.webp?v=1744725741","options":["color"],"media":[{"alt":null,"id":25496494669923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051.webp?v=1744725741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bab1847ec05985bd6c25fac1f2e971441432051.webp?v=1744725741","width":2000},{"alt":null,"id":25830094667875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e8934f17bc673da08935651a61184c8da7111_3218fcff-1755-4e8f-a839-87922750911f.webp?v=1752650543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e8934f17bc673da08935651a61184c8da7111_3218fcff-1755-4e8f-a839-87922750911f.webp?v=1752650543","width":2000},{"alt":null,"id":25830094995555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b89b21656a51c0a73b6149eeea9eff81f786f0a_fbe9f117-51e1-4239-838d-0c5a96a42459.webp?v=1752650544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b89b21656a51c0a73b6149eeea9eff81f786f0a_fbe9f117-51e1-4239-838d-0c5a96a42459.webp?v=1752650544","width":2000},{"alt":null,"id":25830095257699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd7398da7b3e4150ff9ce87b1f34a0bf81de2cd_5e28ee8a-d998-4987-baed-96e9a2f1d30f.webp?v=1752650545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd7398da7b3e4150ff9ce87b1f34a0bf81de2cd_5e28ee8a-d998-4987-baed-96e9a2f1d30f.webp?v=1752650545","width":2000},{"alt":null,"id":25830095519843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cd11593a98de0827b5685d68f3f416b1d0eaff_6370348b-8882-41ec-ad93-876555ec915a.webp?v=1752650545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cd11593a98de0827b5685d68f3f416b1d0eaff_6370348b-8882-41ec-ad93-876555ec915a.webp?v=1752650545","width":2000},{"alt":null,"id":25830096011363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e8136b34f45d4286ad4e21e719916be562d363_a0b15d22-ad75-48ef-80ea-9ab2fdf19afc.webp?v=1752650546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e8136b34f45d4286ad4e21e719916be562d363_a0b15d22-ad75-48ef-80ea-9ab2fdf19afc.webp?v=1752650546","width":2000},{"alt":null,"id":25830096437347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547","width":2000},{"alt":null,"id":25830096666723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a7f27fd2ac03a66823ed300f3b05a106a8a76e1_b436b846-977a-4092-99d3-3d856f38463b.webp?v=1752650548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a7f27fd2ac03a66823ed300f3b05a106a8a76e1_b436b846-977a-4092-99d3-3d856f38463b.webp?v=1752650548","width":2000},{"alt":null,"id":25830097158243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f12010687ddff92ac5035d0f88926bc5db0d53a8_ff106ade-7f8e-4e46-9bab-452efdd81ede.webp?v=1752650548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f12010687ddff92ac5035d0f88926bc5db0d53a8_ff106ade-7f8e-4e46-9bab-452efdd81ede.webp?v=1752650548","width":2000},{"alt":null,"id":25830097420387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957c36c2964904fa160f0ec6766cbedc06001444_25474578-0d56-4335-88ca-aaa2a8b2f44b.webp?v=1752650549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957c36c2964904fa160f0ec6766cbedc06001444_25474578-0d56-4335-88ca-aaa2a8b2f44b.webp?v=1752650549","width":2000},{"alt":null,"id":25830097813603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7864a9784725c2269bd8b92dcd5fcbf1b3eb468c_1f9512ed-60a3-47a0-bc1a-df226f2bc2c5.webp?v=1752650549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7864a9784725c2269bd8b92dcd5fcbf1b3eb468c_1f9512ed-60a3-47a0-bc1a-df226f2bc2c5.webp?v=1752650549","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304560656483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197776433251,"product_id":7769912770659,"position":7,"created_at":"2025-07-16T15:22:25+08:00","updated_at":"2025-07-16T15:22:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547","variant_ids":[43304560656483]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - 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-XF51","featured_media":{"alt":null,"id":25830096437347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304560656483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197776433251,"product_id":7769912770659,"position":7,"created_at":"2025-07-16T15:22:25+08:00","updated_at":"2025-07-16T15:22:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547","variant_ids":[43304560656483]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - 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-XF51","featured_media":{"alt":null,"id":25830096437347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97507db36edb6e54688a1b485ac2b195684349b4_803351b8-bbd9-4a6c-8ba5-ed09660539d5.webp?v=1752650547"}},"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: "停產" }