$product = {"id":7829126971491,"title":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃)","handle":"iphone-15-plus-solidx-magsafe-bumper-back-original-design-do11","description":null,"published_at":"2025-07-31T09:43:19+08:00","created_at":"2025-06-30T16:36:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer-we-taiwan-a-we-collection","device-iPhone 15 Plus","discountable-item","merge","original-design","reseller-we-taiwan-a-we-collection"],"price":145000,"price_min":145000,"price_max":145000,"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":43503149088867,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100435255395,"product_id":7829126971491,"position":6,"created_at":"2025-06-30T16:36:27+08:00","updated_at":"2025-06-30T16:36:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589","variant_ids":[43503149088867]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-DO11","featured_media":{"alt":null,"id":25756683763811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503149121635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100437483619,"product_id":7829126971491,"position":10,"created_at":"2025-06-30T16:36:29+08:00","updated_at":"2025-06-30T16:36:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08056e91883e63ed3d94a2a3215e026228d405ce_978cce9c-0040-494c-a38d-e6a38b5efd5a.webp?v=1751272591","variant_ids":[43503149121635]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129652-DO11","featured_media":{"alt":null,"id":25756685467747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08056e91883e63ed3d94a2a3215e026228d405ce_978cce9c-0040-494c-a38d-e6a38b5efd5a.webp?v=1751272591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503149154403,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100435943523,"product_id":7829126971491,"position":7,"created_at":"2025-06-30T16:36:28+08:00","updated_at":"2025-06-30T16:36:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c1d11512aa76c3b0160f0fd0756b65833fe111_339f1bba-2b60-4c22-aa35-d658e1f4ec19.webp?v=1751272589","variant_ids":[43503149154403]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296O8-DO11","featured_media":{"alt":null,"id":25756684025955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c1d11512aa76c3b0160f0fd0756b65833fe111_339f1bba-2b60-4c22-aa35-d658e1f4ec19.webp?v=1751272589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503149219939,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100433518691,"product_id":7829126971491,"position":3,"created_at":"2025-06-30T16:36:26+08:00","updated_at":"2025-06-30T16:36:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c802beb1468cd2056d5f886c558ac4cd0bdf67a2_2da6d9e3-08bf-4f5c-a164-f73c11d4a422.webp?v=1751272587","variant_ids":[43503149219939]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296Z7-DO11","featured_media":{"alt":null,"id":25756682944611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c802beb1468cd2056d5f886c558ac4cd0bdf67a2_2da6d9e3-08bf-4f5c-a164-f73c11d4a422.webp?v=1751272587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b95973771753b0ceeacb87fcdb88115ee6eff2f_42333db0-a440-43e3-a72e-b4097df6a441.webp?v=1751272586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f558e676dd46c524d0fd4758e3b01df95732a4_aaeb77e0-e05b-4a0e-a407-32d363041f4d.webp?v=1751272587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c802beb1468cd2056d5f886c558ac4cd0bdf67a2_2da6d9e3-08bf-4f5c-a164-f73c11d4a422.webp?v=1751272587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7409675a990be4525580ccd2629f739912f0714_8c21ded1-bd5f-45c1-b995-e490274be995.webp?v=1751272588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be37d294383a1172fc53b862c2736f2fa9e599e6_fa01009c-e9f4-4b89-9bb8-eb6bf8a5a75c.webp?v=1751272588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c1d11512aa76c3b0160f0fd0756b65833fe111_339f1bba-2b60-4c22-aa35-d658e1f4ec19.webp?v=1751272589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7eb7b90beb22cd4106c54381890ba1f8415d15c_9f3f282d-7b5c-4caf-99b5-293c31624496.webp?v=1751272590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f92cc94df2a0521b2f7fcfa2e0ce1f17d3dcc5c_4ee95431-f4b0-406c-90a3-33a622431831.webp?v=1751272591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08056e91883e63ed3d94a2a3215e026228d405ce_978cce9c-0040-494c-a38d-e6a38b5efd5a.webp?v=1751272591"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b95973771753b0ceeacb87fcdb88115ee6eff2f_42333db0-a440-43e3-a72e-b4097df6a441.webp?v=1751272586","options":["color"],"media":[{"alt":null,"id":25756682453091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b95973771753b0ceeacb87fcdb88115ee6eff2f_42333db0-a440-43e3-a72e-b4097df6a441.webp?v=1751272586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b95973771753b0ceeacb87fcdb88115ee6eff2f_42333db0-a440-43e3-a72e-b4097df6a441.webp?v=1751272586","width":2000},{"alt":null,"id":25756682715235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f558e676dd46c524d0fd4758e3b01df95732a4_aaeb77e0-e05b-4a0e-a407-32d363041f4d.webp?v=1751272587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f558e676dd46c524d0fd4758e3b01df95732a4_aaeb77e0-e05b-4a0e-a407-32d363041f4d.webp?v=1751272587","width":2000},{"alt":null,"id":25756682944611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c802beb1468cd2056d5f886c558ac4cd0bdf67a2_2da6d9e3-08bf-4f5c-a164-f73c11d4a422.webp?v=1751272587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c802beb1468cd2056d5f886c558ac4cd0bdf67a2_2da6d9e3-08bf-4f5c-a164-f73c11d4a422.webp?v=1751272587","width":2000},{"alt":null,"id":25756683173987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7409675a990be4525580ccd2629f739912f0714_8c21ded1-bd5f-45c1-b995-e490274be995.webp?v=1751272588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7409675a990be4525580ccd2629f739912f0714_8c21ded1-bd5f-45c1-b995-e490274be995.webp?v=1751272588","width":2000},{"alt":null,"id":25756683468899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be37d294383a1172fc53b862c2736f2fa9e599e6_fa01009c-e9f4-4b89-9bb8-eb6bf8a5a75c.webp?v=1751272588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be37d294383a1172fc53b862c2736f2fa9e599e6_fa01009c-e9f4-4b89-9bb8-eb6bf8a5a75c.webp?v=1751272588","width":2000},{"alt":null,"id":25756683763811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589","width":2000},{"alt":null,"id":25756684025955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c1d11512aa76c3b0160f0fd0756b65833fe111_339f1bba-2b60-4c22-aa35-d658e1f4ec19.webp?v=1751272589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c1d11512aa76c3b0160f0fd0756b65833fe111_339f1bba-2b60-4c22-aa35-d658e1f4ec19.webp?v=1751272589","width":2000},{"alt":null,"id":25756684353635,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7eb7b90beb22cd4106c54381890ba1f8415d15c_9f3f282d-7b5c-4caf-99b5-293c31624496.webp?v=1751272590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7eb7b90beb22cd4106c54381890ba1f8415d15c_9f3f282d-7b5c-4caf-99b5-293c31624496.webp?v=1751272590","width":2000},{"alt":null,"id":25756685238371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f92cc94df2a0521b2f7fcfa2e0ce1f17d3dcc5c_4ee95431-f4b0-406c-90a3-33a622431831.webp?v=1751272591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f92cc94df2a0521b2f7fcfa2e0ce1f17d3dcc5c_4ee95431-f4b0-406c-90a3-33a622431831.webp?v=1751272591","width":2000},{"alt":null,"id":25756685467747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08056e91883e63ed3d94a2a3215e026228d405ce_978cce9c-0040-494c-a38d-e6a38b5efd5a.webp?v=1751272591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08056e91883e63ed3d94a2a3215e026228d405ce_978cce9c-0040-494c-a38d-e6a38b5efd5a.webp?v=1751272591","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43503149088867,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100435255395,"product_id":7829126971491,"position":6,"created_at":"2025-06-30T16:36:27+08:00","updated_at":"2025-06-30T16:36:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589","variant_ids":[43503149088867]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-DO11","featured_media":{"alt":null,"id":25756683763811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503149121635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100437483619,"product_id":7829126971491,"position":10,"created_at":"2025-06-30T16:36:29+08:00","updated_at":"2025-06-30T16:36:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08056e91883e63ed3d94a2a3215e026228d405ce_978cce9c-0040-494c-a38d-e6a38b5efd5a.webp?v=1751272591","variant_ids":[43503149121635]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129652-DO11","featured_media":{"alt":null,"id":25756685467747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08056e91883e63ed3d94a2a3215e026228d405ce_978cce9c-0040-494c-a38d-e6a38b5efd5a.webp?v=1751272591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503149154403,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100435943523,"product_id":7829126971491,"position":7,"created_at":"2025-06-30T16:36:28+08:00","updated_at":"2025-06-30T16:36:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c1d11512aa76c3b0160f0fd0756b65833fe111_339f1bba-2b60-4c22-aa35-d658e1f4ec19.webp?v=1751272589","variant_ids":[43503149154403]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296O8-DO11","featured_media":{"alt":null,"id":25756684025955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c1d11512aa76c3b0160f0fd0756b65833fe111_339f1bba-2b60-4c22-aa35-d658e1f4ec19.webp?v=1751272589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503149219939,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100433518691,"product_id":7829126971491,"position":3,"created_at":"2025-06-30T16:36:26+08:00","updated_at":"2025-06-30T16:36:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c802beb1468cd2056d5f886c558ac4cd0bdf67a2_2da6d9e3-08bf-4f5c-a164-f73c11d4a422.webp?v=1751272587","variant_ids":[43503149219939]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01296Z7-DO11","featured_media":{"alt":null,"id":25756682944611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c802beb1468cd2056d5f886c558ac4cd0bdf67a2_2da6d9e3-08bf-4f5c-a164-f73c11d4a422.webp?v=1751272587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43503149088867,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO11","requires_shipping":true,"taxable":true,"featured_image":{"id":34100435255395,"product_id":7829126971491,"position":6,"created_at":"2025-06-30T16:36:27+08:00","updated_at":"2025-06-30T16:36:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589","variant_ids":[43503149088867]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (黃) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012960A-DO11","featured_media":{"alt":null,"id":25756683763811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba2537ae33e75f7f8d7190e44da2b2f03f7ede6_c14eece6-354b-4400-b48f-79f69d839ab7.webp?v=1751272589"}},"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: "停產" }