Hi, I need a php class to create my own shopping cart. See, I've used lot of full-featured shopping cart script. I realise, these scripts are worthless for custom coders. Specially, when the shopping cart is only 10-15% of my large website, I'll never prefer to go with OS Commerce, Zen Cart or something similar. That's why, I need a PHP class, which can be integrated into my existing website easily. The class should help me to perform basic tasks like - Adding to cart, removing from cart, cart display and check out. For an example, the class will take arguments like product name, item number, price etc and will send same arguments on check out. If anyone can help me with a similar class, I'll be grateful.
I've easily found some options by using "php shopping cart class" in Google. Please, check them out and let me know if it helped to find something suitable for you.
What's your php coding experience. Conceptually the class itself would be very easy to create. Where you run into complexity is integrating with a payment gateway, email notifications, cart layout, checkout, duplicate-order prevention, etc...
Shopping carts are so much more complex than just adding/removing items. What you really want is the simplest available cart system to integrate. OSC and Zen are complex in that they cover all the functions you might need.
This is why I asked for a simple shopping cart class. Which is easy to integrate into my existing design. Firtunately, I've got one last night. The class is free, just some hundreds line of code, easy to integrate and works fine. It's here http://www.webforcecart.com/ I've integrated the cart successfully to my website http://techbongo.com/order/cart/ and it's working fine. My vote is for Wfcart. And thank you all for your valuable contribution.
Glad to hear of such a quick solution! Just out of interest, how long did it take you to perform an integration?
It took only 15 minutes for me. Because the script contains a helpful documentation. The basic operation were written briefly and arguments were explained properly. This made my work more easy.