浏览代码

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

develop
Guillaume Bourgeois 1 个月前
父节点
当前提交
dacfad0e50
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      producer/controllers/OrderController.php

+ 5
- 1
producer/controllers/OrderController.php 查看文件

@@ -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])
])
);
}


正在加载...
取消
保存