arvind_ari Posted August 20, 2014 Share Posted August 20, 2014 Hello, I have PrestaShop version: 1.6.0.6 I want to show payment methods on my one page checkout without login. for some SEO purpose i need to show payment methods before login to account on checkout page. Please check below attached image for reference . Thanks. Link to comment Share on other sites More sharing options...
NemoPS Posted August 20, 2014 Share Posted August 20, 2014 Payment methods need the invoice address to be set before displaying, as they have country restrictions as well. That sad, you can try having a look at the _getPaymentMethods method of the OrderOpcController Remove the first if (!$this->isLogged) return '<p class="warning">'.Tools::displayError('Please sign in to see payment methods.').'</p>'; I didn't test it but it might be enough, although I am not sure methods will be grabbed, as you need addresses Link to comment Share on other sites More sharing options...
arvind_ari Posted August 20, 2014 Author Share Posted August 20, 2014 Hello Nemo Thanks for reply but it seems not working after removing the first line from OrderOpcController.php if (!$this->isLogged) return '<p class="warning">'.Tools::displayError('Please sign in to see payment methods.').'</p>'; it says "Error: No customer." at the place of "Please sign in to see payment methods." Thanks. Link to comment Share on other sites More sharing options...
arvind_ari Posted August 20, 2014 Author Share Posted August 20, 2014 Payment methods need the invoice address to be set before displaying, as they have country restrictions as well. That sad, you can try having a look at the _getPaymentMethods method of the OrderOpcController Remove the first if (!$this->isLogged) return '<p class="warning">'.Tools::displayError('Please sign in to see payment methods.').'</p>'; I didn't test it but it might be enough, although I am not sure methods will be grabbed, as you need addresses Hello Nemo Thanks for reply but it seems not working after removing the first line from OrderOpcController.php if (!$this->isLogged) return '<p class="warning">'.Tools::displayError('Please sign in to see payment methods.').'</p>'; it says "Error: No customer." at the place of "Please sign in to see payment methods." Thanks. Link to comment Share on other sites More sharing options...
NemoPS Posted August 21, 2014 Share Posted August 21, 2014 Well yes as I said you really need some customer info, as there are other conditionals. You might get rid of the other customer-related checks as well Link to comment Share on other sites More sharing options...
Recommended Posts