$product = {"id":7987547734115,"title":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼","handle":"iphone-15-plus-solidx-anp11","description":null,"published_at":"2026-03-31T11:09:02+08:00","created_at":"2026-03-30T11:05:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-anpanman","device-iPhone 15 Plus","merge","reseller-anpanman"],"price":125000,"price_min":125000,"price_max":125000,"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":44088398839907,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP11","requires_shipping":true,"taxable":true,"featured_image":{"id":35561664807011,"product_id":7987547734115,"position":11,"created_at":"2026-03-30T12:06:43+08:00","updated_at":"2026-03-30T12:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605","variant_ids":[44088398839907]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-ANP11","featured_media":{"alt":null,"id":27095229104227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088401133667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-ANP11","requires_shipping":true,"taxable":true,"featured_image":{"id":35561664708707,"product_id":7987547734115,"position":10,"created_at":"2026-03-30T12:06:42+08:00","updated_at":"2026-03-30T12:06:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b_6820a200-dfb5-40a6-a962-fb15a3c8e393.webp?v=1774843604","variant_ids":[44088401133667]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-ANP11","featured_media":{"alt":null,"id":27095229005923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b_6820a200-dfb5-40a6-a962-fb15a3c8e393.webp?v=1774843604"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088401264739,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-ANP11","requires_shipping":true,"taxable":true,"featured_image":{"id":35561664938083,"product_id":7987547734115,"position":12,"created_at":"2026-03-30T12:06:44+08:00","updated_at":"2026-03-30T12:06:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a_756398ba-8742-4a49-8c6d-8435361a7047.webp?v=1774843606","variant_ids":[44088401264739]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-ANP11","featured_media":{"alt":null,"id":27095229235299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a_756398ba-8742-4a49-8c6d-8435361a7047.webp?v=1774843606"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4471e74456a2b6dbaa7645d99eb07fc34c571af6.webp?v=1774839926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b270b86ecab84255dc291fb37ea9bac9f2529f2.webp?v=1774839927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f643f4dcdc6d67949a8c474d017f395c65bf0d9.webp?v=1774839927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b.webp?v=1774839928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a.webp?v=1774839928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fce0d071d6e7d9fa8b393d2cc5092c8b00fc03.webp?v=1774839929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822.webp?v=1774839930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b9c268df41fb09dd65aa0e2e3069b366452e4e.webp?v=1774839931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fce0d071d6e7d9fa8b393d2cc5092c8b00fc03_b2533bcb-0e86-4907-bd1e-9f434d014575.webp?v=1774843604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b_6820a200-dfb5-40a6-a962-fb15a3c8e393.webp?v=1774843604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a_756398ba-8742-4a49-8c6d-8435361a7047.webp?v=1774843606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f643f4dcdc6d67949a8c474d017f395c65bf0d9_19d9f8dd-89d7-4ce7-8bfe-2041dcc4df94.webp?v=1774843606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b270b86ecab84255dc291fb37ea9bac9f2529f2_346f995b-c07b-4378-afc7-3bb52445818d.webp?v=1774843607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4471e74456a2b6dbaa7645d99eb07fc34c571af6_d8b7ade4-5c1b-4248-8b7c-5d309841d3db.webp?v=1774843607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b9c268df41fb09dd65aa0e2e3069b366452e4e_a58455c7-63fc-4cc3-acbd-c4d1a34d949b.webp?v=1774843608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4471e74456a2b6dbaa7645d99eb07fc34c571af6.webp?v=1774839926","options":["color"],"media":[{"alt":null,"id":27094341419107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4471e74456a2b6dbaa7645d99eb07fc34c571af6.webp?v=1774839926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4471e74456a2b6dbaa7645d99eb07fc34c571af6.webp?v=1774839926","width":2000},{"alt":null,"id":27094341976163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b270b86ecab84255dc291fb37ea9bac9f2529f2.webp?v=1774839927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b270b86ecab84255dc291fb37ea9bac9f2529f2.webp?v=1774839927","width":2000},{"alt":null,"id":27094342336611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f643f4dcdc6d67949a8c474d017f395c65bf0d9.webp?v=1774839927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f643f4dcdc6d67949a8c474d017f395c65bf0d9.webp?v=1774839927","width":2000},{"alt":null,"id":27094342991971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b.webp?v=1774839928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b.webp?v=1774839928","width":2000},{"alt":null,"id":27094343417955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a.webp?v=1774839928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a.webp?v=1774839928","width":2000},{"alt":null,"id":27094343876707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fce0d071d6e7d9fa8b393d2cc5092c8b00fc03.webp?v=1774839929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fce0d071d6e7d9fa8b393d2cc5092c8b00fc03.webp?v=1774839929","width":2000},{"alt":null,"id":27094344499299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822.webp?v=1774839930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822.webp?v=1774839930","width":2000},{"alt":null,"id":27094345187427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b9c268df41fb09dd65aa0e2e3069b366452e4e.webp?v=1774839931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b9c268df41fb09dd65aa0e2e3069b366452e4e.webp?v=1774839931","width":2000},{"alt":null,"id":27095228645475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fce0d071d6e7d9fa8b393d2cc5092c8b00fc03_b2533bcb-0e86-4907-bd1e-9f434d014575.webp?v=1774843604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fce0d071d6e7d9fa8b393d2cc5092c8b00fc03_b2533bcb-0e86-4907-bd1e-9f434d014575.webp?v=1774843604","width":2000},{"alt":null,"id":27095229005923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b_6820a200-dfb5-40a6-a962-fb15a3c8e393.webp?v=1774843604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b_6820a200-dfb5-40a6-a962-fb15a3c8e393.webp?v=1774843604","width":2000},{"alt":null,"id":27095229104227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605","width":2000},{"alt":null,"id":27095229235299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a_756398ba-8742-4a49-8c6d-8435361a7047.webp?v=1774843606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a_756398ba-8742-4a49-8c6d-8435361a7047.webp?v=1774843606","width":2000},{"alt":null,"id":27095229399139,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f643f4dcdc6d67949a8c474d017f395c65bf0d9_19d9f8dd-89d7-4ce7-8bfe-2041dcc4df94.webp?v=1774843606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f643f4dcdc6d67949a8c474d017f395c65bf0d9_19d9f8dd-89d7-4ce7-8bfe-2041dcc4df94.webp?v=1774843606","width":2000},{"alt":null,"id":27095229595747,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b270b86ecab84255dc291fb37ea9bac9f2529f2_346f995b-c07b-4378-afc7-3bb52445818d.webp?v=1774843607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b270b86ecab84255dc291fb37ea9bac9f2529f2_346f995b-c07b-4378-afc7-3bb52445818d.webp?v=1774843607","width":2000},{"alt":null,"id":27095229825123,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4471e74456a2b6dbaa7645d99eb07fc34c571af6_d8b7ade4-5c1b-4248-8b7c-5d309841d3db.webp?v=1774843607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4471e74456a2b6dbaa7645d99eb07fc34c571af6_d8b7ade4-5c1b-4248-8b7c-5d309841d3db.webp?v=1774843607","width":2000},{"alt":null,"id":27095229988963,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b9c268df41fb09dd65aa0e2e3069b366452e4e_a58455c7-63fc-4cc3-acbd-c4d1a34d949b.webp?v=1774843608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b9c268df41fb09dd65aa0e2e3069b366452e4e_a58455c7-63fc-4cc3-acbd-c4d1a34d949b.webp?v=1774843608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44088398839907,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP11","requires_shipping":true,"taxable":true,"featured_image":{"id":35561664807011,"product_id":7987547734115,"position":11,"created_at":"2026-03-30T12:06:43+08:00","updated_at":"2026-03-30T12:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605","variant_ids":[44088398839907]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-ANP11","featured_media":{"alt":null,"id":27095229104227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088401133667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-ANP11","requires_shipping":true,"taxable":true,"featured_image":{"id":35561664708707,"product_id":7987547734115,"position":10,"created_at":"2026-03-30T12:06:42+08:00","updated_at":"2026-03-30T12:06:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b_6820a200-dfb5-40a6-a962-fb15a3c8e393.webp?v=1774843604","variant_ids":[44088401133667]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-ANP11","featured_media":{"alt":null,"id":27095229005923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28504dd11d6dd253b2e3dbd2aee8cd7df24ce0b_6820a200-dfb5-40a6-a962-fb15a3c8e393.webp?v=1774843604"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44088401264739,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-ANP11","requires_shipping":true,"taxable":true,"featured_image":{"id":35561664938083,"product_id":7987547734115,"position":12,"created_at":"2026-03-30T12:06:44+08:00","updated_at":"2026-03-30T12:06:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a_756398ba-8742-4a49-8c6d-8435361a7047.webp?v=1774843606","variant_ids":[44088401264739]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-ANP11","featured_media":{"alt":null,"id":27095229235299,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96afdf03a75add80af54002ba0d170d92bad8f2a_756398ba-8742-4a49-8c6d-8435361a7047.webp?v=1774843606"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44088398839907,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-ANP11","requires_shipping":true,"taxable":true,"featured_image":{"id":35561664807011,"product_id":7987547734115,"position":11,"created_at":"2026-03-30T12:06:43+08:00","updated_at":"2026-03-30T12:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605","variant_ids":[44088398839907]},"available":true,"name":"iPhone 15 Plus SolidX 麵包超人Anpanman 角色大頭貼 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-ANP11","featured_media":{"alt":null,"id":27095229104227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f8a827e7af911fa373ed0aa80c9d735caf0a822_49eaa754-c46e-4a0b-9c48-908abbfae91a.webp?v=1774843605"}},"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: "停產" }