listen_inject options

Talk about Hooks. Share Hooks you have made.
Post Reply
xgunnyx
Member
Posts: 10
Joined: Tue Mar 18, 2025 11:18 pm
Phoenix Version: v1.1.0.6

listen_inject options

Post by xgunnyx »

Hi folks,
I have one question, is there any overview about the "listen_inject" options in the hook like listen_injectBodyStart or listen_injectBodyEnd? Especially for the admin-area.
I have figured out there is a "listen_injectBodyContentStart" but it's not available in "admin"
My goal is, hook into the manufacturers-list below the title.
Is there a way to do so? Or maybe I can create my own "hook-into-point" by hooking into the hook-system? 8-)

Thank you!


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: listen_inject options

Post by burt »

xgunnyx wrote: Fri Nov 14, 2025 12:16 pm My goal is, hook into the manufacturers-list below the title.
Screenshot ?

I don't quite understand where this is..
Nor do I understand what you are wanting to inject there..
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: listen_inject options

Post by burt »

In addition, please see;
viewtopic.php?f=10&t=3029
I am not here to build for you.
I am here to build with you. Let's help each other.
xgunnyx
Member
Posts: 10
Joined: Tue Mar 18, 2025 11:18 pm
Phoenix Version: v1.1.0.6

Re: listen_inject options

Post by xgunnyx »

Hi Burt, thank you for the quick reply.
What I'm trying to do is adding the alphabet to limit the manufacturer-list by letter
for example you click on "A" you get only all the brands which names starting with A :-)
I already did this in the old oscommerce
phoenix-screenshot2.jpg
phoenix-screenshot.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: listen_inject options

Post by burt »

There is a search facility, click the question mark in the right hand side, near "neuer hersteller" - in the input box type "a" (or whatever), press return.

You could possibly do something with `extraButtons` hook, where you output a lot of buttons each linking to ?search=a (or whatever) which would add to that same place.
I am not here to build for you.
I am here to build with you. Let's help each other.
xgunnyx
Member
Posts: 10
Joined: Tue Mar 18, 2025 11:18 pm
Phoenix Version: v1.1.0.6

Re: listen_inject options

Post by xgunnyx »

Well, thank you very much.
What do you say about the "injection points"
listen_injectBodyStart
listen_injectBodyEnd ... and so on

where can I see all the "listen_inject" possibilitys for both front- & backend? Is there a kind of developers manual?

Thanx!
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: listen_inject options

Post by burt »

https://github.com/CE-PhoenixCart/Phoen ... wiki/Hooks

You could add in your own Hook listeners where-ever you need.
I am not here to build for you.
I am here to build with you. Let's help each other.
xgunnyx
Member
Posts: 10
Joined: Tue Mar 18, 2025 11:18 pm
Phoenix Version: v1.1.0.6

Re: listen_inject options

Post by xgunnyx »

Great, that's exactly what I was looking for :+1:

Thanx a lot especially for your quick replies!


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