Bagisto Forum

    Bagisto

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

    Issue with configurable product variants creation

    General Discussion
    2
    5
    1192
    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

      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

        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

          Hi @devansh-webkul .

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

          1 Reply Last reply Reply Quote 0
          • K
            k3rnel last edited by

            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

              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
              • First post
                Last post