From a2d1e41a52eed919d8bb7aa2ed0b49fd529a4abd Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Mon, 19 Apr 2021 13:02:25 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20bogue=20sur=20s=C3=A9lection=20du?= =?UTF-8?q?=20point=20CnC=20qui=20demandait=20tout=20le=20temps=20de=20cho?= =?UTF-8?q?isir=20un=20lieu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/modules/ClickAndCollect/ClickAndCollect.php | 2 +- .../templates/frontOffice/default/order-delivery-extra.html | 2 +- .../PlanificationLivraison/EventListeners/DeliveryListener.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/local/modules/ClickAndCollect/ClickAndCollect.php b/local/modules/ClickAndCollect/ClickAndCollect.php index 3bd88505..55e0ea95 100644 --- a/local/modules/ClickAndCollect/ClickAndCollect.php +++ b/local/modules/ClickAndCollect/ClickAndCollect.php @@ -52,7 +52,7 @@ class ClickAndCollect extends AbstractDeliveryModule } $price = 0; - if (null !== $chosenPlace = $this->getRequest()->get(('cnc-choosen-place'))) { + if (null !== $chosenPlace = $this->getRequest()->get(('cnc-choosen-day'))) { $placeId = PdrScheduleQuery::create()->findOneById($chosenPlace)->getIdPlace(); $price = PdrPlacesQuery::create()->findOneById($placeId)->getPrice(); } diff --git a/local/modules/ClickAndCollect/templates/frontOffice/default/order-delivery-extra.html b/local/modules/ClickAndCollect/templates/frontOffice/default/order-delivery-extra.html index 91d48535..4f62da6e 100644 --- a/local/modules/ClickAndCollect/templates/frontOffice/default/order-delivery-extra.html +++ b/local/modules/ClickAndCollect/templates/frontOffice/default/order-delivery-extra.html @@ -64,7 +64,7 @@ {/if} - + {/loop} diff --git a/local/modules/PlanificationLivraison/EventListeners/DeliveryListener.php b/local/modules/PlanificationLivraison/EventListeners/DeliveryListener.php index f0425df7..04105395 100644 --- a/local/modules/PlanificationLivraison/EventListeners/DeliveryListener.php +++ b/local/modules/PlanificationLivraison/EventListeners/DeliveryListener.php @@ -97,7 +97,7 @@ class DeliveryListener extends BaseAction implements EventSubscriberInterface } if ($module == ClickAndCollect::getModuleId()) { - if (null !== $placeId = $request->get('cnc-choosen-place', null)) { + if (null !== $placeId = $request->get('cnc-choosen-day', null)) { $sessionData = new SessionData(); $sessionData->setPlaceId($placeId);