I did a clean install ( j2.5.4 + VM2.0.6 ) with sample data
Hand Shovel and Ladder have a child products but isn't a good samples I think
Hand Shovel use "Automatic Child Variant" but user still can buy parent product ( parent is displayed inside combo )
Ladder use a new "Parent & Child Products" function but don't display any option (?) in product details
I tried to use a "Custom Field Type > Plug-ins > Stockable Variant" with same result : any option (?) in product details except if I set Cart Attribute::Yes to show "Plug-in Options" (?) in a combo
Well ... I hope I'm doing something wrong or the new VM2 logical don't make any sense ...
The same way as display child products in "Latest Products" is a core feature (?) in administrator/components/com_virtuemart/models/product.php
I changed ( around line 355 )
case 'latest':
$date = JFactory::getDate( time()-(60*60*24*7) ); //Set on a week, maybe make that configurable
$dateSql = $date->toMySQL();
$where[] = 'p.`modified_on` > "'.$dateSql.'" ';
$orderBy = 'ORDER BY p.`modified_on`';
$this->filter_order_Dir = 'DESC';
break;
for
case 'latest':
$date = JFactory::getDate( time()-(60*60*24*30) ); //Set on a week, maybe make that configurable - set on a month
$dateSql = $date->toMySQL();
$where[] = 'p.`modified_on` > "'.$dateSql.'" AND p.product_parent_id = 0'; // select only parents
$orderBy = 'ORDER BY p.`modified_on`';
$this->filter_order_Dir = 'DESC';
break;
I'm still looking for solution for child products. I can't imagine any shop working without this.
Thanks for help ...
... and sorry for bad english
Marco
Hi, what options are you trying to input?
Do you need to keep track of stock?