Contrib type:
ModuleStatus:
Initial uploadCompatibility:
Ubercart Alpha 8Allows you to set a maximum number that can be ordered, individually by product. Currently a blank value allows for no maximum, and any maximum value set applies regardless of optional attributes (the total number is compared to the maximum).
This was developed to work as the opposite of Product Minimum for Checkout, and draws heavily on its original structure:
http://www.ubercart.org/contrib/274
Also, critical components of the code were drawn from this discussion:
http://www.ubercart.org/forum/support/540/online_drugstore_shipping_rest...
| Attachment | Size |
|---|---|
| uc_product_max.tar | 30 KB |



This is max item
Could it be max amount ? IS it possible to add the option for the max amount ?
Re: This is max item
I'm not sure I understand the distinction you're making. Can you elaborate?
Added Views field
Hello,
I posted this in the forum before seeing the module had been added to the contribution.
I've added the product max field to use it in Views
It permits to add "Product: max per order" field a view.
function uc_product_max_views_tables(){$tables['uc_product_max'] = array(
'name' => 'uc_product_max',
'join' => array(
'left' => array(
'table' => 'node',
'field' => 'nid',
),
'right' => array(
'field' => 'nid',
),
),
'fields' => array(
'product_max' => array(
'name' => 'Product: Max per order',
'help' => t(''),
'field' => 'product_max',
),
),
);
return $tables;
}
This is simply added to the
uc_product_max.modulefile.D6?
Is there a Drupal 6/Ubercart 2 version of this module?
Thanks.