This Function Has Been Available Since:|
(AFCommerce v 2.1, Functions v 1.1)
string = afc_get_this_basket_row (id)
This function will return an array with all the information in the current visitor's shopping basket session. The id passed to this function is automatically available after dbinfo.php is called, which is at the top of each file (dbinfo is called in carttop.php). This id variable is the most important variable for this entire software, and this id number is the id number from the "basket" database table. So any time that you need all information from that particular row in the basket table, which will only be about the current user, simply call this function and all the information from this row will be returned in an array.
id (integer) - Anytime you see this variable being passed to a function, all you need to do is simply use the variable $id, which is automatically set for you when dbinfo.php is called.
Returns an array with all fields from the "basket" database table. This table is where most information about the current user's basket session is stored. This function does NOT return any information about the products in the user's basket.
Open Source: Yes
$basketarray = afc_get_this_basket_row ($id);
$memberid = $basketarray['memberid'];
$taxcost = $basketarray['taxcost'];
Back to Functions List