Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

V4 - JSON Error calculating shipping Rate Topic   - - - - -

 

Posted 11 August 2013 - 04:06 AM #1

Version 4.01

Error using Firefox
ErrorOops, something went wrong (SyntaxError: JSON.parse: unexpected character). Please try again.

Error using Safari
ErrorOops, something went wrong (SyntaxError: JSON Parse error: Unrecognized token '<'). Please try again.

I get this error when I change the shipping method to include tax, then at checkout trying to calculate the shipping costs will bring this error up, remove the tax option from shipping method, and the error is gone.

I've cleared the cache both on the server and local, and this still pops up.

 

Posted 11 August 2013 - 05:05 AM #2

Found the issue within - Settings:Appearance -, if these are ticked, then the error is thrown, if not ticked, then no error.

Display prices with taxes on category/product pages if the method of calculating taxes is based on a unit's price:

Display prices with taxes on cart/checkout pages if the method of calculating taxes is based on a unit's price:

 
  • thernes
  • Junior Member
  • Members
  • Join Date: 02-Jul 08
  • 14 posts

Posted 12 August 2013 - 09:30 PM #3

Thanks. Got the same error and went searching for a solution ;)

 
  • globalburo
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 138 posts

Posted 20 August 2013 - 07:00 AM #4

I took same error too when I tick that options.

I am using v41.

regards,
may

 
  • hyena65
  • Newbie
  • Trial users
  • Join Date: 26-Aug 13
  • 5 posts

Posted 28 August 2013 - 04:53 PM #5

I am also seeing this error, and do not have either of those boxes checked.

In my case it seems to be related USPS International shipping. Originally, US Express shipping didn't work either, but I was able to fix that with the Priority Mail Express name change fix. However, it did not fix the international mail problem. No international methods seem to work. It will generate the above error when calculating the cost. If I ignore the error, and "proceed to checkout" I get a fatal error:

Fatal error: Call to undefined function Tygh\Shippings\Services\fn_usps_prepare_service_name() in /home/trulyvic/public_html/shopping/app/Tygh/Shippings/Services/Usps.php on line 472

 
  • xmaster
  • Member
  • Trial users
  • Join Date: 27-Nov 08
  • 18 posts

Posted 09 September 2013 - 05:29 AM #6

Greetings!

Any updates on this issue?

It seem to pop when I started to play around with template layout.

Cheers,
XM
__________________
CS-Cart 4.1.x

 
  • clips
  • Aged Resident Loon
  • Members
  • Join Date: 14-Jan 07
  • 1650 posts

Posted 18 February 2014 - 12:49 AM #7

We are now seeing this error. Has anyone figured out another reason it is happening?
Regards,
Jim

 
  • clips
  • Aged Resident Loon
  • Members
  • Join Date: 14-Jan 07
  • 1650 posts

Posted 18 February 2014 - 06:51 PM #8

CSCartRocks ended up fixing it for us. There was a conflict between something CS-Cart did in version 4.1.2 and their add-on. All is good now. Well, until we find another bug. It would be awesome if CS-Cart fixed a bug as fast as CSCartRocks did! But I do understand there is a little more entailed for the CS-Cart crew.
Regards,
Jim