Browse Source

[Boutique] Correctif redirection vers la page de commande après connexion

develop
Guillaume Bourgeois 1 month ago
parent
commit
dacfad0e50
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      producer/controllers/OrderController.php

+ 5
- 1
producer/controllers/OrderController.php View File

@@ -92,7 +92,11 @@ class OrderController extends ProducerBaseController

if (\Yii::$app->user->isGuest && !$producer->option_allow_order_guest) {
return $this->redirect(
$this->getUrlManagerFrontend()->createAbsoluteUrl(['site/producer', 'id' => $producer->id])
$this->getUrlManagerFrontend()->createAbsoluteUrl([
'site/producer',
'id' => $producer->id,
'return_url' => \Yii::$app->urlManagerProducer->createAbsoluteUrl(['order/order', 'slug_producer' => $this->getProducerCurrent()->slug])
])
);
}


Loading…
Cancel
Save