basket-standard

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!
cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

basket-standard

Post by cnoelker » 30 Oct 2019, 20:07

Hello,
the same file client/html/templates/basket/standard/body-standard.php is used both for the basket in the popup (after placing an article into the basket) and also, if the user visits the basket page.

I need to display different output for the two cases, e.g. for displaying an additional button only on the popup. How can I achieve this?
Is there a place where I can set the name of the included files?
Or is there a variable which I can check?
If nothing else works, I'd use some JavaScript magic. But I'd really like to do it properly.
Claudia

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

Re: basket-standard

Post by aimeos » 31 Oct 2019, 09:03

Not only the same template is used but it's in fact the basket rendered by the basket page:
https://github.com/aimeos/ai-client-htm ... #L936-L947

You can add your button to the template, hide it by default and display it by overwriting the Javascript method.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: basket-standard

Post by cnoelker » 31 Oct 2019, 20:25

Thanks, then I will use some JavaScript magic and hide and show the content.

Post Reply