$product = {"id":7022949597283,"title":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界","handle":"iphone-12-pro-max-solidsuit-classic-magsafe-px02","description":"","published_at":"2023-10-04T10:21:18+08:00","created_at":"2023-09-28T18:32:51+08:00","vendor":"RHINOSHIELD","type":"設計師SolidSuit MagSafe專區-布丁狗&大耳狗","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-pompompurin-cinnamoroll","device-iPhone 12 Pro Max","merge","reseller-pompompurin-cinnamoroll"],"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":40768830570595,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059655503971,"product_id":7022949597283,"position":2,"created_at":"2026-06-23T15:27:31+08:00","updated_at":"2026-06-23T15:27:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653","variant_ids":[40768830570595]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-PX02","featured_media":{"alt":null,"id":27572502069347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768830701667,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059655929955,"product_id":7022949597283,"position":4,"created_at":"2026-06-23T15:27:32+08:00","updated_at":"2026-06-23T15:27:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3c59931fe4c961037e30152fc0210722bfdceb.webp?v=1782199654","variant_ids":[40768830701667]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01187O9-PX02","featured_media":{"alt":null,"id":27572502495331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3c59931fe4c961037e30152fc0210722bfdceb.webp?v=1782199654"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768830931043,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059655733347,"product_id":7022949597283,"position":3,"created_at":"2026-06-23T15:27:32+08:00","updated_at":"2026-06-23T15:27:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d900307957bd348c25e78e3b7a2fd2f144e65119.webp?v=1782199654","variant_ids":[40768830931043]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-PX02","featured_media":{"alt":null,"id":27572502265955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d900307957bd348c25e78e3b7a2fd2f144e65119.webp?v=1782199654"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768830963811,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011870D-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059656880227,"product_id":7022949597283,"position":6,"created_at":"2026-06-23T15:27:34+08:00","updated_at":"2026-06-23T15:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c5038d7f58f61dce78e5d83c73790b8a2331c95.webp?v=1782199656","variant_ids":[40768830963811]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870D-PX02","featured_media":{"alt":null,"id":27572503445603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c5038d7f58f61dce78e5d83c73790b8a2331c95.webp?v=1782199656"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768831029347,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST011870C-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059656487011,"product_id":7022949597283,"position":5,"created_at":"2026-06-23T15:27:33+08:00","updated_at":"2026-06-23T15:27:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936ec7a999bfd82a20bc368176d11a9b2209051b.webp?v=1782199655","variant_ids":[40768831029347]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870C-PX02","featured_media":{"alt":null,"id":27572503052387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936ec7a999bfd82a20bc368176d11a9b2209051b.webp?v=1782199655"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768831062115,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011870E-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059657699427,"product_id":7022949597283,"position":7,"created_at":"2026-06-23T15:27:35+08:00","updated_at":"2026-06-23T15:27:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e87e94d364c5667ad8b2f79154975b9abc8bd3.webp?v=1782199657","variant_ids":[40768831062115]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870E-PX02","featured_media":{"alt":null,"id":27572504264803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e87e94d364c5667ad8b2f79154975b9abc8bd3.webp?v=1782199657"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-187-PX02_c482ad5e-331a-453a-b5dc-22c15b0013fb.png?v=1695897171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d900307957bd348c25e78e3b7a2fd2f144e65119.webp?v=1782199654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3c59931fe4c961037e30152fc0210722bfdceb.webp?v=1782199654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936ec7a999bfd82a20bc368176d11a9b2209051b.webp?v=1782199655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c5038d7f58f61dce78e5d83c73790b8a2331c95.webp?v=1782199656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e87e94d364c5667ad8b2f79154975b9abc8bd3.webp?v=1782199657"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-187-PX02_c482ad5e-331a-453a-b5dc-22c15b0013fb.png?v=1695897171","options":["color"],"media":[{"alt":null,"id":22794922754147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-187-PX02_c482ad5e-331a-453a-b5dc-22c15b0013fb.png?v=1695897171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SolidSuitTPE-53-187-PX02_c482ad5e-331a-453a-b5dc-22c15b0013fb.png?v=1695897171","width":2000},{"alt":null,"id":27572502069347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653","width":2000},{"alt":null,"id":27572502265955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d900307957bd348c25e78e3b7a2fd2f144e65119.webp?v=1782199654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d900307957bd348c25e78e3b7a2fd2f144e65119.webp?v=1782199654","width":2000},{"alt":null,"id":27572502495331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3c59931fe4c961037e30152fc0210722bfdceb.webp?v=1782199654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3c59931fe4c961037e30152fc0210722bfdceb.webp?v=1782199654","width":2000},{"alt":null,"id":27572503052387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936ec7a999bfd82a20bc368176d11a9b2209051b.webp?v=1782199655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936ec7a999bfd82a20bc368176d11a9b2209051b.webp?v=1782199655","width":2000},{"alt":null,"id":27572503445603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c5038d7f58f61dce78e5d83c73790b8a2331c95.webp?v=1782199656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c5038d7f58f61dce78e5d83c73790b8a2331c95.webp?v=1782199656","width":2000},{"alt":null,"id":27572504264803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e87e94d364c5667ad8b2f79154975b9abc8bd3.webp?v=1782199657"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e87e94d364c5667ad8b2f79154975b9abc8bd3.webp?v=1782199657","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":40768830570595,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059655503971,"product_id":7022949597283,"position":2,"created_at":"2026-06-23T15:27:31+08:00","updated_at":"2026-06-23T15:27:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653","variant_ids":[40768830570595]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-PX02","featured_media":{"alt":null,"id":27572502069347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768830701667,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059655929955,"product_id":7022949597283,"position":4,"created_at":"2026-06-23T15:27:32+08:00","updated_at":"2026-06-23T15:27:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3c59931fe4c961037e30152fc0210722bfdceb.webp?v=1782199654","variant_ids":[40768830701667]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01187O9-PX02","featured_media":{"alt":null,"id":27572502495331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3c59931fe4c961037e30152fc0210722bfdceb.webp?v=1782199654"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768830931043,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059655733347,"product_id":7022949597283,"position":3,"created_at":"2026-06-23T15:27:32+08:00","updated_at":"2026-06-23T15:27:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d900307957bd348c25e78e3b7a2fd2f144e65119.webp?v=1782199654","variant_ids":[40768830931043]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-PX02","featured_media":{"alt":null,"id":27572502265955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d900307957bd348c25e78e3b7a2fd2f144e65119.webp?v=1782199654"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768830963811,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011870D-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059656880227,"product_id":7022949597283,"position":6,"created_at":"2026-06-23T15:27:34+08:00","updated_at":"2026-06-23T15:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c5038d7f58f61dce78e5d83c73790b8a2331c95.webp?v=1782199656","variant_ids":[40768830963811]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870D-PX02","featured_media":{"alt":null,"id":27572503445603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c5038d7f58f61dce78e5d83c73790b8a2331c95.webp?v=1782199656"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768831029347,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST011870C-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059656487011,"product_id":7022949597283,"position":5,"created_at":"2026-06-23T15:27:33+08:00","updated_at":"2026-06-23T15:27:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936ec7a999bfd82a20bc368176d11a9b2209051b.webp?v=1782199655","variant_ids":[40768831029347]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Classic Blue","public_title":"Classic Blue","options":["Classic Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870C-PX02","featured_media":{"alt":null,"id":27572503052387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936ec7a999bfd82a20bc368176d11a9b2209051b.webp?v=1782199655"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40768831062115,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011870E-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059657699427,"product_id":7022949597283,"position":7,"created_at":"2026-06-23T15:27:35+08:00","updated_at":"2026-06-23T15:27:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e87e94d364c5667ad8b2f79154975b9abc8bd3.webp?v=1782199657","variant_ids":[40768831062115]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870E-PX02","featured_media":{"alt":null,"id":27572504264803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20e87e94d364c5667ad8b2f79154975b9abc8bd3.webp?v=1782199657"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40768830570595,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-PX02","requires_shipping":true,"taxable":true,"featured_image":{"id":36059655503971,"product_id":7022949597283,"position":2,"created_at":"2026-06-23T15:27:31+08:00","updated_at":"2026-06-23T15:27:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653","variant_ids":[40768830570595]},"available":true,"name":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 布丁狗與大耳狗 食物系列-甜點世界 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-PX02","featured_media":{"alt":null,"id":27572502069347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b717e8a90b9b25c9c42d79a25cf3d5a954b57833.webp?v=1782199653"}},"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: "停產" }