Theming

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Theming

Post by Travin » 27 Jan 2018, 10:55

Hi all
According to this page https://aimeos.org/docs/Configuration/C ... te/baseurl I want to change my theme folder. I did so, but it does not help. After my investigation i found
vendor\aimeos\aimeos-laravel\src\views\base.blade.php:

Code: Select all

@extends('app')

@section('aimeos_styles')
    <link type="text/css" rel="stylesheet" href="{{ asset('packages/aimeos/shop/themes/elegance/common.css') }}" />
    <link type="text/css" rel="stylesheet" href="{{ asset('packages/aimeos/shop/themes/elegance/aimeos.css') }}" />
@stop
As i see, the folder is defined strict, and /client/html/common/template/baseurl means nothing at this case. Is it right? Can I help to fix it up?
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

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

Re: Theming

Post by aimeos » 28 Jan 2018, 17:52

The baseurl setting is required for theming the emails. In the Laravel context you have to overwrite the Blade template that you mention. You can do that in the standard Laravel way be copying a modified template to ./resources/views/vendor/aimeos/shop/base.blade.php

Maybe you wan't do document that as well? Maybe here: https://aimeos.org/docs/Laravel/Adapt_pages
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Theming

Post by Travin » 28 Jan 2018, 18:26

I think it's because of it's my first Laravel project. I have to learn Laravel and Aimeos at the same time. And my first Stripe integration too :lol: I am on my way to improve skills
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

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

Re: Theming

Post by gladgladwrap » 30 Jan 2018, 16:13

I'm in the same position as you.

I wanted to download a payments extension so credit card payments with stripe could be made but it required the 2018 version of Aimeos. I had some errors with the most recent version so I had to revert to 2017.10 which isn't supported by the payment extension.
PHP 7.1.14, Aimeos 2017.10, Laravel 5.5.39 (php artisan --version)

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Theming

Post by Travin » 30 Jan 2018, 17:20

Do you mean ai-payments? You can install ai-payments 2017, which is supporting Aimeos 2017.10. You just need to specify it at your composer.json: http://joxi.ru/BA06RpvtBxgbzm
Please take a look at this explanation:
http://joxi.ru/Vm6adQ7CxNy8Gr
https://packagist.org/packages/aimeos/a ... #2017.10.2
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

Post Reply