$product = {"id":6984927117411,"title":"iPhone 12 Pro Max SolidSuit (MagSafe 兼容) 懶散兔與啾先生 冰淇淋","handle":"iphone-12-pro-max-solidsuit-classic-magsafe-ec10","description":null,"published_at":"2024-08-20T12:24:56+08:00","created_at":"2023-07-28T17:04:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-哈利波特 Harry Potter","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 12 Pro Max","merge","reseller-bylobster"],"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":40603061551203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053844361315,"product_id":6984927117411,"position":3,"created_at":"2026-06-23T09:28:09+08:00","updated_at":"2026-06-23T09:28:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091","variant_ids":[40603061551203]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-EC10","featured_media":{"alt":null,"id":27566694891619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603061682275,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053844754531,"product_id":6984927117411,"position":4,"created_at":"2026-06-23T09:28:10+08:00","updated_at":"2026-06-23T09:28:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014cfacdbbd259cfad0ddaf095da425403357aaf.webp?v=1782178092","variant_ids":[40603061682275]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01187O9-EC10","featured_media":{"alt":null,"id":27566695284835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014cfacdbbd259cfad0ddaf095da425403357aaf.webp?v=1782178092"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603061911651,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053845770339,"product_id":6984927117411,"position":6,"created_at":"2026-06-23T09:28:11+08:00","updated_at":"2026-06-23T09:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0729c59a34756dfbf008c23979d42c8d2b94d.webp?v=1782178093","variant_ids":[40603061911651]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-EC10","featured_media":{"alt":null,"id":27566696300643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0729c59a34756dfbf008c23979d42c8d2b94d.webp?v=1782178093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603061944419,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011870D-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053844131939,"product_id":6984927117411,"position":2,"created_at":"2026-06-23T09:28:08+08:00","updated_at":"2026-06-23T09:28:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc60882dbc070c27e124173622f1368e4f5426b.webp?v=1782178091","variant_ids":[40603061944419]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870D-EC10","featured_media":{"alt":null,"id":27566694695011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc60882dbc070c27e124173622f1368e4f5426b.webp?v=1782178091"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603062009955,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST011870C-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053846458467,"product_id":6984927117411,"position":7,"created_at":"2026-06-23T09:28:12+08:00","updated_at":"2026-06-23T09:28:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0f5c582189b72586da7d5451ca7e7e3d7305d3.webp?v=1782178094","variant_ids":[40603062009955]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870C-EC10","featured_media":{"alt":null,"id":27566696988771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0f5c582189b72586da7d5451ca7e7e3d7305d3.webp?v=1782178094"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603062042723,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011870E-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053845311587,"product_id":6984927117411,"position":5,"created_at":"2026-06-23T09:28:11+08:00","updated_at":"2026-06-23T09:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50150811f992b33c4c44378d444ca7c1f170a06.webp?v=1782178093","variant_ids":[40603062042723]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870E-EC10","featured_media":{"alt":null,"id":27566695841891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50150811f992b33c4c44378d444ca7c1f170a06.webp?v=1782178093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-187-EC10_f4b6594e-4b0a-4c32-bb22-130a6dfa03f1.png?v=1690535087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc60882dbc070c27e124173622f1368e4f5426b.webp?v=1782178091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014cfacdbbd259cfad0ddaf095da425403357aaf.webp?v=1782178092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50150811f992b33c4c44378d444ca7c1f170a06.webp?v=1782178093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0729c59a34756dfbf008c23979d42c8d2b94d.webp?v=1782178093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0f5c582189b72586da7d5451ca7e7e3d7305d3.webp?v=1782178094"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-187-EC10_f4b6594e-4b0a-4c32-bb22-130a6dfa03f1.png?v=1690535087","options":["color"],"media":[{"alt":null,"id":22638744895587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-187-EC10_f4b6594e-4b0a-4c32-bb22-130a6dfa03f1.png?v=1690535087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-187-EC10_f4b6594e-4b0a-4c32-bb22-130a6dfa03f1.png?v=1690535087","width":2000},{"alt":null,"id":27566694695011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc60882dbc070c27e124173622f1368e4f5426b.webp?v=1782178091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc60882dbc070c27e124173622f1368e4f5426b.webp?v=1782178091","width":2000},{"alt":null,"id":27566694891619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091","width":2000},{"alt":null,"id":27566695284835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014cfacdbbd259cfad0ddaf095da425403357aaf.webp?v=1782178092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014cfacdbbd259cfad0ddaf095da425403357aaf.webp?v=1782178092","width":2000},{"alt":null,"id":27566695841891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50150811f992b33c4c44378d444ca7c1f170a06.webp?v=1782178093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50150811f992b33c4c44378d444ca7c1f170a06.webp?v=1782178093","width":2000},{"alt":null,"id":27566696300643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0729c59a34756dfbf008c23979d42c8d2b94d.webp?v=1782178093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0729c59a34756dfbf008c23979d42c8d2b94d.webp?v=1782178093","width":2000},{"alt":null,"id":27566696988771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0f5c582189b72586da7d5451ca7e7e3d7305d3.webp?v=1782178094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0f5c582189b72586da7d5451ca7e7e3d7305d3.webp?v=1782178094","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":40603061551203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053844361315,"product_id":6984927117411,"position":3,"created_at":"2026-06-23T09:28:09+08:00","updated_at":"2026-06-23T09:28:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091","variant_ids":[40603061551203]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-EC10","featured_media":{"alt":null,"id":27566694891619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603061682275,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"MST01187O9-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053844754531,"product_id":6984927117411,"position":4,"created_at":"2026-06-23T09:28:10+08:00","updated_at":"2026-06-23T09:28:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014cfacdbbd259cfad0ddaf095da425403357aaf.webp?v=1782178092","variant_ids":[40603061682275]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01187O9-EC10","featured_media":{"alt":null,"id":27566695284835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014cfacdbbd259cfad0ddaf095da425403357aaf.webp?v=1782178092"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603061911651,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011870B-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053845770339,"product_id":6984927117411,"position":6,"created_at":"2026-06-23T09:28:11+08:00","updated_at":"2026-06-23T09:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0729c59a34756dfbf008c23979d42c8d2b94d.webp?v=1782178093","variant_ids":[40603061911651]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870B-EC10","featured_media":{"alt":null,"id":27566696300643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0729c59a34756dfbf008c23979d42c8d2b94d.webp?v=1782178093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603061944419,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011870D-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053844131939,"product_id":6984927117411,"position":2,"created_at":"2026-06-23T09:28:08+08:00","updated_at":"2026-06-23T09:28:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc60882dbc070c27e124173622f1368e4f5426b.webp?v=1782178091","variant_ids":[40603061944419]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870D-EC10","featured_media":{"alt":null,"id":27566694695011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc60882dbc070c27e124173622f1368e4f5426b.webp?v=1782178091"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603062009955,"title":"Classic Blue","option1":"Classic Blue","option2":null,"option3":null,"sku":"MST011870C-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053846458467,"product_id":6984927117411,"position":7,"created_at":"2026-06-23T09:28:12+08:00","updated_at":"2026-06-23T09:28:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0f5c582189b72586da7d5451ca7e7e3d7305d3.webp?v=1782178094","variant_ids":[40603062009955]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870C-EC10","featured_media":{"alt":null,"id":27566696988771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0f5c582189b72586da7d5451ca7e7e3d7305d3.webp?v=1782178094"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40603062042723,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011870E-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053845311587,"product_id":6984927117411,"position":5,"created_at":"2026-06-23T09:28:11+08:00","updated_at":"2026-06-23T09:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50150811f992b33c4c44378d444ca7c1f170a06.webp?v=1782178093","variant_ids":[40603062042723]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011870E-EC10","featured_media":{"alt":null,"id":27566695841891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50150811f992b33c4c44378d444ca7c1f170a06.webp?v=1782178093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40603061551203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118752-EC10","requires_shipping":true,"taxable":true,"featured_image":{"id":36053844361315,"product_id":6984927117411,"position":3,"created_at":"2026-06-23T09:28:09+08:00","updated_at":"2026-06-23T09:28:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091","variant_ids":[40603061551203]},"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":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118752-EC10","featured_media":{"alt":null,"id":27566694891619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd845705fe224b9e9912524a4063f13a9de4fd2.webp?v=1782178091"}},"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: "停產" }