VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: positronio on April 25, 2017, 15:17:12 PM

Title: Product drop down child out of stock
Post by: positronio on April 25, 2017, 15:17:12 PM
Hello I use virtuemart 3.2. In the drop down menu using variants I would like the child products that are not in stock to have a red font color or be inactive. I think this is essential for virtuemart. Can anyone guide me where is the php file that i should customize.
Title: Re: Product drop down child out of stock
Post by: GJC Web Design on April 26, 2017, 00:06:06 AM
think "type A' in   around components\com_virtuemart\sublayouts\customfield.php  ~ line 298

foreach ($uncatChildren as $k => $child) {

which forms the options for the select - over ride the file
Title: Re: Product drop down child out of stock
Post by: balai on April 28, 2017, 11:08:06 AM
Try also the Stockable Custom Fields plugin
https://breakdesigns.net/extensions/stockable-custom-fields

It has that feature built-in