Advertisement:

Author Topic: option of sort by for twitter theme  (Read 1036 times)

innoserv

  • Newbie
  • *
  • Posts: 45
option of sort by for twitter theme
« 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

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: option of sort by for twitter theme
« Reply #1 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 ?>

innoserv

  • Newbie
  • *
  • Posts: 45
Re: option of sort by for twitter theme
« Reply #2 on: April 21, 2014, 06:07:13 pm »
hello
thank you design for your help