How to fix bug Jcart plugin for wordpress?


Jcart is simple shopping cart plugin for Wordpress and very easy use it but some bug when use this plugin.To day I want show you a solution for it.
The first error:

File jcart-javascript.php could’t load correct. 


Fix:
  1. Open file jcart-defaults.php
  2. Find line 11
  3. Replace “wp-blog-header.php” to “wp-load.php”

The second error:

Fatal error</b>: Cannot use object of type __PHP_Incomplete_Class as array in ‘jcart-javascript.php’.

Fix:

  1. Open file jcart-defaults.php
  2. Replace all variable $jcart with another variable name ( Ex: $jcart_cfg )
  3. Open file jcart-javascript.php replace all variable $jcart with variable name on step 2 ( Ex: $jcart_cfg )
  4. Similar with jcart-relay.php file.
  5. Open jcart-admin.php file find function wp_jcart and replace all variable $jcart with variable name on step 2.

Now you can use Jcart for your projects.Nice work!.