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
    444
    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

      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 Reply Quote 0
      • admin
        admin @hossein last edited by

        @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 Reply Quote 0
        • H
          hossein @admin last edited by

          @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

            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 Reply Quote 0
            • H
              hossein @Rishabh-Webkul last edited by

              @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 Reply Quote 0
              • H
                hossein @hossein last edited by

                @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 Reply Quote 0
                • H
                  hossein @hossein last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post