Jump to content

custom action - Package Array

Featured Replies

Posted

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?

Yes, so long as both call the parent method, as in the IPS4 example on that page.

  • Author
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.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.