$product = {"id":7769767510115,"title":"iPhone 12 mini Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓","handle":"iphone-12-mini-mod-nx-printable-xf50","description":null,"published_at":"2025-07-16T17:01:11+08:00","created_at":"2025-04-15T20:23:13+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":43303882260579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34196751745123,"product_id":7769767510115,"position":2,"created_at":"2025-07-16T14:50:34+08:00","updated_at":"2025-07-16T14:50:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636","variant_ids":[43303882260579]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829525389411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a.webp?v=1744719800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c906fed15c3ee16c111ab962136438ce02d5af35_d8f7597a-11f2-4c49-a526-64b643aff300.webp?v=1752648636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e64a3d351afd27625e14db1976a5c61096396a4_1ee43120-ac5b-4564-b7aa-7f19ba1e22bb.webp?v=1752648637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0726efd5098c1ee9df15983d94e82a1786959fd6_025d94d2-ffc5-483e-b5a3-677fecbd2bc5.webp?v=1752648638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0ed5656a410643e7d17e8cb37dd70605a08b902_f60601a2-086a-48ef-ad5c-33104af315e9.webp?v=1752648638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487b7784c994592da554f6b1c525c9569225e413_9dbe367d-caaa-44f9-adab-57ee045e3713.webp?v=1752648639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f569588db3005e03bd3a07e369897c08c2ce33d9_683c442d-4659-417e-b947-69213874e1fa.webp?v=1752648640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0034bbfe12e76d32d40db7496e1ba94dc4b5d3b3_b3746143-7d9b-4575-b2e8-a9dc54adbc98.webp?v=1752648640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6558d22cbbe5ea362fe7fea0ce21b24bd6c731f0_11aa0f78-27e5-454f-a8e9-c630422c6f05.webp?v=1752648640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0ed501d1510515beddf99245fefb5be4b83e66_2c5162f2-29ea-4c90-8049-fac713bb06bc.webp?v=1752648641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/230f9aab55db88b5cc2f2b6d647f009b5cde28ad_ed4de936-4e2c-43a3-8302-5de4e0f3225c.webp?v=1752648642"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a.webp?v=1744719800","options":["color"],"media":[{"alt":null,"id":25496258052195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a.webp?v=1744719800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b513ae3a4d8ad1b0ada78d0e96acfae3e7aff5a.webp?v=1744719800","width":2000},{"alt":null,"id":25829525389411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636","width":2000},{"alt":null,"id":25829525520483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c906fed15c3ee16c111ab962136438ce02d5af35_d8f7597a-11f2-4c49-a526-64b643aff300.webp?v=1752648636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c906fed15c3ee16c111ab962136438ce02d5af35_d8f7597a-11f2-4c49-a526-64b643aff300.webp?v=1752648636","width":2000},{"alt":null,"id":25829525749859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e64a3d351afd27625e14db1976a5c61096396a4_1ee43120-ac5b-4564-b7aa-7f19ba1e22bb.webp?v=1752648637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e64a3d351afd27625e14db1976a5c61096396a4_1ee43120-ac5b-4564-b7aa-7f19ba1e22bb.webp?v=1752648637","width":2000},{"alt":null,"id":25829525979235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0726efd5098c1ee9df15983d94e82a1786959fd6_025d94d2-ffc5-483e-b5a3-677fecbd2bc5.webp?v=1752648638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0726efd5098c1ee9df15983d94e82a1786959fd6_025d94d2-ffc5-483e-b5a3-677fecbd2bc5.webp?v=1752648638","width":2000},{"alt":null,"id":25829526143075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0ed5656a410643e7d17e8cb37dd70605a08b902_f60601a2-086a-48ef-ad5c-33104af315e9.webp?v=1752648638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0ed5656a410643e7d17e8cb37dd70605a08b902_f60601a2-086a-48ef-ad5c-33104af315e9.webp?v=1752648638","width":2000},{"alt":null,"id":25829526339683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487b7784c994592da554f6b1c525c9569225e413_9dbe367d-caaa-44f9-adab-57ee045e3713.webp?v=1752648639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/487b7784c994592da554f6b1c525c9569225e413_9dbe367d-caaa-44f9-adab-57ee045e3713.webp?v=1752648639","width":2000},{"alt":null,"id":25829526896739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f569588db3005e03bd3a07e369897c08c2ce33d9_683c442d-4659-417e-b947-69213874e1fa.webp?v=1752648640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f569588db3005e03bd3a07e369897c08c2ce33d9_683c442d-4659-417e-b947-69213874e1fa.webp?v=1752648640","width":2000},{"alt":null,"id":25829526995043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0034bbfe12e76d32d40db7496e1ba94dc4b5d3b3_b3746143-7d9b-4575-b2e8-a9dc54adbc98.webp?v=1752648640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0034bbfe12e76d32d40db7496e1ba94dc4b5d3b3_b3746143-7d9b-4575-b2e8-a9dc54adbc98.webp?v=1752648640","width":2000},{"alt":null,"id":25829527158883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6558d22cbbe5ea362fe7fea0ce21b24bd6c731f0_11aa0f78-27e5-454f-a8e9-c630422c6f05.webp?v=1752648640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6558d22cbbe5ea362fe7fea0ce21b24bd6c731f0_11aa0f78-27e5-454f-a8e9-c630422c6f05.webp?v=1752648640","width":2000},{"alt":null,"id":25829527322723,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0ed501d1510515beddf99245fefb5be4b83e66_2c5162f2-29ea-4c90-8049-fac713bb06bc.webp?v=1752648641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0ed501d1510515beddf99245fefb5be4b83e66_2c5162f2-29ea-4c90-8049-fac713bb06bc.webp?v=1752648641","width":2000},{"alt":null,"id":25829527486563,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/230f9aab55db88b5cc2f2b6d647f009b5cde28ad_ed4de936-4e2c-43a3-8302-5de4e0f3225c.webp?v=1752648642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/230f9aab55db88b5cc2f2b6d647f009b5cde28ad_ed4de936-4e2c-43a3-8302-5de4e0f3225c.webp?v=1752648642","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303882260579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34196751745123,"product_id":7769767510115,"position":2,"created_at":"2025-07-16T14:50:34+08:00","updated_at":"2025-07-16T14:50:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636","variant_ids":[43303882260579]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829525389411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303882260579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34196751745123,"product_id":7769767510115,"position":2,"created_at":"2025-07-16T14:50:34+08:00","updated_at":"2025-07-16T14:50:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636","variant_ids":[43303882260579]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829525389411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb3ed240372262c1b799865fdab16e9a5a4de55_52f3d5d9-395b-4ad7-b5c3-f638de4b2fad.webp?v=1752648636"}},"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: "停產" }