From c958c3adb9f904727327f319c83be46934394bb4 Mon Sep 17 00:00:00 2001 From: gcch Date: Fri, 12 Sep 2025 14:48:11 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20corrige=20le=20probl=C3=A8me=20emp=C3=AA?= =?UTF-8?q?chant=20l'envoi=20dans=20des=20pays=20UE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - un mauvais arrondi était effectué lors de la création de la commande. --- web/app/themes/haiku-atelier-2024/page-checkout.php | 2 +- .../src/scripts/page-panier/scripts-page-panier-adresses.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/themes/haiku-atelier-2024/page-checkout.php b/web/app/themes/haiku-atelier-2024/page-checkout.php index eb0606a8..08c07ccb 100755 --- a/web/app/themes/haiku-atelier-2024/page-checkout.php +++ b/web/app/themes/haiku-atelier-2024/page-checkout.php @@ -82,7 +82,7 @@ $commande = wc_get_order($order_id); /** @var mixed $methode_livraison */ $methode_livraison = [ "nom" => $commande->get_shipping_method(), - "cout" => $commande->get_shipping_total(), + "cout" => $commande->get_shipping_total() * 100, ]; // Sélectionne la clé API Stripe diff --git a/web/app/themes/haiku-atelier-2024/src/scripts/page-panier/scripts-page-panier-adresses.ts b/web/app/themes/haiku-atelier-2024/src/scripts/page-panier/scripts-page-panier-adresses.ts index 8bc185af..9a2fea98 100755 --- a/web/app/themes/haiku-atelier-2024/src/scripts/page-panier/scripts-page-panier-adresses.ts +++ b/web/app/themes/haiku-atelier-2024/src/scripts/page-panier/scripts-page-panier-adresses.ts @@ -301,7 +301,7 @@ export const initOrderCreationButton = (): void => { { method_id: selectedRateLS.method_id, method_title: selectedRateLS.name, - total: pipe(diviseParCent(selectedRateLS.price), String), + total: String(selectedRateLS.price), }, ], };