i making website in opencart. modified search query. default if search 'apple iphone 6', result shown opencart 'apple iphone 6', 'apple iphone 6 plus',etc (say total 20 result).
but modified query such way match exact text in search bar.
so 'apple iphone 6' search produce 1 result. problem in bottom search result number same in default. still showing
showing 1 10 of 20 (2 pages)
but there 1 result , second page of pagination blank.
i modify filter according our requirement has same problem.
so can modify result number.
as ved pandya said in comment:
have modified sql query returns total number of products?which used pagination.?
based on said, have modified function getproducts need modify function gettotalproducts (the 1 used pagination)
n.b: when ever see pagination in page in oc, search line in corresponding controller:
$pagination->total = xxx
, find xxx initialized
Comments
Post a Comment