Location: PHPKode > projects > Caleb's Code > Cafe_Cart/cart.php
<?
$ModName = basename( dirname( __FILE__ ) );
if(!include_once("modules/$ModName/public/init.inc.php")) die("Initialization Failed");

if($cpop == "checkout"): 
    checkOut();
else:
    include_once("header.php");
    OpenTable();
    switch($cpop)
    {
        default:
            print viewCart();
        break;
        case "addProduct":
            print addProduct($product_id,$quantity,$size);
            print viewCart();
        break;
        case "updateProduct":
            print updateProduct($product_id,$quantity,$size);
            print viewCart();
        break;
        case "deleteProduct":
            print deleteProduct($product_id,$size);
            print viewCart();
        break;
        case "checkout":
            checkOut();
        break;
        case "thankyou":
            printThanks();
        break;
    }
    include_once("footer.php");
endif;
?>
Return current item: Caleb's Code