Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

limited number of products


calbright

Recommended Posts

Hi,

 

There is an easy way if you don`t use the stock control.

You can set the limit by product as with available stock of each item.

Then, on admin, configurations, stock, set control stock level to true and subtract stock and allow checkout to false.

You can even customise the message that appears on chart on shopping_cart.php.

 

By the way, if you use de stock controls, so a modification has to be done, but I don`t know how, but would also like to hear about.

 

H.

Link to comment
Share on other sites

I don't know about Hermetica's suggestion.

 

Yes, that would work, but it seems to me you would have to go and reset the quantity available every time a sale is made.

Additionally, that would only prevent a customer from purchasing a maximum amount of ONE product. They could continue to purchase other products (if I am readng the post right in that you want to limit the TOTAL number of products purchased, and not just a number of any single product).

 

How to fix your problem though, I know not.

Perhaps someone versed in php could tell you how to set a maximum number of products that can be stored at any one time in a users shopping cart.

Limiting the number of products the shopping cart can hold would achieve what you want.

Link to comment
Share on other sites

;) Allowing Subtract Stock to false and it will be not necessary to reset the value everytime.

This only works if you do not need to control your stock using osC features, as my shope do not.

 

Regards.

Link to comment
Share on other sites

Oops, I just realized i asked my question poorly. Sorry guys. I meant to ask if there is a way to limit the number of items *for sale*. So, if I sell books, I'd only be able to have 50 titles for sale at any given time, if that was my pre-set limit.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...