This Function Has Been Available Since:|
(AFCommerce v 2.1, Functions v 1.1)
Calculates the total weight of all products in the current user's basket.
float = afc_get_basket_product_weight (id)
This function calculates the total weight for all products in the current user's shopping basket. This function will multiply their current quantity by the weight of each product and add them together to calculate the total weight for their order.
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 the total weight of all products in the current user's shopping cart basket.
Open Source: Yes
There are currently no examples for this function.
Back to Functions List