From da9749dda3a450493fe6ad32727140541b855775 Mon Sep 17 00:00:00 2001 From: AnthonyMeedle Date: Thu, 19 Sep 2013 09:41:44 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20de=20commande=20:=20total?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bonjour, suite à la création de commande sur certain plugin atos, chèque il y a besoin du prix total qui dans certain cas ne se recalcule pas. Donc soit il faut modifier les plugins soit rajouter le total dans la session. Et pour atos il manque aussi le numéro de transaction. j'ai également rajouter dans mon fichier $_SESSION['navig']->commande = $order; dans le if de callPayment sans être sur que ce soit utile Pour les plugins comme chèque je me demande même si on ne devrait pas rajouter. $_SESSION['navig']->client = $client; $_SESSION['navig']->connect = 1; --- classes/OrderAdmin.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/classes/OrderAdmin.class.php b/classes/OrderAdmin.class.php index 88a891b..46b4a4a 100755 --- a/classes/OrderAdmin.class.php +++ b/classes/OrderAdmin.class.php @@ -228,7 +228,7 @@ public function createOrder($facturation_raison, $facturation_entreprise, $factu $order->remise = $total; $order->port = $fraisport; - + $order->total = $total; $order->maj(); ActionsModules::instance()->appel_module("aprescommandeadmin", $order); @@ -236,9 +236,12 @@ public function createOrder($facturation_raison, $facturation_entreprise, $factu if($callMail) ActionsModules::instance()->instancier($module_paiement->nom)->mail($order); - if($callPayment) + if($callPayment){ + $_SESSION['navig']->commande = $order; + $_SESSION['navig']->client = $client; + $_SESSION['navig']->connect = 1; ActionsModules::instance()->instancier($module_paiement->nom)->paiement($order); - else + }else self::getInstance($order->id)->redirect(); } else