Exemplo n.º 1
0
     $cfg = new sc_configuration();
     $usestdprod = $cfg->get("usestdproduct");
     if ($usestdprod == 1) {
         AddStandard();
     }
     $mainframe->redirect("index.php?option=com_caddy&action=showcart&Itemid={$Itemid}");
     break;
 case "emptycart":
     $cart2 = new cart2();
     $cart2->destroyCart();
     $mainframe->redirect("index.php?option=com_caddy&action=showcart&Itemid={$Itemid}");
     break;
 case "showcart":
     $cart2 = new cart2();
     $cart = $cart2->readCart();
     display::showCart($cart);
     break;
 case "showcartxml":
     $cart2 = new cart2();
     $cart = $cart2->dumpCartXML();
     break;
 case "view_prod":
     $a = new product();
     $alist = $a->getPublishedProducts();
     display::view_prod($alist);
     break;
 case "checkout":
     $cart = new cart2();
     $cfg = new sc_configuration();
     $mintocheckout = $cfg->get("mincheckout");
     // check for minimum amount before checkout, default = 0 => any amount is enough