php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software


Back to Functions List
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.

Return Values

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

Paul's Examples

$basketarray = afc_get_this_basket_row ($id);
$memberid = $basketarray['memberid'];
$taxcost = $basketarray['taxcost'];

Back to Functions List


There are currently no posts for this topic.

AFCommerce Documentation

High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
AFCommerce Website
And Cart Builder