Jump to content

How to Sort base on "on_sale" status?


Recommended Posts

How to Sort base on "on_sale" status? , i try many tricks before ..

 

I use prestashop 1.5.6

 

the product will only show if it was on sale.. 

 

i have tried  to add 

 

<option value="on_sale:desc" {if $orderby eq 'on_sale' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='On Sale'}</option>

 

and add this 

 

$order_by_values = array(0 => 'name', 1 => 'price', 2 => 'date_add', 3 => 'date_upd', 4 => 'position', 5 => 'manufacturer_name', 6 => 'quantity', 7 => 'reference', 8=> 'on_sale');
 
on public function productSort() at FrontController.php
 
but when i sort base on On Sale, its shows "No new products."
 
 
 
i really desperate finding ways to do this. 
 
Thank you
Edited by genz10 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...