Is there any API route to get To-rated and best sellers products in Bagisto 2.x ?
-
Hi @admin
Is there any API route to get To-rated and best sellers products in Bagisto 2.x ?
There is an api route that returns up-sell products which is selected by admin for a specific product, but we need to show "Top Rated" and "Best Seller" products in home page. I could not find any API so far. Could you please let me know?
Thanks. -
@hossein Are you using the bagisto multi-vendor marketplace module: https://bagisto.com/en/laravel-multi-vendor-marketplace/
Because the default version of Bagisto which is opensource is single vendor, not multi vendor; there are no sellers in opensource bagisto version.
-
@admin I'm using the opensource and single vendor, I need to show the products that were more popular and users have bought theme more than other products.
Is it available? -
Hello @hossein
Greetings of the day..!!
There is no API regarding this but you get all the products by this method in the core getAll()
Thanks & Regards..!!
-
@Rishabh-Webkul Thank you
I just used the /search url to show all products. I have another question about the products API, I need to get an attribute like color of product in this request :
http(s)://example.com/api/products?page=1
is there any param to get this?
If it's not available could you please let me know from which file I can add this functionality? -
@hossein at the moment product attribute is available for a single product, but I need to have an attribute in products list
-
@hossein Hi @Rishabh-Webkul could you please check this.
Thanks