hi, i have question about query..
i want sorting product by average rating...
function for get average rating:
fn_discussion_get_average_object_rating($object_id, $object_type)
how change fn_get_product_data for sort by average rating?
hi, i have question about query..
i want sorting product by average rating...
function for get average rating:
fn_discussion_get_average_object_rating($object_id, $object_type)
how change fn_get_product_data for sort by average rating?
i want sort product by average rating in category product page..
There is no easy way to do it. It is required to create quite complex sql request when products are retrieved from database
There is no easy way to do it. It is required to create quite complex sql request when products are retrieved from database
hi, tanks for answer
hi, tanks for answer
I did this after receiving the product ...Products are stored in the array and have a key named average_rating.I did this using sort array functions.
But it will not work with pagination
Use the 'get_products' modify the fields and the sorting.