News:

Looking for documentation? Take a look on our wiki

Main Menu

VM plugin - which event for confirmed purchase order?

Started by Thong Tran, June 15, 2012, 16:52:23 PM

Previous topic - Next topic

Thong Tran

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
http://foobla.com/joomla/obsocialsubmit - auto publishing VirtueMart products to Twitter, Facebook, LinkedIn, ...
http://foobla.com/joomla/obrss - create ultimate RSS Feed for VirtueMart
http://foob.la/vmskrill - Skrill payment option for VirtueMart

Milbo

did you searched for all triggers with plgvm? btw skrill will be part of the vm core next weeks.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

alatak

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...


Thong Tran

#3
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.
http://foobla.com/joomla/obsocialsubmit - auto publishing VirtueMart products to Twitter, Facebook, LinkedIn, ...
http://foobla.com/joomla/obrss - create ultimate RSS Feed for VirtueMart
http://foob.la/vmskrill - Skrill payment option for VirtueMart

Thong Tran

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
http://foobla.com/joomla/obsocialsubmit - auto publishing VirtueMart products to Twitter, Facebook, LinkedIn, ...
http://foobla.com/joomla/obrss - create ultimate RSS Feed for VirtueMart
http://foob.la/vmskrill - Skrill payment option for VirtueMart