• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Is there any API route to get To-rated and best sellers products in Bagisto 2.x ?

General Discussion
3
7
483
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    hossein last edited by 6 Mar 2024, 18:51

    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.

    admin 1 Reply Last reply 7 Mar 2024, 04:49 Reply Quote 0
    • admin
      admin @hossein last edited by 7 Mar 2024, 04:49

      @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.

      H 1 Reply Last reply 7 Mar 2024, 09:48 Reply Quote 0
      • H
        hossein @admin last edited by 7 Mar 2024, 09:48

        @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?

        1 Reply Last reply Reply Quote 0
        • Rishabh-Webkul
          Rishabh-Webkul last edited by 7 Mar 2024, 12:57

          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..!!

          H 1 Reply Last reply 7 Mar 2024, 13:58 Reply Quote 0
          • H
            hossein @Rishabh-Webkul last edited by 7 Mar 2024, 13:58

            @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?

            H 1 Reply Last reply 7 Mar 2024, 13:59 Reply Quote 0
            • H
              hossein @hossein last edited by 7 Mar 2024, 13:59

              @hossein at the moment product attribute is available for a single product, but I need to have an attribute in products list

              H 1 Reply Last reply 9 Mar 2024, 06:50 Reply Quote 0
              • H
                hossein @hossein last edited by 9 Mar 2024, 06:50

                @hossein Hi @Rishabh-Webkul could you please check this.
                Thanks

                1 Reply Last reply Reply Quote 0
                5 out of 7
                • First post
                  5/7
                  Last post