$product = {"id":7829122154595,"title":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新","handle":"iphone-15-plus-solidx-magsafe-bumper-back-original-design-do14","description":null,"published_at":"2025-07-31T09:45:34+08:00","created_at":"2025-06-30T16:35:06+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":43503116124259,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100364378211,"product_id":7829122154595,"position":7,"created_at":"2025-06-30T16:35:13+08:00","updated_at":"2025-06-30T16:35:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515","variant_ids":[43503116124259]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756646604899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503116157027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100361625699,"product_id":7829122154595,"position":1,"created_at":"2025-06-30T16:35:10+08:00","updated_at":"2025-06-30T16:35:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512","variant_ids":[43503116157027]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756645228643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503116189795,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100365066339,"product_id":7829122154595,"position":9,"created_at":"2025-06-30T16:35:14+08:00","updated_at":"2025-06-30T16:35:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854e5402aceabbdacdeacc8509f2983421f5dbe6_6d534a16-9e43-46aa-85bb-792e390ac8be.webp?v=1751272516","variant_ids":[43503116189795]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756647129187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854e5402aceabbdacdeacc8509f2983421f5dbe6_6d534a16-9e43-46aa-85bb-792e390ac8be.webp?v=1751272516"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503116255331,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100363329635,"product_id":7829122154595,"position":5,"created_at":"2025-06-30T16:35:12+08:00","updated_at":"2025-06-30T16:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f3c6ff588b27d0c16bee1f70ca28b1e81a04e0_dc6fe0ce-f145-4364-abe1-e6a764de7c07.webp?v=1751272514","variant_ids":[43503116255331]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756646244451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f3c6ff588b27d0c16bee1f70ca28b1e81a04e0_dc6fe0ce-f145-4364-abe1-e6a764de7c07.webp?v=1751272514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e74ca0deeb7d94643904d01a0fcf9b766947634_a63d9932-361c-4819-a10c-9f41b5ebc94b.webp?v=1751272512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb48dd5e74535bc972adbced3042155b0d70e2c_a95e221d-dd7a-491b-8ff0-51d16d3574b3.webp?v=1751272513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6a8f9628d43e3a17466578f27a644ce817792fa_147e0b67-29f1-4ecb-b570-5ad0175c5dbc.webp?v=1751272513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f3c6ff588b27d0c16bee1f70ca28b1e81a04e0_dc6fe0ce-f145-4364-abe1-e6a764de7c07.webp?v=1751272514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f81d235518f2bf805ec1dfdfa37a32080c4618_a8d82af3-937c-4901-b5c7-6dbc94c9935b.webp?v=1751272514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/434982411f3b61156971f9485abdf83e6b775dd7_632cd263-e856-4520-bf22-00931b1609c6.webp?v=1751272516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854e5402aceabbdacdeacc8509f2983421f5dbe6_6d534a16-9e43-46aa-85bb-792e390ac8be.webp?v=1751272516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f9dc1fd1e8a5688c5b3933f4a51735d3abd779_563a8cff-f2e8-4508-b689-02e129516ac0.webp?v=1751272517"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512","options":["color"],"media":[{"alt":null,"id":25756645228643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512","width":2000},{"alt":null,"id":25756645589091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e74ca0deeb7d94643904d01a0fcf9b766947634_a63d9932-361c-4819-a10c-9f41b5ebc94b.webp?v=1751272512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e74ca0deeb7d94643904d01a0fcf9b766947634_a63d9932-361c-4819-a10c-9f41b5ebc94b.webp?v=1751272512","width":2000},{"alt":null,"id":25756645752931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb48dd5e74535bc972adbced3042155b0d70e2c_a95e221d-dd7a-491b-8ff0-51d16d3574b3.webp?v=1751272513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb48dd5e74535bc972adbced3042155b0d70e2c_a95e221d-dd7a-491b-8ff0-51d16d3574b3.webp?v=1751272513","width":2000},{"alt":null,"id":25756646015075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6a8f9628d43e3a17466578f27a644ce817792fa_147e0b67-29f1-4ecb-b570-5ad0175c5dbc.webp?v=1751272513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6a8f9628d43e3a17466578f27a644ce817792fa_147e0b67-29f1-4ecb-b570-5ad0175c5dbc.webp?v=1751272513","width":2000},{"alt":null,"id":25756646244451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f3c6ff588b27d0c16bee1f70ca28b1e81a04e0_dc6fe0ce-f145-4364-abe1-e6a764de7c07.webp?v=1751272514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f3c6ff588b27d0c16bee1f70ca28b1e81a04e0_dc6fe0ce-f145-4364-abe1-e6a764de7c07.webp?v=1751272514","width":2000},{"alt":null,"id":25756646375523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f81d235518f2bf805ec1dfdfa37a32080c4618_a8d82af3-937c-4901-b5c7-6dbc94c9935b.webp?v=1751272514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f81d235518f2bf805ec1dfdfa37a32080c4618_a8d82af3-937c-4901-b5c7-6dbc94c9935b.webp?v=1751272514","width":2000},{"alt":null,"id":25756646604899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515","width":2000},{"alt":null,"id":25756646899811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/434982411f3b61156971f9485abdf83e6b775dd7_632cd263-e856-4520-bf22-00931b1609c6.webp?v=1751272516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/434982411f3b61156971f9485abdf83e6b775dd7_632cd263-e856-4520-bf22-00931b1609c6.webp?v=1751272516","width":2000},{"alt":null,"id":25756647129187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854e5402aceabbdacdeacc8509f2983421f5dbe6_6d534a16-9e43-46aa-85bb-792e390ac8be.webp?v=1751272516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854e5402aceabbdacdeacc8509f2983421f5dbe6_6d534a16-9e43-46aa-85bb-792e390ac8be.webp?v=1751272516","width":2000},{"alt":null,"id":25756647456867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f9dc1fd1e8a5688c5b3933f4a51735d3abd779_563a8cff-f2e8-4508-b689-02e129516ac0.webp?v=1751272517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f9dc1fd1e8a5688c5b3933f4a51735d3abd779_563a8cff-f2e8-4508-b689-02e129516ac0.webp?v=1751272517","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43503116124259,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100364378211,"product_id":7829122154595,"position":7,"created_at":"2025-06-30T16:35:13+08:00","updated_at":"2025-06-30T16:35:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515","variant_ids":[43503116124259]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756646604899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503116157027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100361625699,"product_id":7829122154595,"position":1,"created_at":"2025-06-30T16:35:10+08:00","updated_at":"2025-06-30T16:35:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512","variant_ids":[43503116157027]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756645228643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d278a7fac94c7fe1b1a496cf2ea2989ff63873e_00fdd9d2-91e2-4b34-9162-7059bdb3b8de.webp?v=1751272512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503116189795,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100365066339,"product_id":7829122154595,"position":9,"created_at":"2025-06-30T16:35:14+08:00","updated_at":"2025-06-30T16:35:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854e5402aceabbdacdeacc8509f2983421f5dbe6_6d534a16-9e43-46aa-85bb-792e390ac8be.webp?v=1751272516","variant_ids":[43503116189795]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756647129187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/854e5402aceabbdacdeacc8509f2983421f5dbe6_6d534a16-9e43-46aa-85bb-792e390ac8be.webp?v=1751272516"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503116255331,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100363329635,"product_id":7829122154595,"position":5,"created_at":"2025-06-30T16:35:12+08:00","updated_at":"2025-06-30T16:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f3c6ff588b27d0c16bee1f70ca28b1e81a04e0_dc6fe0ce-f145-4364-abe1-e6a764de7c07.webp?v=1751272514","variant_ids":[43503116255331]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756646244451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f3c6ff588b27d0c16bee1f70ca28b1e81a04e0_dc6fe0ce-f145-4364-abe1-e6a764de7c07.webp?v=1751272514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43503116124259,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO14","requires_shipping":true,"taxable":true,"featured_image":{"id":34100364378211,"product_id":7829122154595,"position":7,"created_at":"2025-06-30T16:35:13+08:00","updated_at":"2025-06-30T16:35:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515","variant_ids":[43503116124259]},"available":true,"name":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We無限:綠意恆新 - 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-DO14","featured_media":{"alt":null,"id":25756646604899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb6366e83aa6e18fc8ac2227627079cf76a7476_2ad8f12c-f82d-4e08-907b-fb6239733e81.webp?v=1751272515"}},"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: "停產" }