Exemplo n.º 1
0
 public function Refresh($session = "")
 {
     $sr = new SleekShopRequest();
     $xml = $sr->get_cart($session);
     $xml = new SimpleXMLElement($xml);
     $cart = self::get_cart_array($xml);
     setcookie("cart", serialize($cart));
     return $cart;
 }