Post by narmsara » Wed Apr 11, 2018 2:09 pm

i installed oc 3.0.2 for a new shop and facing "payment method required" problem during checkout process.
I couldn't checkout because oc give me that warning. After refreshing browser (2 or 3 times) the warning message disappear
and i could checkout.

i searching around for a solution since few days. But nothing helps me.

So i decide to make a fresh installation.
Now i got another error message during checkout (using cheque payment):

Code: Select all

SyntaxError: JSON Parse error: Unrecognized token '<'
parsererror
<b>Notice</b>: Undefined index: payment_method in <b>/var/www/vhosts/localhost.localdomain/httpdocs/opencart/upload/catalog/controller/extension/payment/cheque.php</b> on line <b>15</b>[]
This is the content of that line

Code: Select all

if ($this->session->data['payment_method']['code'] == 'cheque') {
Any idea?

Newbie

Posts

Joined
Wed Apr 11, 2018 1:36 pm

Post by straightlight » Thu Apr 12, 2018 1:28 am

Duplicated subject of this topic: viewtopic.php?f=201&t=203557 . At least, on the one we're on, it's more detailed.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Thu Apr 12, 2018 1:30 am

Replace:

Code: Select all

if ($this->session->data['payment_method']['code'] == 'cheque') {
with:

Code: Select all

if (!empty($this->session->data['payment_method']['code']) && $this->session->data['payment_method']['code'] == 'cheque') {

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 2 guests