Several theme loading views problem
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Several theme loading views problem
I have two laravel themes:
- packages/new-theme/*
- packages/new-theme-sk/*
and I have two shops:
- pl => assign "new-theme"
- sk => assign "new-theme-sk"
When I go to the product card in the "pl" shop, the aimeos template loads from "new-theme-sk" =>.
Several other templates from "client\html\templates" also show from "new-theme-sk".
But base.blade.php is loaded with the correct theme => "new-theme"
Why ?
- packages/new-theme/*
- packages/new-theme-sk/*
and I have two shops:
- pl => assign "new-theme"
- sk => assign "new-theme-sk"
When I go to the product card in the "pl" shop, the aimeos template loads from "new-theme-sk" =>
Code: Select all
packages\new-theme-sk\client\html\templates\catalog\detail\body-standard.blade.php
Several other templates from "client\html\templates" also show from "new-theme-sk".
But base.blade.php is loaded with the correct theme => "new-theme"
Why ?
Re: Several theme loading views problem
@Aimeos it is important to me to solve this problem
Re: Several theme loading views problem
Sounds like a caching problem. Can you disable the Aimeos content cache in your ./config/shop.php and see if it solves the problem?
https://github.com/aimeos/aimeos-laravel#hints
https://github.com/aimeos/aimeos-laravel#hints
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Several theme loading views problem
I have this entry in shop.php and i still have a problem
Structure "new-theme" is:
https://prnt.sc/CKdj7qT4ikKL
And "new-theme-sk" has the same structure.
Structure "new-theme" is:
https://prnt.sc/CKdj7qT4ikKL
And "new-theme-sk" has the same structure.
Re: Several theme loading views problem
You are using Laravel Blade templates and Laravel has its own cache for them. Clear that cache and see if it changes something on the page where the problem occurred (there will be still a problem when you switch themes but only to know if that's the problem):
Code: Select all
php artisan view:clear
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Several theme loading views problem
I clear all laravel caches and there is still a problem.
I changed the theme and went back to the previous one and is still a problem.
I changed the theme and went back to the previous one and is still a problem.
Re: Several theme loading views problem
That's what I've said: As soon as you switch the theme, the problem will reoccur.
Will it be correct if you:
1.) php artisan view:clear
2.) reload page (layout should be OK first time)
3.) php artisan view:clear
4.) switch theme
5.) reload page (layout should be OK too if the Laravel view cache is the problem)
Will it be correct if you:
1.) php artisan view:clear
2.) reload page (layout should be OK first time)
3.) php artisan view:clear
4.) switch theme
5.) reload page (layout should be OK too if the Laravel view cache is the problem)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Several theme loading views problem
After php artisan clear:cache is still a problem. Clearing the cache doesn't matter.
The general template loads fine (new-theme) and the middle part of the page loads from a different theme (new-theme-sk).
The general template loads fine (new-theme) and the middle part of the page loads from a different theme (new-theme-sk).
Re: Several theme loading views problem
In packages\new-theme\views\catalog\detail.blade.php I use @extends('new-theme::base')