福帅实业 ecshop 价格排序 search.php

search.php

/*原版排序规则*/
// $default_sort_order_method = $_CFG[‘sort_order_method’] == ‘0’ ? ‘DESC’ : ‘ASC’;
// $default_sort_order_type = $_CFG[‘sort_order_type’] == ‘0’ ? ‘goods_id’ : ($_CFG[‘sort_order_type’] == ‘1’ ? ‘shop_price’ : ‘last_update’);
/*小李修改排序规则-价格默认从低到高*/

$default_sort_order_method = $_CFG[‘sort_order_method’] == ‘0’ ? ‘ASC’ : ‘DESC’;
$default_sort_order_type = $_CFG[‘sort_order_type’] == ‘0’ ? ‘shop_price’ : ($_CFG[‘sort_order_type’] == ‘1’ ? ‘shop_price’ : ‘last_update’);

 

category.php

/*原版排序规则*/
// $default_sort_order_method = $_CFG[‘sort_order_method’] == ‘0’ ? ‘DESC’ : ‘ASC’;
// $default_sort_order_type = $_CFG[‘sort_order_type’] == ‘0’ ? ‘goods_id’ : ($_CFG[‘sort_order_type’] == ‘1’ ? ‘shop_price’ : ‘last_update’);

/*小李修改排序规则-价格默认从低到高*/
$default_sort_order_method = $_CFG[‘sort_order_method’] == ‘0’ ? ‘ASC’ : ‘DESC’;
$default_sort_order_type = $_CFG[‘sort_order_type’] == ‘0’ ? ‘shop_price’ : ($_CFG[‘sort_order_type’] == ‘1’ ? ‘shop_price’ : ‘last_update’);

 

brand.php

// $default_sort_order_method = $_CFG[‘sort_order_method’] == ‘0’ ? ‘DESC’ : ‘ASC’;
// $default_sort_order_type = $_CFG[‘sort_order_type’] == ‘0’ ? ‘goods_id’ : ($_CFG[‘sort_order_type’] == ‘1’ ? ‘shop_price’ : ‘last_update’);

$default_sort_order_method = $_CFG[‘sort_order_method’] == ‘0’ ? ‘ASC’ : ‘DESC’;
$default_sort_order_type = $_CFG[‘sort_order_type’] == ‘0’ ? ‘shop_price’ : ($_CFG[‘sort_order_type’] == ‘1’ ? ‘shop_price’ : ‘last_update’);