Page 1 of 1

SyntaxError: JSON.parse at payment method step

Posted: Thu Jun 23, 2016 6:37 am
by angelorigo
Hi

At :
/index.php?route=checkout/checkout

When continuing at step 5 payment method i do get this error:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

<b>Notice</b>: Undefined index: comment in <b>/home/mywebsite/www/catalog/controller/checkout/shipping_method.php</b> on line <b>127</b>[]

How can i fix it? is there already a fix ?

Re: SyntaxError: JSON.parse at payment method step

Posted: Thu Jun 23, 2016 6:52 am
by straightlight
Which OC version, payment and shipping method are you using?

Re: SyntaxError: JSON.parse at payment method step

Posted: Thu Jun 23, 2016 7:09 am
by angelorigo
Hi,

I am using 2.2.0, with Cheque Money order enabled, and pick up from store for shipping

It is my first Opencart store, i would to know more about wich payment and shipping options i can enable.

Re: SyntaxError: JSON.parse at payment method step

Posted: Thu Jun 23, 2016 7:12 am
by straightlight
This topic should help you greatly: http://forum.opencart.com/viewtopic.php ... it=comment
It is my first Opencart store, i would to know more about wich payment and shipping options i can enable.
You are posting under the bug reports at this time. If you want to obtain general information about Opencart, please post under the general support section right above the bug reports.

Re: SyntaxError: JSON.parse at payment method step

Posted: Thu Jun 23, 2016 7:50 am
by angelorigo
Thank you ! it works fine, i am very glad for your help!

I pass step 5 , now i found another error at steps six :

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

<b>Notice</b>: Undefined index: comment in <b>/home/mywebsite/www/catalog/controller/checkout/payment_method.php</b> on line <b>186</b>[]

Re: SyntaxError: JSON.parse at payment method step

Posted: Thu Jun 23, 2016 7:53 am
by straightlight
You need to go through the entire topic: http://forum.opencart.com/viewtopic.php ... nt#p618358 . It indicates both for payment and shipping statement.

Re: SyntaxError: JSON.parse at payment method step

Posted: Thu Jun 23, 2016 9:16 am
by angelorigo
Great! i did and now it is working fine.
Best Regards