New answers tagged

0

Cleaning the generated files might solve it, try to run these sequence of commands below. Check the server requirements too. php bin/magento deploy:mode:set developer ; rm -rf vendor/* generated/* var/* pub/static/* ; composer install ; php bin/magento setup:upgrade ;


0

Updated solution: if(Your_condition) { } else { $customerBeforeAuthUrl = $this->_url->getUrl('checkout/cart/index'); $this->_responseFactory->create()->setRedirect($customerBeforeAuthUrl)->sendResponse(); exit; } NOTE: CODE TESTED


Top 50 recent answers are included