uc_stock_adjust

Function uc_stock_adjust() in uc_stock.module:

<?php
  uc_stock_adjust
($sku, $qty)
?>


Description:

This function adjust a particular product SKU by a certain value (a positive integer will add to stock, a negative integer will remove from stock).

Parameters:

$sku - The product SKU that will have its stock level adjusted
$qty - The quantity to add to the stock level

Return value:
No return value.

Example:

<?php
 
//remove 4 units from the stock of MODEL-XX
 
uc_stock_adjust('MODEL-XX', -4);
?>