Several Issues & Topics

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Several Issues & Topics

Post by Metalics » 22 Jun 2023, 00:01

Hello. We have tested Aimeos V 23.4.3-pre1 and noticed the following issues by now.
Typo3 V 12.4.2
PHP V 8.2.5
MySQL 10.5.20-MariaDB-log

1- Scheduler Jobs not working (tested for category & product import) with error: Unable to call method "getQueryParams" of non-object "request".

2- Language and Dark Mode/Light Mode switch on Aimeos backend is not working as expected. Language turns back to English and display mode turns back to system default after refreshing the page even if you change them.

3- Pages with JSON REST API, Catalog suggest JSON, Catalog count JSON and Catalog stock JSON not working; so relevant tags can not be created on header.

4- Breadcrumb for the current product always displaying "Back" link instead of the category link the product belongs. Is there any way to force the breadcrumb display the first category of the current product?

5-There is a setting to display On Request text instead of Add to Basket form if there is no given price for the product. But I think <?= $enc->html( $this->translate( 'client', 'on request' ) ) ?> setting is located inside the "if price available" condition. So if the product has no price, 'on request' text is not displayed.

6-Locale selector for Typo3 doesn't need language parameter as it already has language selector, so using it with only Currency selector option works as expected with the setting:
plugin.tx_aimeos.settings.client.html.locale.select.subparts {
0 = currency
}
But ai[locale]=en parameter still exist on URL when you use currency selector and that confuses Typo3. Is there any setting to remove "locale" parameter and leave the ai[currency]=EUR parameter alone on URL?

7- We need to remove CSS files of the Plug-ins for different template design. Is there any typoscript setting to remove for example only catalog-detail.css file?
Leaving the plugin.tx_aimeos.settings.client.html.catalog.detail.template-header setting empty is removing the related .js files and meta tags and not useful for this case.

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

Re: Several Issues & Topics

Post by aimeos » 26 Jun 2023, 13:05

Thank you for your post!
Metalics wrote: 22 Jun 2023, 00:01 1- Scheduler Jobs not working (tested for category & product import) with error: Unable to call method "getQueryParams" of non-object "request".
We are unable to reproduce this issue. Can you post a stack trace of the error?
Metalics wrote: 22 Jun 2023, 00:01 2- Language and Dark Mode/Light Mode switch on Aimeos backend is not working as expected. Language turns back to English and display mode turns back to system default after refreshing the page even if you change them.
The dark/light mode problem has been fixed and the fix will be part of the next release.
If you select the language in the navigation of the Aimeos backend, it will only stay until you leave the Aimeos backend and this was the case before too. But we've fixed using the language of your TYPO3 backend user so that one is now always used again.
Metalics wrote: 22 Jun 2023, 00:01 3- Pages with JSON REST API, Catalog suggest JSON, Catalog count JSON and Catalog stock JSON not working; so relevant tags can not be created on header.
This has been fixed too.
Metalics wrote: 22 Jun 2023, 00:01 4- Breadcrumb for the current product always displaying "Back" link instead of the category link the product belongs. Is there any way to force the breadcrumb display the first category of the current product?
If you overwrite the common/partials/products.php and add the f_catid to the catalog details link (with same name), the breadcrumb will be shown for that category. We will see if we make that configurable.
Metalics wrote: 22 Jun 2023, 00:01 5-There is a setting to display On Request text instead of Add to Basket form if there is no given price for the product. But I think <?= $enc->html( $this->translate( 'client', 'on request' ) ) ?> setting is located inside the "if price available" condition. So if the product has no price, 'on request' text is not displayed.
The "on request" text is shown if the product has a price item but the price value is an empty string (not "0.00"). You need a price item because otherwise, the product can't be put into the basket.
Metalics wrote: 22 Jun 2023, 00:01 6-Locale selector for Typo3 doesn't need language parameter as it already has language selector, so using it with only Currency selector option works as expected with the setting:
plugin.tx_aimeos.settings.client.html.locale.select.subparts {
0 = currency
}
But ai[locale]=en parameter still exist on URL when you use currency selector and that confuses Typo3. Is there any setting to remove "locale" parameter and leave the ai[currency]=EUR parameter alone on URL?
It's possible to overwrite the locale/select/currency-body.php template and build your own selector.
Metalics wrote: 22 Jun 2023, 00:01 7- We need to remove CSS files of the Plug-ins for different template design. Is there any typoscript setting to remove for example only catalog-detail.css file?
Leaving the plugin.tx_aimeos.settings.client.html.catalog.detail.template-header setting empty is removing the related .js files and meta tags and not useful for this case.
The best way is to create a new theme and change the CSS/JS files you want to modify. Copy the aimeos/Resources/Public/Themes/default/ folder e.g. to /fileadmin/theme/ and change the configuration to use the new theme in the Resources/Private/Config/resource.php of your own Aimeos extension. Here's the standard configuration:
https://github.com/aimeos/aimeos-typo3/ ... hp#L58-L63
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: Several Issues & Topics

