Page 1 of 1

Override AIMEOS laravel shop frontend templates

Posted: 22 Mar 2018, 16:18
by technoxprt
Hi,
I am using aiemos dev-master on laravel 5.4

How i can add my custom css and theme in shop frontend. Is there any way to override the templates and put those template in resources folder of laravel ?

Please help me on this

Re: Override AIMEOS laravel shop frontend templates

Posted: 23 Mar 2018, 19:07
by aimeos
Overwrite that file in your ./resources/views/vendor/aimeos/shop/ folder and use or add your own CSS files:
https://github.com/aimeos/aimeos-larave ... .blade.php

Re: Override AIMEOS laravel shop frontend templates

Posted: 24 Mar 2018, 10:15
by technoxprt
Hi,

Thanks for your reply,

But I have purchased a template from theme forest. I want to implement that template for aimeos.
Is there any way, that I can copy aimeos templates in resources and apply my html on aimeos blades ?

Re: Override AIMEOS laravel shop frontend templates

Posted: 25 Mar 2018, 03:43
by gladgladwrap
https://aimeos.org/docs/Laravel/Adapt_pages
Read the documentation under the heading "Don't Change the Package". Follow the instructions for adapting specific pages by making your own copies of the aimeos templates into your resources/views directory. You will have to create a vendor/shop/ directory within your views/ . You can then break up your purchased theme into partial files within your views/ and @include those partials.

Check out Laracasts tutorials. It will show you how to split up your template into partials and include those partials into your files.

You are to create a layouts/ directory within your resources/views/ directory.
Inside this layouts/ dir you make files for your nav and/or header, sidebar, footer, errors, etc.
You can also have a master blade file, or other variant files, which can contain variations of the other blade files. Structure your master.blade.php as follows:

Code: Select all

<html>
<head>
<!-- all your meta details -->
</head>
<body>
	@include ('layouts.nav')  
	<div class="main-content">
              @yield ('content')
	</div>
    @include ('layouts.sidebar')
    @include ('layouts.footer')
</body>
</html>
And then you will @extend your master.blade in your other views/ directories. From our resources/views/, this can be done by making alligator-sales/index.blade.php as follows:

Code: Select all

@extends ('layouts.master')
@section ('content')
<div>All your content for this view.</div>
@include ('layouts.error')
@endsection