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

Bagisto

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

Overide admin view using custom package?

General Discussion
5
8
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
    karkiswapnil last edited by 16 Aug 2019, 06:58

    Is it possible to override the views in admin, by a view file in custom package?
    Dont know if its wierd but what i want to achieve is that when i add my custom package to any bagisto project some views on core packages also needs to be override.

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 19 Aug 2019, 07:13

      Hi @karkiswapnil

      Yes. You can override any of view file.

      You can read this one - https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto

      So you need to create a view file (In your package & follow same path structure as core 's view file consist ) & publish this file according to path of that suggested in above topic or core's view file has, in your package's service provider. Like

        $this->publishes([
                  __DIR__ . 'folder1/folder2/filename' => resource_path('views/vendor/shop/folder1/folder2/filename'),
              ]);
      

      Thanks

      C 1 Reply Last reply 28 Jul 2022, 08:53 Reply Quote 1
      • K
        karkiswapnil last edited by 19 Aug 2019, 08:19

        Thanks ill try this.

        1 Reply Last reply Reply Quote 0
        • K
          karkiswapnil last edited by 19 Aug 2019, 11:44

          hey can you give me an example? Replace folder1/folder2 with actual folder names. Thank you

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by 20 Aug 2019, 14:20

            Hi @karkiswapnil

            You can see this one -

             $this->publishes([
                        __DIR__ . '/../Resources/views/admin/catalog/products/edit.blade.php' => resource_path('views/vendor/admin/catalog/products/edit.blade.php'),
                    ]);
            

            We are overriding product's edit file.

            Thanks

            1 Reply Last reply Reply Quote 0
            • 3 years later
            • C
              cruickshank @rahul last edited by 28 Jul 2022, 08:53

              @rahul said in Overide admin view using custom package?:

              Hi @karkiswapnil

              Yes. You can override any of view file.

              You can read this one - https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto cookie clicker

              So you need to create a view file (In your package & follow same path structure as core 's view file consist ) & publish this file according to path of that suggested in above topic or core's view file has, in your package's service provider. Like

                $this->publishes([
                          __DIR__ . 'folder1/folder2/filename' => resource_path('views/vendor/shop/folder1/folder2/filename'),
                      ]);
              

              Thanks

              I greatly appreciate your response. It has great value.

              1 Reply Last reply Reply Quote 0
              • admin
                admin last edited by 28 Jul 2022, 09:02

                Hi there,
                Thanks for the update
                Also if you like our support, you may give us the review here:- https://www.trustpilot.com/review/bagisto.com
                That would be grateful for us.

                1 Reply Last reply Reply Quote 0
                • 6 months later
                • E
                  emmaclerk last edited by 12 Jan 2023, 09:50

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  7 out of 8
                  • First post
                    7/8
                    Last post