Hi guys ,
can anyone guide me where to find redirection to checkout code after creating an account. ?
Try plugin.
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.
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,