MADMAN32395 Posted March 10, 2017 Posted March 10, 2017 Reference: When doing an array targeting packages, are you able to have more than 1 hook targeting the same package? Like if I target Package 1 in example1.php and target the same package in example2.php will that work or shouldn't do that?
Ryan Ashbrook Posted March 10, 2017 Posted March 10, 2017 Yes, so long as both call the parent method, as in the IPS4 example on that page.
MADMAN32395 Posted March 10, 2017 Author Posted March 10, 2017 Just now, Ryan Ashbrook said: Yes, so long as both call the parent method, as in the IPS4 example on that page. okay, so I have 1 plugin with 3 hooks (all using \IPS\nexus\Package) but the 3 hooks do similarly-different things. but noticed that since adding hook 2 (uses same package numbers) hook 1 struggles to record into a different table. hook 3 works fine as that is the only hook that uses the 1 package number. ---- side note, somehow in this mess I was able to find that $purchase->id is not returning the correct Transaction Number as it should.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.