Jump to content

Hide out of stock products, when stock is in attributes


Recommended Posts

Hi,

I have a problem with our store,

 

We are using an ERP to upload all our products into prestashop, they are all simple products, but the stock is added to the product attributes "sizes", the actual product has stock 0.

 

The problem comes when all sizes reach "0" stock. The products are still beeing displayed in the product list.

I need an {if} conditional that intead of checking the stock for the product, checks the stock in the attributes.

 

Can someone help me?

 

thanks!

Link to comment
Share on other sites

  • 2 weeks later...

Let me explain a little more, this is the way my products are entered:

 

- PRODUCT 1 (stock 0

- Product 1 size S (stock 20)

- Product 1 size M (stock 20)

- Product 1 size L (stock 20)

- Product 1 size XL (stock 20)

 

- PRODUCT 2 (stock 0)

- Product 2 size S (stock 10)

- Product 2 size M (stock 10)

- Product 2 size L (stock 15)

- Product 2 size XL (stock 20)

 

I need to hide them when stock is 0 in the atributes convinations not in the product.

Any ideas?

 

Thanks

Link to comment
Share on other sites

Let me explain a little more, this is the way my products are entered:

 

- PRODUCT 1 (stock 0

- Product 1 size S (stock 20)

- Product 1 size M (stock 20)

- Product 1 size L (stock 20)

- Product 1 size XL (stock 20)

 

- PRODUCT 2 (stock 0)

- Product 2 size S (stock 10)

- Product 2 size M (stock 10)

- Product 2 size L (stock 15)

- Product 2 size XL (stock 20)

 

I need to hide them when stock is 0 in the atributes convinations not in the product.

Any ideas?

 

Thanks

no one? :(

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...

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...