需要在类别页面显示最低价格的产品
$category_data = Tygh::$app['view']->getTemplateVars('category_data');
$product = Tygh::$app['view']->getTemplateVars('product');
if (strlen(trim($category_data['ab__custom_category_h1']))) {
if (is_callable('fn_ab__emd_replace_placeholders')) {
$category_data['ab__custom_category_h1'] = fn_ab__emd_replace_placeholders($category_data['ab__custom_category_h1'], "{$controller}.{$mode}");
}
$category_data['ab__ch1_origin_category'] = $category_data['category'];
$category_data['category'] = trim($category_data['ab__custom_category_h1']);
$product['list_price'] = trim($product['list_price']);
您需要只显示最低价格值?