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

Bagisto

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

Shop layout not extending from custom theme!

Modules
3
8
1.7k
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.
  • R
    RK REZA last edited by 14 Jul 2019, 10:15

    I was trying to add Q/A under a new package. Now I want to show them in front page. When I extend the it from Shop module it works and extended from default theme. But I'm using a custom theme, so how can I call the custom theme design or where should I put those view file?

    1 Reply Last reply Reply Quote 0
    • M
      maheshb last edited by maheshb 15 Jul 2019, 08:06 15 Jul 2019, 08:05

      We are facing the same issue. Quick help will really be appreciated.
      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by 15 Jul 2019, 09:34

        Hi,

        You can call custom theme as same manner as you call default & put your views in view_path of theme (given in config) & extend @extends('shop::layouts.master') at view pages.

        And we are request you to please elaborate more because right now we are getting difficulty to get it.

        Thanks

        1 Reply Last reply Reply Quote 0
        • R
          RK REZA last edited by 15 Jul 2019, 11:11

          I have created a new Package CustomerCare and added a Module HelpCenter under it.

          Capture.PNG

          Had added some Q/A under HelpCenter Package.

          2.PNG
          2.PNG

          Now I want to show these Q/A in store front. Under route (/helpcenter).

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by 15 Jul 2019, 12:58

            Hi,

            Now you need to create route & controller for your view. Your route, controller & view should be in your package.

            Your packages master file should include @extends('shop::layouts.master') & be able to show it on front-end.

            Thanks

            1 Reply Last reply Reply Quote 0
            • M
              maheshb last edited by 18 Jul 2019, 06:33

              Hello Rahul,

              Could you please share snippet for including master.blade.php from custom theme into the custom-created package.

              Please review folder structure of custom theme and custom package.

              18-07-2019 11-56-39.png

              Thanks in advance!

              1 Reply Last reply Reply Quote 0
              • R
                rahul last edited by 18 Jul 2019, 06:57

                Hi @maheshb

                You can directly include master file of custom theme in your custom package ( like- @extends('shop::layouts.master') ) at your master blade or where you needed.

                But make sure one think that all your route (front-end) passes through 'theme' middleware.

                Route::group(['middleware' => ['web', 'locale', 'theme', 'currency']], function () {
                         your route
                });
                

                Thanks

                1 Reply Last reply Reply Quote 0
                • M
                  maheshb last edited by 18 Jul 2019, 06:59

                  Thanks Rahul

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