瀏覽代碼

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


Loading…
取消
儲存