php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software

afc_get_all_basket_information

Back to Functions List
This Function Has Been Available Since:
(AFCommerce v 2.1,     Functions v 1.1)

Shows ALL information in the current user's shopping basket, basket session information, and all information about the current member.

Description

array = afc_get_all_basket_information (id)

This function will return an array with ALL the information in the current visitor's shopping basket session, including information about the member and all products inside their basket. This function does everything for you, and gets every piece of information available about the current user's 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). So at any time that you need all information about the current user, simply call this function and all the information about their session will be returned in an array.

This function simply calls the following AFCommerce functions and merges them all in to one array:
afc_get_basket_product_total
afc_get_basket_product_weight
afc_get_basket_number_of_items
afc_get_member_info
afc_get_this_basket_row


Parameters

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 information about the current user.

Open Source: Yes

Paul's Examples


$basketarray = afc_get_all_basket_information ($id);
$memberid = $basketarray['memberid'];
$taxcost = $basketarray['taxcost'];
$totalprice = $basketarray['total'];
$productweight = $basketarray['weight'];
$member_firstname = $basketarray['firstname'];


Back to Functions List




afc_get_all_basket_information

There are currently no posts for this topic.











AFCommerce Documentation


High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
www.afcommerce.com
AFCommerce Website
And Cart Builder