Bagisto Forum

    Bagisto

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

    Overriding Package

    General Discussion
    3
    4
    414
    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.
    • P
      porl last edited by

      Hi all.

      Is there a way that I can override an entire package? For my use case I essentially want to heavily customise the CMS package.

      Rather than modifying it in place (risking losing changes on an update) is there a way I can essentially copy it into my own package directory and tell bagisto/composer etc. not to use the original?

      Obviously I can go in and modify the autoload stuff to stop loading the original one and load mine in place, but again, on an update I would have to remember to go back and make all those modifications again.

      Is there a more clean way I can tell the system that my "CMS" package overrides the Webkul one (or use some config to disable the Webkul one)?

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

        ofcourse you can override it, you just need to create a new package https://devdocs.bagisto.com/1.x/packages/create_package.html

        Kind regards,
        Glenn Hermans

        Manager Bagisto Europe
        info@bagisto.eu

        1 Reply Last reply Reply Quote 0
        • P
          porl last edited by

          If I create a new package with the same name (CMS) does that disable the original one in the Webkul directory?

          1 Reply Last reply Reply Quote 0
          • V
            vishalK last edited by

            Hi @porl
            Sorry but it did not override the default package you have to make changes in composer and other file to do so and it will be removed whenever you update Bagisto.
            Thanks!

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