Hi VM lovers,
I'm developing a VM plugin which handle some actions after the purchase order placed and PAID (on FrontEnd) or Order Status changed to Confirmed (on BackEnd).
Please let me know which events I need to work on. I've spent hours for digging VM 2, but no luck.
Please advise.
Thanks.
T
did you searched for all triggers with plgvm? btw skrill will be part of the vm core next weeks.
Hi,
QuoteI'm developing a VM plugin which handle some actions after the purchase order placed and PAID (on FrontEnd) or Order Status changed to Confirmed (on BackEnd).
we have 2 triggers for that plgVmOnSelfCallBE() and plgVmOnSelfCallFE().
You have an example how to use it in the payment Klarna.
It is called that way
$YourLink = JURI::root () . 'administrator/index.php?option=com_virtuemart&view=plugin&type=vmpayment&name=[b]NameOfYourPlugin[/b]&call=[b]theFunctionInYourPlugin[/b]&YourParameters...
Thanks Milbo and alatak for your replies.
Actually, I'm not developing payment plugin, I'm developing a SYSTEM PLUGIN which handles purchase order from customer, and assign that customer to specific UserGroup.
For example:
- If user A bought product X (payment paid, of course), A will be assigned to UserGroup_A
- If user B bought product Y (payment paid, of course), B will be assigned to UserGroup_B
Please advise.
T
@Milbo: I would love to hear you guys will add Skrill payment into VM2 core. Good news to the community.
One more thing, I'm thinking of trigger all possible the event from both FE & BE, and will check for the order status and if it is "C" or "S" (Confirmed or Shipped), then the plugin will do what it designed to do.
But it would be much more better if we have some more event triggers to handle that.
T