See also http://www.ubercart.org/contrib/132 ...
Fixes availability of button "Add to cart" for product node
when stock level of this product == amount of this product in cart.
You can simply find this strings in uc_inventory_api.module :
if(!uc_inventory_api_can_add($product->model, $form['qty']['#value']))
{
$form['submit']['#disabled'] = TRUE;
$form['submit']['#value'] = t('Out of stock');
}And replace it with this one :
if(!uc_inventory_api_can_add($product->model, $form['qty']['#value'] + 1))
{
$form['submit']['#disabled'] = TRUE;
$form['submit']['#value'] = t('Out of stock');
}| Attachment | Size |
|---|---|
| uc_inventory_api_v11fix.zip | 8.28 KB |
