News:

Support the VirtueMart project and become a member

Main Menu

Sort products by child prices

Started by OriyanJ, August 22, 2016, 14:02:14 PM

Previous topic - Next topic

OriyanJ

When I set the ordering to price, the order is set by parent. Is there a way to set order by children's prices/dates?

I've found this at product's model -

case 'product_price':
$orderBy = ' ORDER BY `product_price` '.$filterOrderDir.', `virtuemart_product_id` '.$filterOrderDir;
$ff_select_price = ' , IF(pp.override, pp.product_override_price, pp.product_price) as product_price ';
$joinPrice = TRUE;

break;
VirtueMart 3.2.2