Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How to inform of the product quantity on the shopping cart?


Recommended Posts

Hi everyone,


I've been searching for a very specific contribution in the Contributions Oscommerce page but didn't found what I was looking for.


Note that I've disabled the quantity information on the product listing.

Basically, what I need is that when you are in the shopping cart and you type a quantity in the "Quantity" field box and you then click on "Update shopping cart" the system checks the stock, and if the stock is not enough then a message like this appears:


"Sorry, we only have 14 units in stock of this product. Type a lower quantity and click on the Update button"


Do you know any contribution that does something similar?



Link to comment
Share on other sites

There is something already built in as far as I can recall. If you wanted something better, you could probably create a piece of javascript to check the available amount, and if the items that they are trying to buy is greater than, then show a message and default to the largest available amount.


That should be fairly easy to solve.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...