cancel
Showing results for 
Search instead for 
Did you mean: 

Redirection to checkout code after creating an account.

Redirection to checkout code after creating an account.

Hi guys ,

                can anyone guide me where to find redirection to  checkout code after creating an account. ?

3 REPLIES 3

Re: Redirection to checkout code after creating an account.

Try plugin.

Re: Redirection to checkout code after creating an account.

Hi  @bharath553 ,

 

You can use the plugin to redirect to checkout page manually. You can use following one of the way to redirect. 

 

This is one of the ways to redirect manually. 

 

public function __construct(
        \Magento\Framework\Controller\Result\RedirectFactory $redirectFactory
    ) {
        .....
        $this->resultRedirectFactory = $redirectFactory;
        .....
    }

public function yourPluginFunction() {
     $resultRedirect = $this->resultRedirectFactory->create();
     $resultRedirect->setUrl(checkout/cart);
     return $resultRedirect;
}

If this was helpful, please Accept as solution and provide Kudos.

 

 

Re: Redirection to checkout code after creating an account.

Hi @bharath553 

 

Do you need to find how to do a redirect to a checkout page or how it is done in Magento 2?

 

Thanks,