$product = {"id":7829121630307,"title":"iPhone 15 Plus SolidX (MagSafe 兼容) 【獨家設計】 We TAIWAN : a-We a-We Mochi (藍)","handle":"iphone-15-plus-solidx-magsafe-bumper-back-original-design-do10","description":null,"published_at":"2025-07-31T09:45:53+08:00","created_at":"2025-06-30T16:34:59+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":43503111995491,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100356120675,"product_id":7829121630307,"position":6,"created_at":"2025-06-30T16:35:06+08:00","updated_at":"2025-06-30T16:35:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508","variant_ids":[43503111995491]},"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-DO10","featured_media":{"alt":null,"id":25756642148451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503112028259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100356874339,"product_id":7829121630307,"position":7,"created_at":"2025-06-30T16:35:06+08:00","updated_at":"2025-06-30T16:35:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/107ea6e14725a2837a4409e78af1a6cb7bb2bcfe_3d5763fd-f6c0-47e1-ba42-6fbe716c04f1.webp?v=1751272508","variant_ids":[43503112028259]},"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-DO10","featured_media":{"alt":null,"id":25756642443363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/107ea6e14725a2837a4409e78af1a6cb7bb2bcfe_3d5763fd-f6c0-47e1-ba42-6fbe716c04f1.webp?v=1751272508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503112061027,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100359135331,"product_id":7829121630307,"position":10,"created_at":"2025-06-30T16:35:08+08:00","updated_at":"2025-06-30T16:35:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52720b0db98df33a0843a017189cf0a50f6a0a9f_21f22a5a-4cbd-4500-a1dc-7281bedd8533.webp?v=1751272510","variant_ids":[43503112061027]},"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-DO10","featured_media":{"alt":null,"id":25756643819619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52720b0db98df33a0843a017189cf0a50f6a0a9f_21f22a5a-4cbd-4500-a1dc-7281bedd8533.webp?v=1751272510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503112126563,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100354678883,"product_id":7829121630307,"position":4,"created_at":"2025-06-30T16:35:05+08:00","updated_at":"2025-06-30T16:35:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0cab5b5d354f23cabb1a61198944d03d327caa_02cecc2c-50a7-4772-89ac-2c89f9a766d0.webp?v=1751272507","variant_ids":[43503112126563]},"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-DO10","featured_media":{"alt":null,"id":25756641558627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0cab5b5d354f23cabb1a61198944d03d327caa_02cecc2c-50a7-4772-89ac-2c89f9a766d0.webp?v=1751272507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e504781330ab2d4ce3b3f3e6ec43da4e7aac6e_80b4d6a7-8753-43e6-b231-241ef101f0a3.webp?v=1751272505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3e943185de81f2deb3507f95c5b8bc40093b9b9_b7ee386f-6638-4ddc-9d50-90c53ca18c62.webp?v=1751272506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6de156399dce098e994da5073866a35331b6832_f2bf6501-d159-4786-a542-e46ba60be7cd.webp?v=1751272506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0cab5b5d354f23cabb1a61198944d03d327caa_02cecc2c-50a7-4772-89ac-2c89f9a766d0.webp?v=1751272507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d36505a40f9e5b15f6a9ed470eceb099b1efe74_64f7e6e0-d432-446d-bca6-88f84df1de99.webp?v=1751272507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/107ea6e14725a2837a4409e78af1a6cb7bb2bcfe_3d5763fd-f6c0-47e1-ba42-6fbe716c04f1.webp?v=1751272508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b1c7ee231c4c3ed542686e01451c19b35dec82_5273f2b2-6607-47dc-bceb-1461b556985a.webp?v=1751272509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f72e12875395f51254f3f017c654d872bbd76cdb_a5c1b0f6-0b4a-4193-92c3-306a7bf070c9.webp?v=1751272509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52720b0db98df33a0843a017189cf0a50f6a0a9f_21f22a5a-4cbd-4500-a1dc-7281bedd8533.webp?v=1751272510"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e504781330ab2d4ce3b3f3e6ec43da4e7aac6e_80b4d6a7-8753-43e6-b231-241ef101f0a3.webp?v=1751272505","options":["color"],"media":[{"alt":null,"id":25756640968803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e504781330ab2d4ce3b3f3e6ec43da4e7aac6e_80b4d6a7-8753-43e6-b231-241ef101f0a3.webp?v=1751272505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2e504781330ab2d4ce3b3f3e6ec43da4e7aac6e_80b4d6a7-8753-43e6-b231-241ef101f0a3.webp?v=1751272505","width":2000},{"alt":null,"id":25756641165411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3e943185de81f2deb3507f95c5b8bc40093b9b9_b7ee386f-6638-4ddc-9d50-90c53ca18c62.webp?v=1751272506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3e943185de81f2deb3507f95c5b8bc40093b9b9_b7ee386f-6638-4ddc-9d50-90c53ca18c62.webp?v=1751272506","width":2000},{"alt":null,"id":25756641296483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6de156399dce098e994da5073866a35331b6832_f2bf6501-d159-4786-a542-e46ba60be7cd.webp?v=1751272506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6de156399dce098e994da5073866a35331b6832_f2bf6501-d159-4786-a542-e46ba60be7cd.webp?v=1751272506","width":2000},{"alt":null,"id":25756641558627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0cab5b5d354f23cabb1a61198944d03d327caa_02cecc2c-50a7-4772-89ac-2c89f9a766d0.webp?v=1751272507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0cab5b5d354f23cabb1a61198944d03d327caa_02cecc2c-50a7-4772-89ac-2c89f9a766d0.webp?v=1751272507","width":2000},{"alt":null,"id":25756641820771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d36505a40f9e5b15f6a9ed470eceb099b1efe74_64f7e6e0-d432-446d-bca6-88f84df1de99.webp?v=1751272507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d36505a40f9e5b15f6a9ed470eceb099b1efe74_64f7e6e0-d432-446d-bca6-88f84df1de99.webp?v=1751272507","width":2000},{"alt":null,"id":25756642148451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508","width":2000},{"alt":null,"id":25756642443363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/107ea6e14725a2837a4409e78af1a6cb7bb2bcfe_3d5763fd-f6c0-47e1-ba42-6fbe716c04f1.webp?v=1751272508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/107ea6e14725a2837a4409e78af1a6cb7bb2bcfe_3d5763fd-f6c0-47e1-ba42-6fbe716c04f1.webp?v=1751272508","width":2000},{"alt":null,"id":25756642803811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b1c7ee231c4c3ed542686e01451c19b35dec82_5273f2b2-6607-47dc-bceb-1461b556985a.webp?v=1751272509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b1c7ee231c4c3ed542686e01451c19b35dec82_5273f2b2-6607-47dc-bceb-1461b556985a.webp?v=1751272509","width":2000},{"alt":null,"id":25756643262563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f72e12875395f51254f3f017c654d872bbd76cdb_a5c1b0f6-0b4a-4193-92c3-306a7bf070c9.webp?v=1751272509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f72e12875395f51254f3f017c654d872bbd76cdb_a5c1b0f6-0b4a-4193-92c3-306a7bf070c9.webp?v=1751272509","width":2000},{"alt":null,"id":25756643819619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52720b0db98df33a0843a017189cf0a50f6a0a9f_21f22a5a-4cbd-4500-a1dc-7281bedd8533.webp?v=1751272510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52720b0db98df33a0843a017189cf0a50f6a0a9f_21f22a5a-4cbd-4500-a1dc-7281bedd8533.webp?v=1751272510","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43503111995491,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100356120675,"product_id":7829121630307,"position":6,"created_at":"2025-06-30T16:35:06+08:00","updated_at":"2025-06-30T16:35:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508","variant_ids":[43503111995491]},"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-DO10","featured_media":{"alt":null,"id":25756642148451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503112028259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129652-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100356874339,"product_id":7829121630307,"position":7,"created_at":"2025-06-30T16:35:06+08:00","updated_at":"2025-06-30T16:35:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/107ea6e14725a2837a4409e78af1a6cb7bb2bcfe_3d5763fd-f6c0-47e1-ba42-6fbe716c04f1.webp?v=1751272508","variant_ids":[43503112028259]},"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-DO10","featured_media":{"alt":null,"id":25756642443363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/107ea6e14725a2837a4409e78af1a6cb7bb2bcfe_3d5763fd-f6c0-47e1-ba42-6fbe716c04f1.webp?v=1751272508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503112061027,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01296O8-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100359135331,"product_id":7829121630307,"position":10,"created_at":"2025-06-30T16:35:08+08:00","updated_at":"2025-06-30T16:35:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52720b0db98df33a0843a017189cf0a50f6a0a9f_21f22a5a-4cbd-4500-a1dc-7281bedd8533.webp?v=1751272510","variant_ids":[43503112061027]},"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-DO10","featured_media":{"alt":null,"id":25756643819619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52720b0db98df33a0843a017189cf0a50f6a0a9f_21f22a5a-4cbd-4500-a1dc-7281bedd8533.webp?v=1751272510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43503112126563,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01296Z7-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100354678883,"product_id":7829121630307,"position":4,"created_at":"2025-06-30T16:35:05+08:00","updated_at":"2025-06-30T16:35:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0cab5b5d354f23cabb1a61198944d03d327caa_02cecc2c-50a7-4772-89ac-2c89f9a766d0.webp?v=1751272507","variant_ids":[43503112126563]},"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-DO10","featured_media":{"alt":null,"id":25756641558627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0cab5b5d354f23cabb1a61198944d03d327caa_02cecc2c-50a7-4772-89ac-2c89f9a766d0.webp?v=1751272507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43503111995491,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012960A-DO10","requires_shipping":true,"taxable":true,"featured_image":{"id":34100356120675,"product_id":7829121630307,"position":6,"created_at":"2025-06-30T16:35:06+08:00","updated_at":"2025-06-30T16:35:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508","variant_ids":[43503111995491]},"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-DO10","featured_media":{"alt":null,"id":25756642148451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8946f133c7bb90b6d62843b570a02e7962caff86_3f650024-eebd-4f33-a64a-6d268ab55b21.webp?v=1751272508"}},"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: "停產" }