News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Sord (for Sorting) not working in API

Started by Rawinder Dhillon, January 06, 2021, 10:41:24 AM

Previous topic - Next topic

Rawinder Dhillon

Hi,
while fetching products
im using these two options
first is keyword
2nd is category_id

with rt=a/product/filter

when i search with keyword
sidx=price
sord=DESC or ASC
it is working perfectly

but when instead of keyword i use category_id
with same options

then there will no sorting by price.
products are sorted by product id

im i doing something wrong ?
Thx 

abolabo

try to use
sidx=p.price
instead sidx=price.
We made improvement in current dev version and it will works both way

Rawinder Dhillon


Rawinder Dhillon

A similar problem ith pto & pfrom

while fetching products with keyword pto & pfrom works
means shows products from this range


but when instead of keyword i use category_id
with same options

then there will no filtering based on price range .


will you plz check this one ?

abolabo


Forum Rules Code of conduct
AbanteCart.com 2010 -