Osclass forums

Support forums => Themes => Twitter => Topic started by: innoserv on April 16, 2014, 02:52:19 am

Title: option of sort by for twitter theme
Post by: innoserv on April 16, 2014, 02:52:19 am
hello friends i m looking how to add this option
sort by :
Newly listed
Lower price first
Higher price firstto
like modern theme


twitter theme
Title: Re: option of sort by for twitter theme
Post by: design on April 16, 2014, 04:17:10 am
 put this where you want it and style accordingly

Code: [Select]
<?php $orders osc_list_orders();
foreach($orders as $label => $params) {
    $orderType = ($params['iOrderType'] == 'asc') ? '0' '1'?>

<?php if(osc_search_order() == $params['sOrder'] && osc_search_order_type() == $orderType) { ?>
<a class="btn btn-default  active current btn-xs" href="<?php echo osc_update_search_url($params) ; ?>"><?php echo $label?></a>
<?php } else { ?>
<a class="btn btn-default btn-xs" href="<?php echo osc_update_search_url($params) ; ?>"><?php echo $label?></a>
<?php ?>
<?php if ($i != count($orders)-1) { ?>
<?php ?>
<?php $i++ ; ?>
<?php ?>
Title: Re: option of sort by for twitter theme
Post by: innoserv on April 21, 2014, 06:07:13 pm
hello
thank you design for your help