Bagisto Forum

    Bagisto

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

    Theme Creation and Override Bottleneck

    General Discussion
    3
    13
    863
    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
      prateek-webkul last edited by prateek-webkul

      @courage,
      Sounds great, it fixes your query. You can rate our support here: https://www.trustpilot.com/review/bagisto.com. It would be really grateful for us.☺

      1 Reply Last reply Reply Quote 0
      • C
        courage last edited by

        @prateek-webkul
        Sorry am here again... i have just one more silly question "i suppose!"
        I have made some changes to the files in packages/Webkul/Velocity/src/Resources/assets/js/UI/components
        but there is no vissible changes. The question is, why is that?
        I have thought of copying the UI/components* folder to my theme public assets paths and have it linked to my the layout. But, i don't know, i haven't really tried it and it sure sounds absurd. So, whats the way forward

        1 Reply Last reply Reply Quote 0
        • P
          prateek-webkul last edited by

          If you want to change in your CSS or JS files. Follow below steps:

          • Open the path "packages/Webkul/Velocity" in terminal and run the command "npm install".

          • After successful execution of above command, run the command "npm run watch".

          • Now, change the SCSS or JS files. Your changes will reflect now in the browser.

          • Upon successful completion with the changes in SCSS or JS files, run the command "npm run prod" to publish all your files permanently in package's publishable directory.

          Thanks

          1 Reply Last reply Reply Quote 0
          • C
            courage last edited by

            everything is fine now. thanks for helping

            1 Reply Last reply Reply Quote 0
            • C
              courage last edited by courage

              @prateek-webkul

              These lines are causing some error in my template

              @if ($velocityMetaData)
                  {!! DbView::make($velocityMetaData)->field('home_page_content')->render() !!}
                 @else
                   @include('shop::home.banner.index')
                   @include('shop::home.advertisements.advertisement-four')
                   @include('shop::home.featured-products')
                   @include('shop::home.advertisements.advertisement-three')
                   @include('shop::home.new-products')
                   @include('shop::home.advertisements.advertisement-two')
              @endif
              

              I added this line

              @include('shop::home.banner.index')
              

              but realized it doesnt take any effect, so i removed if-else statement but got loads of vue errors.

              So, what's the line for and how do i make it render my view?

              {!! DbView::make($velocityMetaData)->field('home_page_content')->render() !!}
              
              1 Reply Last reply Reply Quote 0
              • P
                prateek-webkul last edited by

                @courage ,

                share the screenshot of errors you are facing...

                1 Reply Last reply Reply Quote 0
                • C
                  courage last edited by

                  @prateek-webkul
                  screenshot plus the loading is incredibly slow, any idea on how to improve that?
                  alt text

                  1 Reply Last reply Reply Quote 0
                  • P
                    prateek-webkul last edited by

                    @courage ,

                    Have you done any changes in the existing file, once check for the code. They must be written under tags and tags must be closed...

                    1 Reply Last reply Reply Quote 0
                    • C
                      courage last edited by courage

                      @prateek-webkul
                      am not actually very good at vue, so am pausing to take a good look at the whole concepts. but one i thing i do notice though, is the load speed which in a way is very slow. i don't know if that's because of my development environment which is currently local or did you guys implement some kind php sleep function to make it wait for some time before loading. either ways, i would fancy a suggestion on what to do to achieve a much cleaner and faster system

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

                        In case Bagisto is loading slowly you can do the following things:

                        1. Pull the latest changes from our repository bagisto/bagisto because we added fixes related to the load time.
                        2. Open .env and change APP_DEBUG=true to APP_DEBUG=false.
                        3. Change the php memory limit to 3 or 4G in your php.ini file.
                        4. In case you are using vagrant / homestead make sure that the virtual machine has enough memory.

                        Kind regards,
                        Glenn Hermans

                        Manager Bagisto Europe
                        info@bagisto.eu

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