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!
Re: Several theme loading views problem
YesIf you switch sites with different themes, is the theme name in the file path still the same?
The same is displayed in both cases:Can you dump "$this->paths" here and check what the array contains when you switch sites with different themes?
Code: Select all
array:4 [▼
array:4 [▼
"C:\xampp\htdocs\giftcard\vendor\aimeos\ai-client-html" => array:1 [▼
0 => "client/html/templates"
]
"C:\xampp\htdocs\giftcard\vendor\aimeos-extensions\new-ext" => array:1 [▼
0 => "client/html/templates"
]
"C:\xampp\htdocs\giftcard\vendor\aimeos-themes\pl-theme" => array:1 [▼
0 => "client/html/templates"
]
"C:\xampp\htdocs\giftcard\vendor\aimeos-themes\sk-theme" => array:1 [▼
0 => "client/html/templates"
]
]
]
Re: Several theme loading views problem
Maybe we've found the problem. Can you please open the "manifest.php" files of your theme extensions. They contains this section:
Replace this in all your theme extensions with:
where "<theme-name>" must be replaced with the name of your theme extension ("pl-theme" and "sk-theme" in your case).
Code: Select all
'template' => [
'admin/jqadm/templates' => [
'admin/jqadm/templates',
],
'admin/jsonadm/templates' => [
'admin/jsonadm/templates',
],
'client/html/templates' => [
'client/html/templates',
],
'client/jsonapi/templates' => [
'client/jsonapi/templates',
],
'controller/jobs/templates' => [
'controller/jobs/templates',
'client/html/templates',
],
],
Code: Select all
'template' => [
'<theme-name>' => [
'admin/jqadm/templates' => [
'admin/jqadm/templates',
],
'admin/jsonadm/templates' => [
'admin/jsonadm/templates',
],
'client/html/templates' => [
'client/html/templates',
],
'client/jsonapi/templates' => [
'client/jsonapi/templates',
],
'controller/jobs/templates' => [
'controller/jobs/templates',
'client/html/templates',
],
],
],
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
The correct config will be...
'template' => [
'themename' => [
'admin/jqadm/templates' => [
'templates/admin/jqadm',
],
'admin/jsonadm/templates' => [
'templates/admin/jsonadm',
],
'client/jsonapi/templates' => [
'templates/client/jsonapi',
],
'client/html/templates' => [
'templates/client/html',
],
'controller/jobs/templates' => [
'templates/controller/jobs',
],
],
'template' => [
'themename' => [
'admin/jqadm/templates' => [
'templates/admin/jqadm',
],
'admin/jsonadm/templates' => [
'templates/admin/jsonadm',
],
'client/jsonapi/templates' => [
'templates/client/jsonapi',
],
'client/html/templates' => [
'templates/client/html',
],
'controller/jobs/templates' => [
'templates/controller/jobs',
],
],
Re: Several theme loading views problem
It works, but I wonder if I should rewrite it on my own controllers to have more control over it
Re: Several theme loading views problem
If it works, you don't need your own controllers and you can save that work.
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 will expand this shop to different countries. Each country may have different validation of customer data and for different payment methods. Aimeos has the limitation that you cannot redirect to a page, but display an indirect page with a click link. It may also have restrictions on validation etc.
I do not have many products, because only 3 for each store. If I rewrite it for my controllers, it may be a more custom solution. I am afraid that at some point I will not be able to deal with something and there will be a problem.
I do not have many products, because only 3 for each store. If I rewrite it for my controllers, it may be a more custom solution. I am afraid that at some point I will not be able to deal with something and there will be a problem.
Re: Several theme loading views problem
You are not bound to the standard Aimeos setup and configuration. Instead, you can change everything you need, e.g. send a redirect for the payment directly if you don't need that step.
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