cs-cart 获得 tpl 类别中价格最低的产品

问题描述 投票:0回答:1

需要在类别页面显示最低价格的产品

$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']);

cs-cart
1个回答
0
投票

您需要只显示最低价格值?

© www.soinside.com 2019 - 2024. All rights reserved.