Mahmood ShȜban Mahmood ShȜban - 4 months ago 177
JSON Question

syntaxerror : unexpected token < in json at position 0

I have a problem in the opencart cart page , whenever the user want to remove an item from the cart the below massage is displayed

syntaxerror : unexpected token < in json at position 0
ok
<pre>remove</pre>{"total":"0 item(s)-0.000 BD"}


i believe that
remove
should not be here , but unfortunately i couldn't find it in the files , any idea ?

Answer

i found the solution to this problem

in system/library/cart.php

under : public function remove($cart_id) delete the follwing :

   echo "<pre>";
            print_r("Remove");
            echo "</pre>"; )

that shall fix the problem