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

Bagisto

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

Theme Creation and Override Bottleneck

General Discussion
3
13
880
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.
  • C
    courage last edited by courage 29 Sept 2020, 09:53 29 Sept 2020, 07:23

    I have been looking into bagisto for weeks searching the internet for a more elaborate and detailed explanation on how to "not just create a theme or package but be able to make items or products, categories and the likes, appear where i want them".
    Well, i created a package following https://devdocs.bagisto.com/create_package.html. and it was great but afterwards, am left confused on where the products should appear or how to even make that happen. So, i switched over to theme creation but still the same bottleneck.

    So i tried looking into the velocity theme to determine how am going to make things easy for me. Well, it was great at first until i realized that i cant find some components. I don't know where they are or how they came to be.

    My suggestion is; in subsequent updates, you create a components folder where you store these vue components instead of scattering them everywhere.
    In the mean time, i would like you to point me to where or how i could locate these vue components as they are not available in the particals file:

    • carousel-component
    • sidebar-component
    • mini-cart
      i actully found the mini-cart but the x-template code i cannot find
    1 Reply Last reply Reply Quote 0
    • P
      prateek-webkul last edited by 30 Sept 2020, 04:30

      Hello,

      For simplicity and ease the developer work, we have already separated the components folder you may find all Vue components located at packages/Webkul/Velocity/src/Resources/assets/js/UI/components

      Can you please elaborate more about the package creation issue, we might help you so you can proceed with your work.....

      Thanks

      1 Reply Last reply Reply Quote 0
      • C
        courage last edited by 30 Sept 2020, 11:19

        @prateek-webkul
        wow... sorry i never checked that directory.
        am beginning to like you guys again 🙂 🙂
        That was really a perfect answer

        1 Reply Last reply Reply Quote 0
        • P
          prateek-webkul last edited by prateek-webkul 30 Sept 2020, 11:37 30 Sept 2020, 11:37

          @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 1 Oct 2020, 11:15

            @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 1 Oct 2020, 15:04

              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 1 Oct 2020, 17:49

                everything is fine now. thanks for helping

                1 Reply Last reply Reply Quote 0
                • C
                  courage last edited by courage 8 Oct 2020, 13:53 8 Oct 2020, 13:52

                  @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 8 Oct 2020, 15:04

                    @courage ,

                    share the screenshot of errors you are facing...

                    1 Reply Last reply Reply Quote 0
                    • C
                      courage last edited by 8 Oct 2020, 17:46

                      @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 9 Oct 2020, 04:54

                        @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 10 Oct 2020, 08:08 10 Oct 2020, 08:07

                          @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 10 Oct 2020, 09:05 10 Oct 2020, 09:03

                            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
                            9 out of 13
                            • First post
                              9/13
                              Last post