Search found 5 matches

Page 1 of 1

Search found 5 matches

Re: SyntaxError: JSON.parse at checkout page

Can you give me a hint on how to fix it?

Original the code look like this:
$this->response->addHeader('Content-type: application/json; charset=utf-8');
$this->response->setOutput(json_encode($json));

Jump to post
  • Fri May 24, 2019 11:39 pm
  • Replies 7
  • Views 575
Re: SyntaxError: JSON.parse at checkout page

I found out this...

/catalog/controller/checkout/register.php:246

$this->response->setOutput(json_encode($json));

The code abow sends a junk character when $json is empty. the character is: \ufeff and that cause the error.

How do I get rid of it?

I'm not a programmer :)

Jump to post
  • Fri May 24, 2019 11:14 pm
  • Replies 7
  • Views 575
Re: SyntaxError: JSON.parse at checkout page

The problem is still there when i unistalled the "where did you hear about us" Extension

Jump to post
  • Thu Apr 18, 2019 4:30 pm
  • Replies 7
  • Views 575
SyntaxError: JSON.parse at checkout page

OC version 3.0.2.0 When I try to create an account on the checkout page with products in my cart I get an error like: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data OK If I then press F5 the account will be created and I can go on with the order without problems. T...

Jump to post
  • Fri Apr 05, 2019 7:16 pm
  • Replies 7
  • Views 575
Change size of columns

Using opencart 2.0.1.1, and the default theme.

I want to make the middle section larger and the left and right column smaller, how do I do that?

I have some html/css knowledge but I does not solve this problem :)

Jump to post
  • Fri Jan 16, 2015 6:05 am
  • Replies 1
  • Views 224

Page 1 of 1

Search found 5 matches