Bagisto Forum

    Bagisto

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

    Get the product data using the product id inside bagisto?

    Knowledge Base
    2
    3
    644
    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.
    • D
      divang last edited by

      How to get the all the related to the product with the certain id?

      Is it possible to get the product data by using its id(Including the seller id), If yes then how is it possible?

      If there is a doc for developers that will be great for the community using and customizing Bagisto.

      ashish2409 1 Reply Last reply Reply Quote 0
      • ashish2409
        ashish2409 last edited by

        Hello Divang,
        you may follow the below link for the solution of your concern. If You have the product ID, you can fetch the details from there.
        In this, already the relations are made for the related products in product flat model, by which you can get all the related product information.

        Link - https://github.com/bagisto/bagisto/blob/ddc3b302ef38d58df3dbd51900974c20c7502fa4/packages/Webkul/Product/src/Models/ProductFlat.php#L268

        1 Reply Last reply Reply Quote 0
        • ashish2409
          ashish2409 @divang last edited by

          @divang
          You may follow the below link for the solution of your concern. If You have the product ID, you can fetch the details from there.

          In this, already the relations are made for the related products in product flat model, by which you can get all the related product information.

          Link - https://github.com/bagisto/bagisto/blob/ddc3b302ef38d58df3dbd51900974c20c7502fa4/packages/Webkul/Product/src/Models/ProductFlat.php#L268

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