VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: Topknotch on October 10, 2018, 10:51:01 am

Title: Child/Multivariants
Post by: Topknotch on October 10, 2018, 10:51:01 am
Hi,
I want to set the site to not display products that are out of stock. But I think if I set it to - 'Do not Display Product, if child products also out of stock' then if just one of the children is out of stock then the product will not display?
I want it to still show the products and if one of them is out of stock then to show 'notify me'

Is that possible?
Many thanks
Title: Re: Child/Multivariants
Post by: Studio 42 on October 10, 2018, 11:42:25 am
The system should only remove children who are not in stock in the list, but I have never checked the code in depth because it use a strange logic.
I wrote own codes for multi-childs to have something simpler to manage.
Title: Re: Child/Multivariants
Post by: GJC Web Design on October 10, 2018, 12:07:55 pm
??

http://forum.virtuemart.net/index.php?topic=141100.msg496658#msg496658
Title: Re: Child/Multivariants
Post by: Studio 42 on October 10, 2018, 13:00:14 pm
@GJC Web Design
I know you can modify the code, but it's not the only problem i had to solve, i do not code for nothing
Title: Re: Child/Multivariants
Post by: GJC Web Design on October 10, 2018, 13:23:38 pm
Hi Patrick,

post was meant for Topnotch

I agree .. out of the box I have found no way to get a "logical" display of parent-child stock relationships
Title: Re: Child/Multivariants
Post by: Topknotch on October 15, 2018, 17:35:55 pm
thanks guys, odd that there is no in built option.
Especially as the demo for the variants, shows t-shirts as an example. Its pretty obvious that if you are out of stock for one color that you would still want to sell the other colors?!

What issues does the code changing that GJC mentions cause ?
Thanks
Title: Re: Child/Multivariants
Post by: GJC Web Design on October 15, 2018, 21:07:31 pm
Quote
What issues does the code changing that GJC mentions cause ?

????  It SOLVES your issue