$product = {"id":7855502065763,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 寶可夢 多彩系列-皮卡丘大集合","handle":"iphone-13-mini-solidsuit-classic-magsafe-pe72","description":null,"published_at":"2025-08-13T14:51:25+08:00","created_at":"2025-08-13T14:32:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-pokemon","device-iPhone 13 Mini","merge","reseller-pokemon"],"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":43588178509923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PE72","requires_shipping":true,"taxable":true,"featured_image":{"id":34389978710115,"product_id":7855502065763,"position":13,"created_at":"2025-08-27T16:30:51+08:00","updated_at":"2025-08-27T16:30:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453","variant_ids":[43588178509923]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 寶可夢 多彩系列-皮卡丘大集合 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-PE72","featured_media":{"alt":null,"id":25964048023651,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43588178673763,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-PE72","requires_shipping":true,"taxable":true,"featured_image":{"id":34389979791459,"product_id":7855502065763,"position":16,"created_at":"2025-08-27T16:30:53+08:00","updated_at":"2025-08-27T16:30:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197_b152fee1-6959-4dfd-8115-6696476f12a7.webp?v=1756283455","variant_ids":[43588178673763]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 寶可夢 多彩系列-皮卡丘大集合 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-PE72","featured_media":{"alt":null,"id":25964049104995,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197_b152fee1-6959-4dfd-8115-6696476f12a7.webp?v=1756283455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcbb88a633539779e645013c374e50606d18ca2.webp?v=1755066742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee096efd3de73ca555868065a279fc22fa82374.webp?v=1755066743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197.webp?v=1755066743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7c406c812f0f8de439960d95ed4f617a751d9f.webp?v=1755066743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636679b22a1b3b87e465b1ffda634dea5c2a6f4a.webp?v=1755066744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8191c07dbe68a9af17904698f922ff182c3d154c.webp?v=1755066745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05faa108058fd34efcc669afd6733e9a532da28e.webp?v=1755066746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f189e8d48e14bc1a36c1a03cb82a485a4e8339f.webp?v=1755066746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a833845b01db97df19b0b67eb4da499bcedcd837.webp?v=1755066747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114.webp?v=1755066747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8191c07dbe68a9af17904698f922ff182c3d154c_a90e0e3e-cfe8-4dba-bda1-848c24f8e61c.webp?v=1756283451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcbb88a633539779e645013c374e50606d18ca2_4cd7f663-ee66-4c49-b03f-bd88c600e354.webp?v=1756283452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a833845b01db97df19b0b67eb4da499bcedcd837_7f2ca811-d0e7-48d0-8559-1269b45a6329.webp?v=1756283453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7c406c812f0f8de439960d95ed4f617a751d9f_f51b4189-2e20-45b9-8c6e-34a3513826d7.webp?v=1756283454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197_b152fee1-6959-4dfd-8115-6696476f12a7.webp?v=1756283455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee096efd3de73ca555868065a279fc22fa82374_a989f923-cd0b-455d-b9cb-909e7e266fd7.webp?v=1756283455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05faa108058fd34efcc669afd6733e9a532da28e_0587c5d9-83eb-49d4-b42f-ca19bc2685e8.webp?v=1756283456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f189e8d48e14bc1a36c1a03cb82a485a4e8339f_b6835be9-9a6b-44c0-8bf5-fc46879528a4.webp?v=1756283457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636679b22a1b3b87e465b1ffda634dea5c2a6f4a_ea43b231-0481-4298-ba8c-e7b7a4e4fd14.webp?v=1756283458"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcbb88a633539779e645013c374e50606d18ca2.webp?v=1755066742","options":["color"],"media":[{"alt":null,"id":25908062158947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcbb88a633539779e645013c374e50606d18ca2.webp?v=1755066742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcbb88a633539779e645013c374e50606d18ca2.webp?v=1755066742","width":2000},{"alt":null,"id":25908062388323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee096efd3de73ca555868065a279fc22fa82374.webp?v=1755066743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee096efd3de73ca555868065a279fc22fa82374.webp?v=1755066743","width":2000},{"alt":null,"id":25908062453859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197.webp?v=1755066743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197.webp?v=1755066743","width":2000},{"alt":null,"id":25908062650467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7c406c812f0f8de439960d95ed4f617a751d9f.webp?v=1755066743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7c406c812f0f8de439960d95ed4f617a751d9f.webp?v=1755066743","width":2000},{"alt":null,"id":25908062978147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636679b22a1b3b87e465b1ffda634dea5c2a6f4a.webp?v=1755066744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636679b22a1b3b87e465b1ffda634dea5c2a6f4a.webp?v=1755066744","width":2000},{"alt":null,"id":25908063305827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8191c07dbe68a9af17904698f922ff182c3d154c.webp?v=1755066745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8191c07dbe68a9af17904698f922ff182c3d154c.webp?v=1755066745","width":2000},{"alt":null,"id":25908063502435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05faa108058fd34efcc669afd6733e9a532da28e.webp?v=1755066746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05faa108058fd34efcc669afd6733e9a532da28e.webp?v=1755066746","width":2000},{"alt":null,"id":25908063797347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f189e8d48e14bc1a36c1a03cb82a485a4e8339f.webp?v=1755066746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f189e8d48e14bc1a36c1a03cb82a485a4e8339f.webp?v=1755066746","width":2000},{"alt":null,"id":25908064059491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a833845b01db97df19b0b67eb4da499bcedcd837.webp?v=1755066747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a833845b01db97df19b0b67eb4da499bcedcd837.webp?v=1755066747","width":2000},{"alt":null,"id":25908064321635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114.webp?v=1755066747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114.webp?v=1755066747","width":2000},{"alt":null,"id":25964047695971,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8191c07dbe68a9af17904698f922ff182c3d154c_a90e0e3e-cfe8-4dba-bda1-848c24f8e61c.webp?v=1756283451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8191c07dbe68a9af17904698f922ff182c3d154c_a90e0e3e-cfe8-4dba-bda1-848c24f8e61c.webp?v=1756283451","width":2000},{"alt":null,"id":25964047859811,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcbb88a633539779e645013c374e50606d18ca2_4cd7f663-ee66-4c49-b03f-bd88c600e354.webp?v=1756283452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcbb88a633539779e645013c374e50606d18ca2_4cd7f663-ee66-4c49-b03f-bd88c600e354.webp?v=1756283452","width":2000},{"alt":null,"id":25964048023651,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453","width":2000},{"alt":null,"id":25964048187491,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a833845b01db97df19b0b67eb4da499bcedcd837_7f2ca811-d0e7-48d0-8559-1269b45a6329.webp?v=1756283453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a833845b01db97df19b0b67eb4da499bcedcd837_7f2ca811-d0e7-48d0-8559-1269b45a6329.webp?v=1756283453","width":2000},{"alt":null,"id":25964048810083,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7c406c812f0f8de439960d95ed4f617a751d9f_f51b4189-2e20-45b9-8c6e-34a3513826d7.webp?v=1756283454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7c406c812f0f8de439960d95ed4f617a751d9f_f51b4189-2e20-45b9-8c6e-34a3513826d7.webp?v=1756283454","width":2000},{"alt":null,"id":25964049104995,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197_b152fee1-6959-4dfd-8115-6696476f12a7.webp?v=1756283455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197_b152fee1-6959-4dfd-8115-6696476f12a7.webp?v=1756283455","width":2000},{"alt":null,"id":25964049334371,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee096efd3de73ca555868065a279fc22fa82374_a989f923-cd0b-455d-b9cb-909e7e266fd7.webp?v=1756283455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee096efd3de73ca555868065a279fc22fa82374_a989f923-cd0b-455d-b9cb-909e7e266fd7.webp?v=1756283455","width":2000},{"alt":null,"id":25964049662051,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05faa108058fd34efcc669afd6733e9a532da28e_0587c5d9-83eb-49d4-b42f-ca19bc2685e8.webp?v=1756283456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05faa108058fd34efcc669afd6733e9a532da28e_0587c5d9-83eb-49d4-b42f-ca19bc2685e8.webp?v=1756283456","width":2000},{"alt":null,"id":25964049989731,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f189e8d48e14bc1a36c1a03cb82a485a4e8339f_b6835be9-9a6b-44c0-8bf5-fc46879528a4.webp?v=1756283457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f189e8d48e14bc1a36c1a03cb82a485a4e8339f_b6835be9-9a6b-44c0-8bf5-fc46879528a4.webp?v=1756283457","width":2000},{"alt":null,"id":25964050317411,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636679b22a1b3b87e465b1ffda634dea5c2a6f4a_ea43b231-0481-4298-ba8c-e7b7a4e4fd14.webp?v=1756283458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/636679b22a1b3b87e465b1ffda634dea5c2a6f4a_ea43b231-0481-4298-ba8c-e7b7a4e4fd14.webp?v=1756283458","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43588178509923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PE72","requires_shipping":true,"taxable":true,"featured_image":{"id":34389978710115,"product_id":7855502065763,"position":13,"created_at":"2025-08-27T16:30:51+08:00","updated_at":"2025-08-27T16:30:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453","variant_ids":[43588178509923]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 寶可夢 多彩系列-皮卡丘大集合 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-PE72","featured_media":{"alt":null,"id":25964048023651,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43588178673763,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-PE72","requires_shipping":true,"taxable":true,"featured_image":{"id":34389979791459,"product_id":7855502065763,"position":16,"created_at":"2025-08-27T16:30:53+08:00","updated_at":"2025-08-27T16:30:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197_b152fee1-6959-4dfd-8115-6696476f12a7.webp?v=1756283455","variant_ids":[43588178673763]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 寶可夢 多彩系列-皮卡丘大集合 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-PE72","featured_media":{"alt":null,"id":25964049104995,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b33edf55fdc97c5e938ddc454b405fb1c95c197_b152fee1-6959-4dfd-8115-6696476f12a7.webp?v=1756283455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43588178509923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PE72","requires_shipping":true,"taxable":true,"featured_image":{"id":34389978710115,"product_id":7855502065763,"position":13,"created_at":"2025-08-27T16:30:51+08:00","updated_at":"2025-08-27T16:30:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453","variant_ids":[43588178509923]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 寶可夢 多彩系列-皮卡丘大集合 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-PE72","featured_media":{"alt":null,"id":25964048023651,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/261c95f2200b2578e9119a1745fbee20b53ac114_cd9813f3-7d58-4856-b295-45c1273592dd.webp?v=1756283453"}},"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: "停產" }