Jump to content

DO NOT sell item below 2 units in stock


zenerry

Recommended Posts

Hi everyone,

I'm searching how to change an strange requirement but I'm really in a hurry with it.

My client would like to sell online only his products that has more than 2 units in stock for combination.

Let me try to explain an example:

He has 2 sizes and 2 colors, and from the first combination only has 1 piece in stock. He needs to sell online all of them exept this first combination.

This may sound quite weird but sometimes he has problems with this last unit.

 

I found some interesting terms to edit in productController.php and cartController.php with no luck with them.

I'd like to set something like when id_product_attribute or productQuantity stock is < 2 --- product set automatically out-of-stock,  as it really happens whe stock reaches "0".

 

Hope somebody could help me because it's really complicated for me to find this solution.

Thanks in advanced.

Edited by zenerry (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...