VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Thong Tran on June 15, 2012, 16:52:23 PM

Title: VM plugin - which event for confirmed purchase order?
Post by: Thong Tran on June 15, 2012, 16:52:23 PM
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
Title: Re: VM plugin - which event for confirmed purchase order?
Post by: Milbo on June 16, 2012, 11:02:34 AM
did you searched for all triggers with plgvm? btw skrill will be part of the vm core next weeks.
Title: Re: VM plugin - which event for confirmed purchase order?
Post by: alatak on June 16, 2012, 15:45:01 PM
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...

Title: Re: VM plugin - which event for confirmed purchase order?
Post by: Thong Tran on June 17, 2012, 14:12:02 PM
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.
Title: Re: VM plugin - which event for confirmed purchase order?
Post by: Thong Tran on June 17, 2012, 14:16:28 PM
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