UC Check Stock Before Cart

Contrib type: 
Module
Status: 
Initial upload
Moderation: 
Not ready for moderation

Downloads

Latest version: 
6.x-1
Compatibility: 
Ubercart 2.x

Checks the stock level for the attribute combination the user has selected before adding the product to the cart.

If the quantity is higher than the available stock the form errors with a helpful message.

Handles:

Products with no attributes
Products with 1 attribute
products with multiple attributes (required and optional)

I don't know how much use this will be as a module or even if it's duplicated... perhaps someone could tell me.

I need it on a regular basis as I don't know of another way of achieving this.


PreviewAttachmentSize
uc_check_stock_before_cart.zip1.15 KB
Stockshark's picture
Offline
Joined: 09/06/2011
Juice: 3
A little change in the info file

Hi and thanks for the contributed module.

With the original info file uc_check_stock_before_cart is located in the modules node in other.

This changes are just to insert the module into the Ubercart extra package and adding the version number:

Save this lines in: uc_check_stock_before_cart.info

; $Id$
name = Check Stock Before Cart
description = Checks the stock levels of the attributes selected before adding the product to the cart.
version = "6.x-1.0"
core = 6.x
package = "Ubercart - extra"
project = "ubercart"
datestamp = "1320511440"

Enjoy!