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

Bagisto

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

Issue with configurable product variants creation

General Discussion
2
5
1.2k
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.
  • K
    k3rnel last edited by k3rnel 23 Mar 2021, 12:13 23 Mar 2021, 07:40

    Hi guys. When creating a configurable product, how can I prevent variants from being generated automatically. Or, in other words, how can I override afterProductCreatedUpdated method?

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 23 Mar 2021, 13:09

      Hi @k3rnel,

      Check this file packages/Webkul/Product/src/Type/Configurable.php. You need to override this one.

      There is a create method in which it's calling createVariant.

      1 Reply Last reply Reply Quote 0
      • K
        k3rnel last edited by k3rnel 24 Mar 2021, 07:31 24 Mar 2021, 07:31

        Hi @devansh-webkul .

        How can I just overwrite Event Listener that responsible for creating variants?

        1 Reply Last reply Reply Quote 0
        • 8 days later
        • K
          k3rnel last edited by 1 Apr 2021, 10:01

          Hi @devansh-webkul .

          If you have time for my question, can you answer, please?

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by 5 Apr 2021, 04:06

            Hi @k3rnel,

            Sorry, for the late reply.

            Which one can you share with me the path of that event listener file?

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