 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
INSC Dsigns: Building a Shopping Cart using CodeIgniter's Shopping Cart Class
by Chris Cornutt January 18, 2010 @ 08:55:35
On the INSC Designs site today there's a new tutorial walking you through the creation of a shopping cart with the help of the Shopping Cart class that's included in the CodeIgniter PHP framework.
Late last year CodeIgniter v1.7.2 was released with a lot of improvements and bug fixes. This version is now compatible with PHP5.3.0, they added is_php() to Common functions to facilitate PHP version comparisons, modified show_error() to allow sending of HTTP server response codes, and all internal uses now send proper status codes, Form helper improved and a new class which we are about to cover in this tutorial the Shopping Cart Class.
They walk you through some of the basics that the shopping cart class has to offer - adding items, removing them, updating the current item list. They show you how to create each piece of the MVC puzzle - the Product controller, a Cart controller and two basic views, one for the cart and the other for the products. They didn't create a model because they're not hooking it into a database/backend resource.
voice your opinion now!
shoppingcart codeigniter framework class
PHPBuilder.com: Developing a Ajax-driven Shopping Cart with PHP and Prototype
by Chris Cornutt April 29, 2008 @ 08:48:31
On PHPBuilder.com today there's a new tutorial posted showing how to combine the Javascript power of Prototype along side PHP's adaptability to create a simple, ajax-driven shopping cart for your site.
In the latest installment of this ongoing PHP series, I'll show you how to build a shopping cart using PHP, session handling, and the Prototype JavaScript library. The cart allows users to add and delete products from the cart, as well as change cart quantities. And of course, the interaction is seemingly instantaneous, allowing for the user to continue shopping without waiting for the page to reload.
They start from the ground up - making the database tables, inserting some data - before writing up the simple PHP class with methods like deleteFromCart and getCart. This lays the foundation for the next article in the series where they add in a splash of ajax to make it a bit more user-friendly.
voice your opinion now!
shoppingcart ajax prototype tutorial series
DeveloperTutorials.com: PHP and MySql with PayPal
by Chris Cornutt November 16, 2007 @ 08:48:00
DeveloperTutorials.com has a new tutorial posted today about making the connection between a PHP/MySQL application and PayPal through the GoLive interface (don't worry - the source code's there too).
This tutorial is meant to show how GoLive users can integrate their PHP/MySql dynamic data with PayPal to create a simple online store with some advanced pricing features. This tutorial assumes that you are already familiar with using dynamic content in GoLive and aren't too terrified of working with source code.
They start with the SQL to hold the item information (including price) and show briefly how to set it up with the Inspector helper in GoLive. They show how to grab the HTML off of the PaylPal site to link to the object and how to make this add it to the shopping cart on the PayPal website. To finish it off and make it look a little nicer, they also show how to add images to the layout for each of the items.
voice your opinion now!
mysql paypal shoppingcart tutorial golive source mysql paypal shoppingcart tutorial golive source
Developer.com: Developing a Ajax-driven Shopping Cart with PHP and Prototype
by Chris Cornutt January 26, 2007 @ 07:46:00
On Developer.com, Jason Gilmore has posted This new tutorial that steps you through the creation of an ajax-enabled shopping cart that combines PHP and Prototype.
In the latest installment of this ongoing PHP series, I'll show you how to build a shopping cart using PHP, session handling, and the Prototype JavaScript library (introduced in an earlier installment). The cart allows users to add and delete products from the cart, as well as change cart quantities. And of course, the interaction is seemingly instantaneous, allowing for the user to continue shopping without waiting for the page to reload.
He creates the database table first (bottom up approach), then moves to the PHP code to handle the request/responses for the shopping cart, and with a little bit of session magic to connect the cart to the user and the Prototype tossed in, the cart is complete.
voice your opinion now!
prototype ajax shoppingcart products database prototype ajax shoppingcart products database
|
Community Events
Don't see your event here? Let us know!
|