difference from /includes/hooks folder and /templates/default/hooks

Open to all! Ask other shopowners for help.
Post Reply
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

difference from /includes/hooks folder and /templates/default/hooks

Post by loop »

Hi Everyone
I'm not sure where to put Modifications i need with hooks.
Is both possible? whenn should i put in hooks and whenn in templates? don't get that really...

thank you!


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: difference from /includes/hooks folder and /templates/default/hooks

Post by ecartz »

You should put things with template specific HTML in the template hooks directory for that template.

You should put

1. System hooks.
2. Admin hooks.
3. Hooks that don't contain HTML/Javascript.

In the includes/hooks/ directory.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply