handle event on stock quantity change in Product Attribute Combination

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
I want to do something when the stock quantity of an attribute combination change,
I write this code but it does not work and nothing happened:

public class SpecialOfferAvailabilityPlugin : BasePlugin, IConsumer<EntityInsertedEvent<StockQuantityHistory>>

.
.
.
public void HandleEvent(EntityInsertedEvent<StockQuantityHistory> eventMessage) 


would you please tell me on which domain should I create handle?
3 года назад
RE: "nothing happened"
You've set a breakpoint in HandleEvent method, and it never gets hit?
3 года назад
New York wrote:
RE: "nothing happened"
You've set a breakpoint in HandleEvent method, and it never gets hit?


exactly,
I've test
EntityUpdatedEvent<ProductAttributeCombination>
and it hits when I change something of attribute from the admin panel, but,
EntityInsertedEvent<StockQuantityHistory>
not hit when I change the quantity of attribute from admin panel.
3 года назад
It was my mistake, I didn't install my plugin🤦‍♂️
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.