Post by Metalics » 03 Jul 2023, 12:02

aimeos wrote: 26 Jun 2023, 13:05
Metalics wrote: 22 Jun 2023, 00:01 1- Scheduler Jobs not working (tested for category & product import) with error: Unable to call method "getQueryParams" of non-object "request".
We are unable to reproduce this issue. Can you post a stack trace of the error?
Error disappeared after applying JSON fixes and scheduler task manager indicating "Task ...... has been executed" message after running product/catalog import job. But there is nothing imported when I check and there is no import "Started/Finished" log in madmin_log
aimeos wrote: 26 Jun 2023, 13:05 The dark/light mode problem has been fixed and the fix will be part of the next release.
Problem seems to be fixed but now menu dropdown (childs) doesn't show up.

I also tried to fix catalog count visibility issue on GitHub. Problem is for sure caused by :scope selector in catalog-filter.js but I when I check aimeos demo for laravel (https://laravel.demo.aimeos.org) it is working. But typo3 (https://typo3.demo.aimeos.org/shop) not working.

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

Re: Several Issues & Topics

Post by aimeos » 06 Jul 2023, 10:28

Metalics wrote: 03 Jul 2023, 12:02 Problem seems to be fixed but now menu dropdown (childs) doesn't show up.
What does that mean? Can you post a screenshot?
Metalics wrote: 03 Jul 2023, 12:02 I also tried to fix catalog count visibility issue on GitHub. Problem is for sure caused by :scope selector in catalog-filter.js but I when I check aimeos demo for laravel (https://laravel.demo.aimeos.org) it is working. But typo3 (https://typo3.demo.aimeos.org/shop) not working.
The problem is the selector: "> a.cat-link" works only when jQuery is included, ":scope > a.cat-link" is the standard compatible DOM selector but doesn't work with jQuery. Maybe the solution discussed in the Github issue works.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: Several Issues & Topics

Post by Metalics » 06 Jul 2023, 21:50

aimeos wrote: 06 Jul 2023, 10:28
Metalics wrote: 03 Jul 2023, 12:02 Problem seems to be fixed but now menu dropdown (childs) doesn't show up.
What does that mean? Can you post a screenshot?
Sorry, problem was caused by our side, you can ignore that.

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: Several Issues & Topics

Post by Metalics » 27 Aug 2023, 16:20

Metalics wrote: 03 Jul 2023, 12:02
aimeos wrote: 26 Jun 2023, 13:05
Metalics wrote: 22 Jun 2023, 00:01 1- Scheduler Jobs not working (tested for category & product import) with error: Unable to call method "getQueryParams" of non-object "request".
We are unable to reproduce this issue. Can you post a stack trace of the error?
Error disappeared after applying JSON fixes and scheduler task manager indicating "Task ...... has been executed" message after running product/catalog import job. But there is nothing imported when I check and there is no import "Started/Finished" log in madmin_log
This problem still exists. Aimeos Scheduler Jobs not working with Typo3 V12.x.x & Aimeos V23.x.x

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

Re: Several Issues & Topics

Post by aimeos » 27 Aug 2023, 16:26

Please keep in mind that the directory from where the files are imported has been changed. Before, you had to set the absolute directory where the files are stored (which was a problem for multi-server environments).

Now, the files are used from a sub-directory of a virtual file system:
https://github.com/aimeos/aimeos-typo3/ ... ce.php#L76

For product and catalog imports, the directories are:

Code: Select all

<TYPO3 public dir>/uploads/tx_aimeos/.secure/import/product/
<TYPO3 public dir>/uploads/tx_aimeos/.secure/import/catalog/
See:
https://aimeos.org/docs/latest/cronjobs ... sv-import/
https://aimeos.org/docs/latest/cronjobs ... sv-import/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: Several Issues & Topics

Post by Metalics » 28 Aug 2023, 11:32

Thank you, working perfectly.

Post Reply