From 82fd7504ba273d3e485a8baf24f0cb00e7e0a2e2 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 24 Sep 2024 16:40:08 +0530 Subject: [PATCH] Removed: Save and stay button for the new voucher popup on the book now page --- controllers/admin/AdminCartRulesController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/controllers/admin/AdminCartRulesController.php b/controllers/admin/AdminCartRulesController.php index 0e21ec140..a09ffc12b 100644 --- a/controllers/admin/AdminCartRulesController.php +++ b/controllers/admin/AdminCartRulesController.php @@ -752,10 +752,12 @@ class AdminCartRulesControllerCore extends AdminController public function renderForm() { $limit = 40; - $this->toolbar_btn['save-and-stay'] = array( - 'href' => '#', - 'desc' => $this->l('Save and Stay') - ); + if (!Tools::getValue('liteDisplaying')) { + $this->toolbar_btn['save-and-stay'] = array( + 'href' => '#', + 'desc' => $this->l('Save and Stay') + ); + } /** @var CartRule $current_object */ $current_object = $this->loadObject(true);