Page 1 of 1

basket-standard

Posted: 30 Oct 2019, 20:07
by cnoelker
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

Re: basket-standard

Posted: 31 Oct 2019, 09:03
by aimeos
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.

Re: basket-standard

Posted: 31 Oct 2019, 20:25
by cnoelker
Thanks, then I will use some JavaScript magic and hide and show the content.