$product = {"id":7769610289251,"title":"iPhone 12 mini Mod NX ilovedoodle Mindful Cat - 冷靜","handle":"iphone-12-mini-mod-nx-printable-xf46","description":null,"published_at":"2025-07-16T17:18:30+08:00","created_at":"2025-04-15T18:25:27+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":43303161364579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34196526465123,"product_id":7769610289251,"position":10,"created_at":"2025-07-16T14:45:23+08:00","updated_at":"2025-07-16T14:45:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325","variant_ids":[43303161364579]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25829402771555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8b8ef707dd106f982cd68f916faa23c1cf48228_9035e726-d220-461b-b949-dab333588f3b.webp?v=1744712734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e32a32b7d8ddecb50208213ea0ca1be2b4110f_31ffef95-2eac-4c84-b56d-57671359ffd4.webp?v=1752648321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da366a17adef28e79a910b63c55d09c80f363bb_a73e65a0-d161-4ccd-abbc-6fbcc0a057a9.webp?v=1752648321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71cfecb23ce3356be9b0f56e1b2595453bc643e_ceeece9e-bb66-4026-be22-4abd38c7c5c2.webp?v=1752648322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e9511372591d65fce048bf1d932da42b72662f_6c36ae4f-f2e7-4d17-a16f-9651d84a70f9.webp?v=1752648322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee11e99ef831611d27004a5bdd97b31c7af0fc0_11a98caf-ef4d-4d63-b68b-a7b08cc37e24.webp?v=1752648323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597bca4ee153dc2eea3aaaafe573992a74cd35f6_74f9d6a0-bcab-4dfd-8c18-da7f02ca3180.webp?v=1752648323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71640519cfb7ad98f72ebb706300b17c180f47b5_c3401e52-fb64-4e9f-9210-4fa23420c59a.webp?v=1752648324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a05b2b2f62dbc15c194cd44251933ce46ed84927_832677d5-5c11-4fce-ab53-f22620ec30c3.webp?v=1752648324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62c2992a2b05eed9341f9d4cb74fe7481a6f652_12de7198-7745-480e-8bec-8ea5595f7b20.webp?v=1752648325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20a809fba5e385d5cb91d9541fe24b62b7d8a505_1bb6b3d1-ca88-4518-915c-530a7a7d5f88.webp?v=1752648326"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8b8ef707dd106f982cd68f916faa23c1cf48228_9035e726-d220-461b-b949-dab333588f3b.webp?v=1744712734","options":["color"],"media":[{"alt":null,"id":25495950000227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8b8ef707dd106f982cd68f916faa23c1cf48228_9035e726-d220-461b-b949-dab333588f3b.webp?v=1744712734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8b8ef707dd106f982cd68f916faa23c1cf48228_9035e726-d220-461b-b949-dab333588f3b.webp?v=1744712734","width":2000},{"alt":null,"id":25829401460835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e32a32b7d8ddecb50208213ea0ca1be2b4110f_31ffef95-2eac-4c84-b56d-57671359ffd4.webp?v=1752648321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e32a32b7d8ddecb50208213ea0ca1be2b4110f_31ffef95-2eac-4c84-b56d-57671359ffd4.webp?v=1752648321","width":2000},{"alt":null,"id":25829401624675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da366a17adef28e79a910b63c55d09c80f363bb_a73e65a0-d161-4ccd-abbc-6fbcc0a057a9.webp?v=1752648321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da366a17adef28e79a910b63c55d09c80f363bb_a73e65a0-d161-4ccd-abbc-6fbcc0a057a9.webp?v=1752648321","width":2000},{"alt":null,"id":25829401755747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71cfecb23ce3356be9b0f56e1b2595453bc643e_ceeece9e-bb66-4026-be22-4abd38c7c5c2.webp?v=1752648322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71cfecb23ce3356be9b0f56e1b2595453bc643e_ceeece9e-bb66-4026-be22-4abd38c7c5c2.webp?v=1752648322","width":2000},{"alt":null,"id":25829401919587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e9511372591d65fce048bf1d932da42b72662f_6c36ae4f-f2e7-4d17-a16f-9651d84a70f9.webp?v=1752648322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e9511372591d65fce048bf1d932da42b72662f_6c36ae4f-f2e7-4d17-a16f-9651d84a70f9.webp?v=1752648322","width":2000},{"alt":null,"id":25829402083427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee11e99ef831611d27004a5bdd97b31c7af0fc0_11a98caf-ef4d-4d63-b68b-a7b08cc37e24.webp?v=1752648323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee11e99ef831611d27004a5bdd97b31c7af0fc0_11a98caf-ef4d-4d63-b68b-a7b08cc37e24.webp?v=1752648323","width":2000},{"alt":null,"id":25829402214499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597bca4ee153dc2eea3aaaafe573992a74cd35f6_74f9d6a0-bcab-4dfd-8c18-da7f02ca3180.webp?v=1752648323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597bca4ee153dc2eea3aaaafe573992a74cd35f6_74f9d6a0-bcab-4dfd-8c18-da7f02ca3180.webp?v=1752648323","width":2000},{"alt":null,"id":25829402280035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71640519cfb7ad98f72ebb706300b17c180f47b5_c3401e52-fb64-4e9f-9210-4fa23420c59a.webp?v=1752648324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71640519cfb7ad98f72ebb706300b17c180f47b5_c3401e52-fb64-4e9f-9210-4fa23420c59a.webp?v=1752648324","width":2000},{"alt":null,"id":25829402443875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a05b2b2f62dbc15c194cd44251933ce46ed84927_832677d5-5c11-4fce-ab53-f22620ec30c3.webp?v=1752648324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a05b2b2f62dbc15c194cd44251933ce46ed84927_832677d5-5c11-4fce-ab53-f22620ec30c3.webp?v=1752648324","width":2000},{"alt":null,"id":25829402771555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325","width":2000},{"alt":null,"id":25829402968163,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62c2992a2b05eed9341f9d4cb74fe7481a6f652_12de7198-7745-480e-8bec-8ea5595f7b20.webp?v=1752648325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62c2992a2b05eed9341f9d4cb74fe7481a6f652_12de7198-7745-480e-8bec-8ea5595f7b20.webp?v=1752648325","width":2000},{"alt":null,"id":25829403197539,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20a809fba5e385d5cb91d9541fe24b62b7d8a505_1bb6b3d1-ca88-4518-915c-530a7a7d5f88.webp?v=1752648326"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20a809fba5e385d5cb91d9541fe24b62b7d8a505_1bb6b3d1-ca88-4518-915c-530a7a7d5f88.webp?v=1752648326","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303161364579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34196526465123,"product_id":7769610289251,"position":10,"created_at":"2025-07-16T14:45:23+08:00","updated_at":"2025-07-16T14:45:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325","variant_ids":[43303161364579]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25829402771555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303161364579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34196526465123,"product_id":7769610289251,"position":10,"created_at":"2025-07-16T14:45:23+08:00","updated_at":"2025-07-16T14:45:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325","variant_ids":[43303161364579]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25829402771555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/607df9e0ebedc5dbd591b9548a055c3bb60ee0ba_1d247802-09e1-44a9-8b4e-a32295598aa4.webp?v=1752648325"}},"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: "停產" }