after you include your class you need to create an object of the class so you can use it. then you can call the methods in the class. A method is a function in a class. example below...
include_once "class/class.cart.php"; //includes the class
$obj_cart = new cart(); //creates object from cart class.
echo $obj_cart->get_cart_total($cart_id); //calls method and returns cart total
To find the class and method names go into the class file and look for this.
class cart {
function get_cart_total($id) {
//php code
return $your_value;
}
function create_cart($id) {
//php code
return $your_value;
}
}
your class name is 'cart'. the methods are 'get_cart_total' and 'create_cart'. $id is the variable you have to pass to the method.