$product = {"id":7903396069475,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫","handle":"iphone-12-pro-mod-nx-magsafe-printable-it33","description":null,"published_at":"2025-10-20T09:48:51+08:00","created_at":"2025-10-20T09:20:03+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-godgwawa","device-iPhone 12 Pro","merge","reseller-godgwawa"],"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":43786500931683,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672777494627,"product_id":7903396069475,"position":1,"created_at":"2025-10-20T09:20:05+08:00","updated_at":"2025-10-20T09:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207","variant_ids":[43786500931683]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242036334691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503553123,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672777789539,"product_id":7903396069475,"position":2,"created_at":"2025-10-20T09:20:05+08:00","updated_at":"2025-10-20T09:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f58cb11f9ac7b035cd0c77cefbb1074c260e9a12.webp?v=1760923207","variant_ids":[43786503553123]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242036727907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f58cb11f9ac7b035cd0c77cefbb1074c260e9a12.webp?v=1760923207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503782499,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672780050531,"product_id":7903396069475,"position":6,"created_at":"2025-10-20T09:20:08+08:00","updated_at":"2025-10-20T09:20:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd8ddf6cf128f60b48444386a6b23dda0530972.webp?v=1760923210","variant_ids":[43786503782499]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242038988899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd8ddf6cf128f60b48444386a6b23dda0530972.webp?v=1760923210"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503815267,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672782082147,"product_id":7903396069475,"position":9,"created_at":"2025-10-20T09:20:10+08:00","updated_at":"2025-10-20T09:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e89f8becbe5c7dfb96970f4cc7103034f84029c2.webp?v=1760923213","variant_ids":[43786503815267]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242040856675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e89f8becbe5c7dfb96970f4cc7103034f84029c2.webp?v=1760923213"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503848035,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672780705891,"product_id":7903396069475,"position":7,"created_at":"2025-10-20T09:20:09+08:00","updated_at":"2025-10-20T09:20:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d1fb9d93391985d97ba5981d63a75b6f6ac3ba.webp?v=1760923211","variant_ids":[43786503848035]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242039545955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d1fb9d93391985d97ba5981d63a75b6f6ac3ba.webp?v=1760923211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f58cb11f9ac7b035cd0c77cefbb1074c260e9a12.webp?v=1760923207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa2239121a9684ed5aaf8d1bef59782ce1a7dbe.webp?v=1760923208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a109acb3305f66687fe16b2f38e611c9d4cb787.webp?v=1760923209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78e0afd396323e483303c3241c47ad34b1a975d9.webp?v=1760923209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd8ddf6cf128f60b48444386a6b23dda0530972.webp?v=1760923210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d1fb9d93391985d97ba5981d63a75b6f6ac3ba.webp?v=1760923211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b2da365c3742a83a1dddb9457e23857b6a75ad.webp?v=1760923212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e89f8becbe5c7dfb96970f4cc7103034f84029c2.webp?v=1760923213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29925dea1ebaa20912c4a4c0bd0280d688c2eba0.webp?v=1760923213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904c7f0ea54db145711aa910a7e0df58a058f522.webp?v=1760923214"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207","options":["color"],"media":[{"alt":null,"id":26242036334691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207","width":2000},{"alt":null,"id":26242036727907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f58cb11f9ac7b035cd0c77cefbb1074c260e9a12.webp?v=1760923207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f58cb11f9ac7b035cd0c77cefbb1074c260e9a12.webp?v=1760923207","width":2000},{"alt":null,"id":26242037383267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa2239121a9684ed5aaf8d1bef59782ce1a7dbe.webp?v=1760923208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa2239121a9684ed5aaf8d1bef59782ce1a7dbe.webp?v=1760923208","width":2000},{"alt":null,"id":26242037907555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a109acb3305f66687fe16b2f38e611c9d4cb787.webp?v=1760923209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a109acb3305f66687fe16b2f38e611c9d4cb787.webp?v=1760923209","width":2000},{"alt":null,"id":26242038530147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78e0afd396323e483303c3241c47ad34b1a975d9.webp?v=1760923209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78e0afd396323e483303c3241c47ad34b1a975d9.webp?v=1760923209","width":2000},{"alt":null,"id":26242038988899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd8ddf6cf128f60b48444386a6b23dda0530972.webp?v=1760923210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd8ddf6cf128f60b48444386a6b23dda0530972.webp?v=1760923210","width":2000},{"alt":null,"id":26242039545955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d1fb9d93391985d97ba5981d63a75b6f6ac3ba.webp?v=1760923211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d1fb9d93391985d97ba5981d63a75b6f6ac3ba.webp?v=1760923211","width":2000},{"alt":null,"id":26242040299619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b2da365c3742a83a1dddb9457e23857b6a75ad.webp?v=1760923212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b2da365c3742a83a1dddb9457e23857b6a75ad.webp?v=1760923212","width":2000},{"alt":null,"id":26242040856675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e89f8becbe5c7dfb96970f4cc7103034f84029c2.webp?v=1760923213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e89f8becbe5c7dfb96970f4cc7103034f84029c2.webp?v=1760923213","width":2000},{"alt":null,"id":26242041675875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29925dea1ebaa20912c4a4c0bd0280d688c2eba0.webp?v=1760923213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29925dea1ebaa20912c4a4c0bd0280d688c2eba0.webp?v=1760923213","width":2000},{"alt":null,"id":26242042495075,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904c7f0ea54db145711aa910a7e0df58a058f522.webp?v=1760923214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904c7f0ea54db145711aa910a7e0df58a058f522.webp?v=1760923214","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43786500931683,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672777494627,"product_id":7903396069475,"position":1,"created_at":"2025-10-20T09:20:05+08:00","updated_at":"2025-10-20T09:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207","variant_ids":[43786500931683]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242036334691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503553123,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672777789539,"product_id":7903396069475,"position":2,"created_at":"2025-10-20T09:20:05+08:00","updated_at":"2025-10-20T09:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f58cb11f9ac7b035cd0c77cefbb1074c260e9a12.webp?v=1760923207","variant_ids":[43786503553123]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242036727907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f58cb11f9ac7b035cd0c77cefbb1074c260e9a12.webp?v=1760923207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503782499,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672780050531,"product_id":7903396069475,"position":6,"created_at":"2025-10-20T09:20:08+08:00","updated_at":"2025-10-20T09:20:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd8ddf6cf128f60b48444386a6b23dda0530972.webp?v=1760923210","variant_ids":[43786503782499]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242038988899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd8ddf6cf128f60b48444386a6b23dda0530972.webp?v=1760923210"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503815267,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672782082147,"product_id":7903396069475,"position":9,"created_at":"2025-10-20T09:20:10+08:00","updated_at":"2025-10-20T09:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e89f8becbe5c7dfb96970f4cc7103034f84029c2.webp?v=1760923213","variant_ids":[43786503815267]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242040856675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e89f8becbe5c7dfb96970f4cc7103034f84029c2.webp?v=1760923213"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786503848035,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672780705891,"product_id":7903396069475,"position":7,"created_at":"2025-10-20T09:20:09+08:00","updated_at":"2025-10-20T09:20:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d1fb9d93391985d97ba5981d63a75b6f6ac3ba.webp?v=1760923211","variant_ids":[43786503848035]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242039545955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6d1fb9d93391985d97ba5981d63a75b6f6ac3ba.webp?v=1760923211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786500931683,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-IT33","requires_shipping":true,"taxable":true,"featured_image":{"id":34672777494627,"product_id":7903396069475,"position":1,"created_at":"2025-10-20T09:20:05+08:00","updated_at":"2025-10-20T09:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207","variant_ids":[43786500931683]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 優吉漫畫 - 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-IT33","featured_media":{"alt":null,"id":26242036334691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436b191e074c56b8cb9233066fe370acc7f1fbe2.webp?v=1760923207"}},"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: "停產" }