$product = {"id":7876157669475,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了","handle":"iphone-12-pro-mod-nx-magsafe-printable-ea105","description":null,"published_at":"2025-09-04T09:22:12+08:00","created_at":"2025-09-03T12:16:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 12 Pro","merge","reseller-songsongmeow"],"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":43675653079139,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416616865891,"product_id":7876157669475,"position":2,"created_at":"2025-09-03T12:16:35+08:00","updated_at":"2025-09-03T12:16:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998","variant_ids":[43675653079139]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-EA105","featured_media":{"alt":null,"id":25988891377763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656552547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416618537059,"product_id":7876157669475,"position":8,"created_at":"2025-09-03T12:16:40+08:00","updated_at":"2025-09-03T12:16:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7da46a48e92420ce4d5dd5a56dde01a3a74602.webp?v=1756873002","variant_ids":[43675656552547]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-EA105","featured_media":{"alt":null,"id":25988893048931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7da46a48e92420ce4d5dd5a56dde01a3a74602.webp?v=1756873002"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656618083,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416618176611,"product_id":7876157669475,"position":7,"created_at":"2025-09-03T12:16:39+08:00","updated_at":"2025-09-03T12:16:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92cdb17f506401d7dddcb7a67d2ba7f83823cdf6.webp?v=1756873002","variant_ids":[43675656618083]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-EA105","featured_media":{"alt":null,"id":25988892721251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92cdb17f506401d7dddcb7a67d2ba7f83823cdf6.webp?v=1756873002"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656716387,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416619290723,"product_id":7876157669475,"position":11,"created_at":"2025-09-03T12:16:43+08:00","updated_at":"2025-09-03T12:16:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac96690d40a76028ab3c844babd668b3f44598.webp?v=1756873005","variant_ids":[43675656716387]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-EA105","featured_media":{"alt":null,"id":25988893802595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac96690d40a76028ab3c844babd668b3f44598.webp?v=1756873005"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656814691,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416616538211,"product_id":7876157669475,"position":1,"created_at":"2025-09-03T12:16:35+08:00","updated_at":"2025-09-03T12:16:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997","variant_ids":[43675656814691]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-EA105","featured_media":{"alt":null,"id":25988891050083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2234964275cd50549894fb2b80e61ec22fa149cb.webp?v=1756872998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe9b1ece6f2b119151f4db893336bd1553078f31.webp?v=1756872999","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc0af42c9187b53261e04eab55cab2460f0880d.webp?v=1756873000","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e923fa9ac1e81be2483ba6408062bfdb6949f60.webp?v=1756873001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92cdb17f506401d7dddcb7a67d2ba7f83823cdf6.webp?v=1756873002","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7da46a48e92420ce4d5dd5a56dde01a3a74602.webp?v=1756873002","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c82a3030543b5ccd6417945bfd4ed449291e41a5.webp?v=1756873003","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11586e7c5454349a11e2422e0c572ef663a2590f.webp?v=1756873004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac96690d40a76028ab3c844babd668b3f44598.webp?v=1756873005"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997","options":["color"],"media":[{"alt":null,"id":25988891050083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997","width":2000},{"alt":null,"id":25988891377763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998","width":2000},{"alt":null,"id":25988891639907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2234964275cd50549894fb2b80e61ec22fa149cb.webp?v=1756872998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2234964275cd50549894fb2b80e61ec22fa149cb.webp?v=1756872998","width":2000},{"alt":null,"id":25988891836515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe9b1ece6f2b119151f4db893336bd1553078f31.webp?v=1756872999"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe9b1ece6f2b119151f4db893336bd1553078f31.webp?v=1756872999","width":2000},{"alt":null,"id":25988892164195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc0af42c9187b53261e04eab55cab2460f0880d.webp?v=1756873000"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc0af42c9187b53261e04eab55cab2460f0880d.webp?v=1756873000","width":2000},{"alt":null,"id":25988892491875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e923fa9ac1e81be2483ba6408062bfdb6949f60.webp?v=1756873001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e923fa9ac1e81be2483ba6408062bfdb6949f60.webp?v=1756873001","width":2000},{"alt":null,"id":25988892721251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92cdb17f506401d7dddcb7a67d2ba7f83823cdf6.webp?v=1756873002"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92cdb17f506401d7dddcb7a67d2ba7f83823cdf6.webp?v=1756873002","width":2000},{"alt":null,"id":25988893048931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7da46a48e92420ce4d5dd5a56dde01a3a74602.webp?v=1756873002"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7da46a48e92420ce4d5dd5a56dde01a3a74602.webp?v=1756873002","width":2000},{"alt":null,"id":25988893311075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c82a3030543b5ccd6417945bfd4ed449291e41a5.webp?v=1756873003"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c82a3030543b5ccd6417945bfd4ed449291e41a5.webp?v=1756873003","width":2000},{"alt":null,"id":25988893540451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11586e7c5454349a11e2422e0c572ef663a2590f.webp?v=1756873004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11586e7c5454349a11e2422e0c572ef663a2590f.webp?v=1756873004","width":2000},{"alt":null,"id":25988893802595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac96690d40a76028ab3c844babd668b3f44598.webp?v=1756873005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac96690d40a76028ab3c844babd668b3f44598.webp?v=1756873005","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43675653079139,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416616865891,"product_id":7876157669475,"position":2,"created_at":"2025-09-03T12:16:35+08:00","updated_at":"2025-09-03T12:16:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998","variant_ids":[43675653079139]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-EA105","featured_media":{"alt":null,"id":25988891377763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656552547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416618537059,"product_id":7876157669475,"position":8,"created_at":"2025-09-03T12:16:40+08:00","updated_at":"2025-09-03T12:16:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7da46a48e92420ce4d5dd5a56dde01a3a74602.webp?v=1756873002","variant_ids":[43675656552547]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-EA105","featured_media":{"alt":null,"id":25988893048931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7da46a48e92420ce4d5dd5a56dde01a3a74602.webp?v=1756873002"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656618083,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416618176611,"product_id":7876157669475,"position":7,"created_at":"2025-09-03T12:16:39+08:00","updated_at":"2025-09-03T12:16:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92cdb17f506401d7dddcb7a67d2ba7f83823cdf6.webp?v=1756873002","variant_ids":[43675656618083]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-EA105","featured_media":{"alt":null,"id":25988892721251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92cdb17f506401d7dddcb7a67d2ba7f83823cdf6.webp?v=1756873002"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656716387,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416619290723,"product_id":7876157669475,"position":11,"created_at":"2025-09-03T12:16:43+08:00","updated_at":"2025-09-03T12:16:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac96690d40a76028ab3c844babd668b3f44598.webp?v=1756873005","variant_ids":[43675656716387]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185J5-EA105","featured_media":{"alt":null,"id":25988893802595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aac96690d40a76028ab3c844babd668b3f44598.webp?v=1756873005"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675656814691,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416616538211,"product_id":7876157669475,"position":1,"created_at":"2025-09-03T12:16:35+08:00","updated_at":"2025-09-03T12:16:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997","variant_ids":[43675656814691]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-EA105","featured_media":{"alt":null,"id":25988891050083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f5b92aabc0fcef45a2de029b5ad2a8d5c6cbc1.webp?v=1756872997"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675653079139,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34416616865891,"product_id":7876157669475,"position":2,"created_at":"2025-09-03T12:16:35+08:00","updated_at":"2025-09-03T12:16:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998","variant_ids":[43675653079139]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-EA105","featured_media":{"alt":null,"id":25988891377763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb95d911fa38fdb720b28e548f649f0074a3ef9d.webp?v=1756872998"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }