VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: BMWdejf on May 28, 2016, 16:37:22 PM

Title: how to resolve parent stock = sum descendant
Post by: BMWdejf on May 28, 2016, 16:37:22 PM
Hi all,

I need help you.

I have eshop in virtuemart 2.6.16.

The problem is that the parent product appears to me as "not in stock" but they are the descendants of "stock".

Is there any way to indicate that the stock if it is shown on a child product?

I need to somehow automate. This means that when a descendant sold out and is no longer in stock, so for parents objedví status "not in stock"

Thank you for any answers.
Title: Re: how to resolve parent stock = sum descendant
Post by: Milbo on May 28, 2016, 22:28:19 PM
that would be wrong. As long variants are in stock, the parent should be displayed. There are also different modes available in the config, you may play with it.
Title: Re: how to resolve parent stock = sum descendant
Post by: BMWdejf on May 30, 2016, 00:54:44 AM
Quote from: Milbo on May 28, 2016, 22:28:19 PM
that would be wrong. As long variants are in stock, the parent should be displayed. There are also different modes available in the config, you may play with it.

I'm soory, but I don't understand. Could you explain it in more detail?
Title: Re: how to resolve parent stock = sum descendant
Post by: Studio 42 on May 30, 2016, 01:13:27 AM
In Virtuemart config, for add to cart, you have different modes, some are checking the child stock( or not). So you need to see what is the best for you.
Title: Re: how to resolve parent stock = sum descendant
Post by: lindapowers on May 30, 2016, 07:04:06 AM
I just tested a parent/child product and as long as there is a child with stock the parent displays "in stock". If we set all childs with stock 0 the parent shows "no stock" so that seems automated already.

This works for us in VM 3.0.14

The custom field of generic child variant we use it as:

display parent NO
parent ordeable NO

In VM config/ShopFront - Action when a Product is Out of Stock set "Displays 'Notify Me' instead of 'Add To Cart' button"