'`percent`',
];
} /**
* @return string
*/
private function getPriceSwitchColumns() { $template = 'IFNULL(customerPrice.%s, defaultPrice.%s) as %s';
$switch =
[];
foreach ($this->
getPriceColumns() as $column) { $switch[] =
sprintf($template,
$column,
$column,
$column);
} $switch[] = 'defaultPrice.articleID as product_id';
$switch[] = 'defaultPrice.articledetailsID as variant_id';
return implode(',',
$switch);
} /**
* Get the columns for the price group prices.
*
* @return string
*/