Override AIMEOS laravel shop frontend templates

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
technoxprt
Posts: 5
Joined: 07 Mar 2018, 11:33

Override AIMEOS laravel shop frontend templates

Post by technoxprt » 22 Mar 2018, 16:18

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

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Override AIMEOS laravel shop frontend templates

Post by aimeos » 23 Mar 2018, 19:07

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

technoxprt
Posts: 5
Joined: 07 Mar 2018, 11:33

Re: Override AIMEOS laravel shop frontend templates

Post by technoxprt » 24 Mar 2018, 10:15

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 ?

gladgladwrap
Posts: 10
Joined: 27 Jan 2018, 22:10

Re: Override AIMEOS laravel shop frontend templates

Post by gladgladwrap » 25 Mar 2018, 03:43

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
PHP 7.1.14, Aimeos 2017.10, Laravel 5.5.39 (php artisan --version)

Post Reply