function uc_product_get_cost in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_product/uc_product.module \uc_product_get_cost()
- 7.3 uc_product/uc_product.module \uc_product_get_cost()
Get the cost of a product node.
Parameters
$node_id: nid of the selected node
Return value
float - cost
File
- uc_product/
uc_product.module, line 2503 - The product module for Ubercart.
Code
function uc_product_get_cost($node_id) {
$product = node_load($node_id);
return $product->cost;
}