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

Bagisto

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

How is the product quantity in inventory is being saved to database?

Modules
2
4
423
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.
  • A
    acxy99 last edited by 9 Dec 2020, 14:38

    547eaf21-60a8-47eb-b7b9-9e44f2760f34-image.png

    I can't find where is this function is being used. Any one of you has known about this?

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 9 Dec 2020, 16:28

      Hi @acxy99,

      Product Inventory is a model. So we are updating the quantity attribute and saving by using the model method.

      1 Reply Last reply Reply Quote 0
      • A
        acxy99 last edited by 10 Dec 2020, 02:13

        @devansh-webkul said in How is the product quantity in inventory is being saved to database?:

        and saving by using the model metho

        @devansh-webkul this model method is invoked when the variable "inventories" is called?

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 10 Dec 2020, 11:32

          Hi @acxy99,

          Check line number 31 in your screenshot. It's already calling and you are already in ProductInventoryRepository.

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