Extend Product Detail URL With Attributes

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!
randomdennis
Posts: 33
Joined: 10 Oct 2024, 12:51

Extend Product Detail URL With Attributes

Post by randomdennis » 18 Dec 2024, 15:50

Hello,

we have added the category ID to the product detail page URL in the Aimeos version 2022 (e.g. &ai%5Bd_prodid%5D=3575&catid=1) to always display the category of the previous page if several categories are available for the product.

In the latest version of Aimeos this is no longer possible, as the product ID is incorrectly searched for as “3575&catid=1” and the product is no longer found.

Can you adjust this or how can I append elements to the URL in the new version?

EDIT: Maybe this is a Typo3 related problem, since i have the same problem on created pages via backend.

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

Re: Extend Product Detail URL With Attributes

Post by aimeos » 18 Dec 2024, 23:14

In TYPO3, you have to use the "ai" prefix, like "...&ai[catid]=1"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

randomdennis
Posts: 33
Joined: 10 Oct 2024, 12:51

Re: Extend Product Detail URL With Attributes

Post by randomdennis » 19 Dec 2024, 11:55

Thanks, if anyone has a similar problem, it even works without ai prefix like this:

extention/ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'load';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'catid';

typo3conf/sites/main/config.yaml
routeEnhancers:
GeneralParameterEnhancer:
type: Plugin
routePath: ''
_arguments:
load: ''
catid: ''
requirements:
load: '[a-zA-Z0-9]*'
catid: '[0-9]*'

Post Reply