Totals block in shopping cart page is stuck. error

The Error in console is:

POST http://www.demomage.com/rest/default/V1/carts/mine/totals-information 500 (Internal Server Error)
Uncaught SyntaxError: Unexpected token < in JSON at position 0

You should check network tab - to see the response Response should be a json it is probably an html - with some errorsenter image description here

P.S I could not make a comment


Try this solution - bug fix.


In that fix you propably have the most of the code. In my case i was missing.

In line 15 add use Magento\Framework\Api\ExtensibleDataInterface;

In line 98 add unset($addressTotalsData[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]);

Hope it helps you.

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review – Jai Feb 17 '18 at 15:55
  • yea sorry i edit it – Tasos Kakouris Feb 17 '18 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.