Closed flathat closed 1 year ago
What is missing is that the ReceiptMessage
in the plugin needs to be added to the list of Message Modules in Install > Receipt.
class FoodBucksBalanceFooter extends ReceiptMessage
alone does not get the module executed, only into the list of those available for execution that must then be chosen.
Version of CORE? current
Issue with Office, Lane, or both? Lane
Is this [mostly] a bug report, feature request, or question? Question
I need some help understanding how
ReceiptLib
finds plugin classes that extendReceiptMessage
. I have one that does that:class FoodBucksBalanceFooter extends ReceiptMessage
but it's message isn't displayed even when the default
select_condition()
(always "1") is used and themessage()
is just a dummy. Everything else in the plugin works.I tried enabling the
MarketBucks
plugin which has something similar and jiggering it to display but it does not.I tried putting my
ReceiptMessage
module inlib/ReceiptBuilding/Messages
and modeling the namespace and use statements onEbtReceiptMessage.php
, which is found and executed, but it is not found.I tried adding the version of my module in
.../Messages
to the$msgMods
array inReceiptLib
but that did not help. RemovingGCBalanceReceiptMessage
did not prevent it from being processed.I expected these modules to be in
CoreLocal::get('ReceiptMessageMods')
whenReceiptLib::messageMods()
uses it but they are not. The only two that are areEbtReceiptMessage
andGCBalanceReceiptMessage
.I've disabled and re-enabled the plugin. I sign out of the lane and
Ctrl-Shift-R
reload between each test. There are no errors being logged.Any suggestion as to what is missing?