• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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 18 Jul 2022, 13:21

    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 19 Jul 2022, 08:16 Reply Quote 0
    • ashish2409
      ashish2409 last edited by 19 Jul 2022, 06:07

      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 19 Jul 2022, 08:16

        @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
        3 out of 3
        • First post
          3/3
          Last post