VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: brilliantimpact on September 24, 2012, 23:10:58 PM

Title: Display child stock level on child product page
Post by: brilliantimpact on September 24, 2012, 23:10:58 PM
I have a child product that is a stockable variant type.  I need the product to disappear if it is out of stock, the problem I am having is that it is pulling the stock level of it's parent (when I use the code from the forum link below), and when I change the configuration to hide the product if it is out of stock the product is hidden even though the parent and child show they have stock available.

I'm not sure what I have done wrong here.  Any help would be much appreciated! 

https://forum.virtuemart.net/index.php?topic=102087.new#new