Simple Shopping Cart in CodeIgniter

cart-codeigniterExpressionEngine Dev Team is preparing a Cart library for CodeIgniter version 1.7.2

If you are interested in a preview of this CodeIgniter shopping cart, you can download the Cart.php from trunk, or you can wait until 1.7.2 is launched.



http://dev.ellislab.com/svn/CodeIgniter/trunk/system/libraries/Cart.php

The documentation is here:

http://dev.ellislab.com/svn/CodeIgniter/trunk/user_guide/libraries/cart.html

Things you can do with this Cart library

Add items to the cart. You use an array specifying id, quantity, price, name and a sub-array with options.

Add multiple items to the cart, at once. Similar to adding a single product but in this case you can specify an array of products.

Display the cart content. For this purpose, you will create a view file and use the Cart functions to retrieve the cart content, options and calculate totals.

Update the cart. For example, updates the quantity for an existing item insider your cart.

More inside this Cart

Then, you can other accessible functions that you can use, for example:

  • Calculate the Total amount in the cart.
  • Count the number of items in the cart.
  • Return an array containing everything inside the cart.
  • Return the options assigned for a particular product.
  • Destroy the cart.

Related searches:

  • codeigniter shopping cart
  • codeigniter shopping cart download
  • cart codeigniter demo
  • codeigniter shop
  • simple shopping cart in codeigniter
  • codeigniter php
  • codeigniter cart
  • shoppingcart script in codeignator
  • shopping cart php
  • shopping cart in codeigniter
  1. Ben says:

    I’m happy the CodeIgnier Devs is releasing this class, though I would have preferred an Auth/Acl module rather than a shopping cart, which is useful only if you do ecommerce, whereas authentication is a key structure in every of my projects.

  2. Louis Somsana says:

    An informative post and well worth reading. I have been following your blog for a while now and have to say it is one of the best about. Every time I see a good blog post I usually do one of three things: 1. Forward it to all the relevant friends. 2. Bookmark it in some of the best sharing sites. 3. Make sure I re-visit the website where I came accross the post. After reading this post I’m seriously thinking of doing all three. Keep it coming !

  1. [...] Simple Shopping Cart in CodeIgniter [...]

  2. [...] New simple Cart Class has been introduced (we commented something about it in an earlier post) [...]

Leave a Reply