fix: order and add to order

This commit is contained in:
efrilm
2025-08-13 22:52:37 +07:00
parent b34428965e
commit b0006ee6bc
9 changed files with 29 additions and 17 deletions
+4 -2
View File
@@ -429,8 +429,10 @@ class _HomePageState extends State<HomePage> {
}
return products
.map((e) =>
e.product.price! *
e.quantity)
(e.product.price! *
e.quantity) +
(e.variant?.priceModifier ??
0))
.reduce((value, element) =>
value + element);
});