$product = {"id":7769914376291,"title":"iPhone 12 mini Mod NX ilovedoodle The Sun and Cat - 太陽與貓","handle":"iphone-12-mini-mod-nx-printable-xf52","description":null,"published_at":"2025-04-16T13:34:18+08:00","created_at":"2025-04-15T22:03:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 12 Mini","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":43304569864291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197346418787,"product_id":7769914376291,"position":3,"created_at":"2025-07-16T15:04:05+08:00","updated_at":"2025-07-16T15:04:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447","variant_ids":[43304569864291]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF52","featured_media":{"alt":null,"id":25829848547427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500.webp?v=1744725812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9365ac49d1e0039cc2dccde1e95184ab397df152_deddefd2-3b7f-49d9-95a5-f5db8a3e517e.webp?v=1752649446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115d7a70faf35bc6024be132f75c84496bf75109_22c68554-580c-4664-a9f7-aa83b86e681e.webp?v=1752649448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff64c5af2cc0490ef999ff92d665bda6dd2b350_148c9daa-0fb3-4895-8313-7599111cd3d3.webp?v=1752649448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d06c9fc082ac3f15e1d0716c5dbf31a2e00bd9f_789a7f89-d654-4eea-ae43-bdac8a74f7e1.webp?v=1752649449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ddf503ed76646893267cc02a986379b2ae82a3_0e9aeabe-9585-4d70-8de7-8a47e8adbab5.webp?v=1752649449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/091309288d5229ed9fae4355f003772836932281_bc5b7b35-4631-4957-b39c-77a778770048.webp?v=1752649450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f1748c6d3fd2aa5a5817510bb2a9d95736609_f8390787-3990-44f5-88a9-3b3752acd154.webp?v=1752649451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ee9d626133e634bd604836104a5261a91bf921e_b235816d-81af-4d12-a8ed-a3f601d4976a.webp?v=1752649452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61021a377924ecbd2411094dff52b9b35df790c_996ade53-960d-4624-9a64-cd2f3abe3ef7.webp?v=1752649453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65e723e20aac776df33fb20c094cf904d9aa8410_ede7a9c3-039e-46a3-8338-c5201da2b820.webp?v=1752649454"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500.webp?v=1744725812","options":["color"],"media":[{"alt":null,"id":25496498077795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500.webp?v=1744725812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927d5f08207e8090c5ca90da5af80413cbcd3500.webp?v=1744725812","width":2000},{"alt":null,"id":25829848318051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9365ac49d1e0039cc2dccde1e95184ab397df152_deddefd2-3b7f-49d9-95a5-f5db8a3e517e.webp?v=1752649446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9365ac49d1e0039cc2dccde1e95184ab397df152_deddefd2-3b7f-49d9-95a5-f5db8a3e517e.webp?v=1752649446","width":2000},{"alt":null,"id":25829848547427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447","width":2000},{"alt":null,"id":25829848744035,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115d7a70faf35bc6024be132f75c84496bf75109_22c68554-580c-4664-a9f7-aa83b86e681e.webp?v=1752649448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115d7a70faf35bc6024be132f75c84496bf75109_22c68554-580c-4664-a9f7-aa83b86e681e.webp?v=1752649448","width":2000},{"alt":null,"id":25829848973411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff64c5af2cc0490ef999ff92d665bda6dd2b350_148c9daa-0fb3-4895-8313-7599111cd3d3.webp?v=1752649448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff64c5af2cc0490ef999ff92d665bda6dd2b350_148c9daa-0fb3-4895-8313-7599111cd3d3.webp?v=1752649448","width":2000},{"alt":null,"id":25829849268323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d06c9fc082ac3f15e1d0716c5dbf31a2e00bd9f_789a7f89-d654-4eea-ae43-bdac8a74f7e1.webp?v=1752649449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d06c9fc082ac3f15e1d0716c5dbf31a2e00bd9f_789a7f89-d654-4eea-ae43-bdac8a74f7e1.webp?v=1752649449","width":2000},{"alt":null,"id":25829849464931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ddf503ed76646893267cc02a986379b2ae82a3_0e9aeabe-9585-4d70-8de7-8a47e8adbab5.webp?v=1752649449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ddf503ed76646893267cc02a986379b2ae82a3_0e9aeabe-9585-4d70-8de7-8a47e8adbab5.webp?v=1752649449","width":2000},{"alt":null,"id":25829849858147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/091309288d5229ed9fae4355f003772836932281_bc5b7b35-4631-4957-b39c-77a778770048.webp?v=1752649450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/091309288d5229ed9fae4355f003772836932281_bc5b7b35-4631-4957-b39c-77a778770048.webp?v=1752649450","width":2000},{"alt":null,"id":25829850087523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f1748c6d3fd2aa5a5817510bb2a9d95736609_f8390787-3990-44f5-88a9-3b3752acd154.webp?v=1752649451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154f1748c6d3fd2aa5a5817510bb2a9d95736609_f8390787-3990-44f5-88a9-3b3752acd154.webp?v=1752649451","width":2000},{"alt":null,"id":25829850415203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ee9d626133e634bd604836104a5261a91bf921e_b235816d-81af-4d12-a8ed-a3f601d4976a.webp?v=1752649452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ee9d626133e634bd604836104a5261a91bf921e_b235816d-81af-4d12-a8ed-a3f601d4976a.webp?v=1752649452","width":2000},{"alt":null,"id":25829850906723,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61021a377924ecbd2411094dff52b9b35df790c_996ade53-960d-4624-9a64-cd2f3abe3ef7.webp?v=1752649453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a61021a377924ecbd2411094dff52b9b35df790c_996ade53-960d-4624-9a64-cd2f3abe3ef7.webp?v=1752649453","width":2000},{"alt":null,"id":25829851267171,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65e723e20aac776df33fb20c094cf904d9aa8410_ede7a9c3-039e-46a3-8338-c5201da2b820.webp?v=1752649454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65e723e20aac776df33fb20c094cf904d9aa8410_ede7a9c3-039e-46a3-8338-c5201da2b820.webp?v=1752649454","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304569864291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197346418787,"product_id":7769914376291,"position":3,"created_at":"2025-07-16T15:04:05+08:00","updated_at":"2025-07-16T15:04:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447","variant_ids":[43304569864291]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF52","featured_media":{"alt":null,"id":25829848547427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304569864291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197346418787,"product_id":7769914376291,"position":3,"created_at":"2025-07-16T15:04:05+08:00","updated_at":"2025-07-16T15:04:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447","variant_ids":[43304569864291]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle The Sun and Cat - 太陽與貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF52","featured_media":{"alt":null,"id":25829848547427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5c45e1f313e54874a935bd56dcf94163f4b505_a8139ad5-2d09-4185-9c9c-f119ea9ea59a.webp?v=1752649447"}},"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: "停產" }