Location: PHPKode > scripts > Shopping Cart AJAX > shopping-cart-ajax/shoppingcartAjax/products.php
<?php
/*************************************************************
  Filename : products.php
  Author   : Shaik Thasnim
  Date     : 14/10/09
  Purpose  : To perfom add,update and delete operations
 **************************************************************/
error_reporting(E_ALL);
//include config file
include_once('includes/config.php');
include_once(CLASSES.'products.cls.php');
switch($_REQUEST['action']){	
	case 'addproducts':
	$obj = new Products;
	$obj->addProducts();
	break;
	case 'updateproducts':
	$obj = new Products;
	$obj->updateQnty();
	break;
	case 'delproducts':
	$obj = new Products;
	$obj->delProduct();
	break;
	case 'showcart':
	$obj = new Products;
	$obj->showCart();		
	break;
	default:		
	break;
}
?>

Return current item: Shopping Cart AJAX