Hello experts,
I'm creating an extension of PreProductSaleTrigger.I need to check if an item is blocked for sale (according to some parameters) within the database.
I'm having problems getting some channel parameters, like ChannelId and DataAreaId. When debugging my extension, I've noticed that some global variables contain this information, but unfortunately, I cannot access these global variables inside my trigger:
Inside my trigger, I can access the 'options' variable, but it only contains the product and cart information. The cart information includes the channel, but it's only filled when we already have an item inserted into the cart, so it's useless for me.
Do you guys know how can I get the channel information inside a trigger?
Thanks in advance.
Luiz