uc_stock_level

Function uc_stock_level() in uc_stock.module:

<?php
  uc_stock_level
($sku)
?>


Description:

This function returns the stock level of a given product SKU.

Parameters:

$sku - The SKU or model of the product to get the stock level of.

Return value:

The stock level of the particular SKU


Example:

<?php
  $stock
= uc_stock_level('MODEL-XX');
  if (
$stock > 0) {
    ...
  }
?>