VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: OriyanJ on August 22, 2016, 14:02:14 PM

Title: Sort products by child prices
Post by: OriyanJ on August 22, 2016, 14:02:14 PM
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;