fix: order and add to order
This commit is contained in:
@@ -538,7 +538,8 @@ class _SuccessOrderPageState extends State<SuccessOrderPage>
|
||||
|
||||
Widget _buildProductCard(int index) {
|
||||
final item = widget.productQuantity[index];
|
||||
final totalPrice = (item.product.price ?? 0) * item.quantity;
|
||||
final totalPrice = (item.product.price ?? 0) * item.quantity +
|
||||
(item.variant?.priceModifier ?? 0);
|
||||
|
||||
return TweenAnimationBuilder<double>(
|
||||
tween: Tween<double>(begin: 0.0, end: 1.0),
|
||||
@@ -634,7 +635,8 @@ class _SuccessOrderPageState extends State<SuccessOrderPage>
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Text(
|
||||
(item.product.price ?? 0)
|
||||
((item.product.price ?? 0) +
|
||||
(item.variant?.priceModifier ?? 0))
|
||||
.toString()
|
||||
.currencyFormatRpV2,
|
||||
style: TextStyle(
|
||||
|
||||
@@ -380,7 +380,8 @@ class _SuccessSaveOrderPageState extends State<SuccessSaveOrderPage> {
|
||||
|
||||
Widget _buildProductCard(int index) {
|
||||
final item = widget.productQuantity[index];
|
||||
final totalPrice = (item.product.price ?? 0) * item.quantity;
|
||||
final totalPrice = (item.product.price ?? 0) * item.quantity +
|
||||
(item.variant?.priceModifier ?? 0);
|
||||
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
|
||||
Reference in New Issue
Block a user