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

Bagisto

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

Please tell me the best way how can customization admin and shop controller and route?

Knowledge Base
2
8
682
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.
  • Z
    zainawan99 last edited by 2 Nov 2020, 05:03

    Please tell me the best way how can customization admin and shop controller and route?

    1 Reply Last reply Reply Quote 0
    • V
      vishalK last edited by 2 Nov 2020, 14:07

      Hi @zainawan99
      You can customise controller by modifying code according to you in the respected file but this modifications will be removed if you update bagisto in future.
      The best way add any custom functionality is by package creation. You can learn package development through our documentation:
      https://devdocs.bagisto.com/1.x/packages/

      Thanks!

      Z 1 Reply Last reply 2 Nov 2020, 14:34 Reply Quote 0
      • Z
        zainawan99 @vishalK last edited by 2 Nov 2020, 14:34

        @vishalK hi
        same as model, view, migrations and all other functionality create a new package?

        1 Reply Last reply Reply Quote 0
        • V
          vishalK last edited by vishalK 3 Nov 2020, 05:57 3 Nov 2020, 05:55

          Hi @zainawan99
          Model, view, migration, etc... are the parts of packages you can easily implement any kind of functionality using these. Packages work as an extension or plugin in Bagisto.
          Thanks!

          Z 1 Reply Last reply 3 Nov 2020, 07:41 Reply Quote 0
          • Z
            zainawan99 @vishalK last edited by 3 Nov 2020, 07:41

            @vishalK but my question, I m override a model view, migration without package
            second, create a new package then override all functionality

            1 Reply Last reply Reply Quote 0
            • V
              vishalK last edited by 3 Nov 2020, 14:18

              Hi @zainawan99
              Both ways are valid, but if you override without creating package than all your custom code will be removed whenever you update Bagisto and if you create package than all your code is safe inside your package only need to check the compatibility issues on update.

              We suggest you to go with the package creation method.
              Thanks !

              Z 1 Reply Last reply 3 Nov 2020, 14:58 Reply Quote 0
              • Z
                zainawan99 @vishalK last edited by 3 Nov 2020, 14:58

                @vishalK last thing I m shop and admin theme override. (resources\views\vendor\admin) admin theme and (resources\views\vendor\custom-theme) shop theme this way view override best or not
                same as style and javascript (public/admin/assets/) admin theme assets and (public/custom-theme/assets/) shop theme

                1 Reply Last reply Reply Quote 0
                • V
                  vishalK last edited by 5 Nov 2020, 13:26

                  Hi @zainawan99
                  Yes, you can override both admin theme and shop theme using this way and this is also the best way and if you want to create a new theme kindly go through our documentation:
                  https://devdocs.bagisto.com/1.x/themes/

                  Thanks!

                  1 Reply Last reply Reply Quote 1
                  3 out of 8
                  • First post
                    3/8
                    Last post