You are here

function uc_product_get_cost in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_product/uc_product.module \uc_product_get_cost()
  2. 7.3 uc_product/uc_product.module \uc_product_get_cost()

Gets 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 1733
The product module for Ubercart.

Code

function uc_product_get_cost($node_id) {
  $product = node_load($node_id);
  return $product->cost;
}