Jump to content

How to Show Payment methods on checkout page without login


Recommended Posts

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.

post-803358-0-85520100-1408520239_thumb.png

Link to comment
Share on other sites

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

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

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

×
×
  • Create New...