From 6b2e52770bf3281f8926b7225955ab3e5a67df94 Mon Sep 17 00:00:00 2001 From: Marius Robert Macamete Date: Sun, 23 Nov 2025 12:46:17 +0200 Subject: [PATCH] add transport to total --- UI_V2/pages/shopping_cart/cart.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UI_V2/pages/shopping_cart/cart.py b/UI_V2/pages/shopping_cart/cart.py index 4de92c5..89e4a93 100644 --- a/UI_V2/pages/shopping_cart/cart.py +++ b/UI_V2/pages/shopping_cart/cart.py @@ -59,7 +59,7 @@ class Cart: ) self.payment.value = 'ramburs' if self.user['email'] != 'user_de_test@gmail.com' else None self.payment_message = ft.Text("") - self.payment_redirect_button = ft.ElevatedButton( + self.payment_redirect_button = ft.FilledButton( "Finalizeaza plata", visible=False, ) @@ -210,11 +210,11 @@ class Cart: weight=ft.FontWeight.BOLD ), self.payment_message, - self.payment_redirect_button, + ft.Row([self.payment_redirect_button],alignment=ft.MainAxisAlignment.CENTER), ft.Row([self.error_message],alignment=ft.MainAxisAlignment.CENTER), ft.Row( [ - ft.FilledButton( + ft.Button( "Comanda", width=150, on_click=self.open_confirm_dialog @@ -281,7 +281,7 @@ class Cart: def get_order_products(self, id): products = self.orders_manager.get_order_products(id) - total = 17 + total = 0 all_products = [] for product in products: @@ -291,7 +291,7 @@ class Cart: if name not in all_products: all_products.append(name) try: - self.pret_total.value = f'Pret total: {total}' + self.pret_total.value = f'Pret total: {total+17}' self.pret_total.update() except: pass