Rissinko Posted February 23, 2022 Share Posted February 23, 2022 Hello colleagues developers, I just have one question. I am working on override of one payment module because i want to have confirmation page to confirm order before it creation. I came to some specific problem. What I want to do is to override module to add this confirmation page with new front controller for this page but this module is not contain this new front controller. So may question is : Is there any possibility how to refer from override paymentoption to front controller created only in module override folder ? I don't want to create this file in module because i want to have clean module installation to be able do fast update. I am overriding hookPaymentOptions which look like this : $formAction = $this->context->link->getModuleLink($this->name, 'MYOWNCONFIRMATIONCONTROLLER', array(), true); $this->smarty->assign( $this->getTemplateVarInfos(), ['action' => $formAction] ); $paymentForm = $this->fetch('module:cardpay/views/templates/front/MYOWNCONFIRMATIONPAGE.tpl'); $newOption = new PaymentOption; $newOption->setModuleName($this->displayName) ->setCallToActionText($this->displayName) ->setAction($formAction) ->setForm($paymentForm); //$payment_options = array($newOption); $payment_options = [ $newOption, ]; I am able to reach this MYOWNCONFIRMATIONCONTROLLER and page but only if i will create this file in module folder. But what i want to create this files only in override/modules/MYMODULE/Controller folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now