Learn and share. The simplest harmony.

 

jCart : AJAX/PHP Shopping Cart

Posted on January 5, 2010 and got 11 shouts so far

jCart is a simple shopping cart application made from jQuery and PHP. Because it makes use of jQuery as primary component the shopping process runs in AJAX technology so the user don’t have to refresh every page in making a transaction. Moreover, this application supports full functionality in case the javascript is disabled.

jCart also supports PayPal checkout. You only have to make a little configuration in your jcart-config.php file by adding your merchant ID PayPal. If you are not a PayPal user, you can put a checkout script or your own payment processor on file jcart-gateway.php

Implementation

Here is some results of jCart implementation which can be used for daily life. The implementation scope I did is only modifying the output preview. I only optimized this implementation on Safari and Google Chrome browser. To see how to install jCart you can click here.

Screenshot

In this implementation, there are only 3 files I need to be modified such as: store.php, checkout.php, and jcart.php. Store.php is a script to show available product list and user shopping cart. Checkout.php handles updating data and customers checkout. Jcart.php, on the other hand, is a core script of jCart itself.

Feel free to download this implementation I made but not for:

  1. Redistribute it as yours.
  2. Sell it.
  3. Make a mirror download of it.

You can also get regular useful updates about web-stuff by subscribing webstuffshare RSS feed. If you like this post, your sharing and feedback would be very appreciated ;)

 

This Post Tags :

Bookmark Post :

  • n1ce informat1on ..thank you

  • Thank you denbagus :)
    Btw, followed on twitter ;)

  • in images you have ‘button-slider’. I don’t see any way those images come up. What is your use for them? If it’s for the basket spanning over the width of the browser windows, it doesn’t work.

  • @Thumper : Sorry these images (button-slider-prev.png, button-slider-next.png, button-slider.psd) was not used, i put them on the source in case we need to add a slider function for the basket, thank you for noticing ;)

  • Sungguh Terlalu…….

    Mantap Gan

  • This is a nice script.
    Its using to one of my client project..
    Thanks a lot..:-)

  • mau tanya donk koq pas di click “addtocart” angka nya gak update yah…. masih 0 item nya… @@ apa yang kurang yah =( thank you

    • Coba cek
      jcart/jquery-1.3.2.min.js dan
      jcart/jcart-javascript.min.php ada atau tidak
      Jalankan aplikasinya lewat localhost.

  • Hey, this is a very nice script.
    Can anyone help me in getting only the number of Items in my cart.. But that also has to get updated when ever I increase the quantity of any products in my cart. I cud use some help here can any one give me the code for doing this. I have tried for hours and am not able to do it on my own…
    Thanks..

    • Hey.. Thank you again.. But I figured it out by myself…
      Thank you any ways for this great AJAX plugin…

  • Thanks :)