News Feed
Jobs Feed
Sections




News Archive
PHPBuilder.com:
Developing a Ajax-driven Shopping Cart with PHP and Prototype, Part 2
May 05, 2008 @ 07:58:21

PHPBuilder.com has continued their series looking at building an Ajax-driven shopping cart with part two posted today (part one here). Last time they laid the PHP foundation for the example app, this time they add another layer - the Ajax functionality to manage the current contents of the cart.

Finally, a link to the shopping cart is provided, although you could just as easily have displayed the cart contents on the same page. For the sake of brevity I'll just show you how to integrate the add feature, and will leave the subtraction mechanism to you as an exercise.

The Ajax frontend calls a managecart.php backend file that calls addToCart and deleteFromCart based on which type of "task" is passed to it.

1 comment voice your opinion now!
shopping cart prototype tutorial ajax backend javascript


blog comments powered by Disqus

Similar Posts

PHPEveryday.com: Facebook API Tutorials

PHPBuilder.com: Ajax Edit in Place Using Prototype

phpRiot.com: Shortening URLs for goo.gl with Google's URL Shortener API

Lorna Mitchell: 9 Magic Methods in PHP

Tom Van Herreweghe's Blog: Running Zend Framework modules from a Phar file


Community Events











Don't see your event here?
Let us know!


interview language api opinion zendframework2 composer framework community example phpunit series database code development podcast release testing functional introduction application

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework