Author Topic: Pls help with my custom payment plugin  (Read 626 times)

2dmaster

  • Jr. Member
  • **
  • Posts: 146
Pls help with my custom payment plugin
« on: June 07, 2021, 17:49:50 pm »
how to track a new event that user data is saved in the database (when a new order is created) in my payment plugin?
Table virtuemart_order_userinfos

They send trigger to default vm plugin ?
How to track it ? Whats name or function, when user order info saved and i can get its from database?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3533
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Pls help with my custom payment plugin
« Reply #1 on: June 09, 2021, 09:29:09 am »
Check out the code of the current payment plugins or vmcustom plugin. You should fond the answer there.
Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1162
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Pls help with my custom payment plugin
« Reply #2 on: June 09, 2021, 15:39:54 pm »
I think you use wrong idea which trigger you have to use.
We use RSFormPro with connect CRM Redmine and trigger is AfterSubmission, then I think in VM have to trigger some like "AftercreateOrder", not next trigger after create order.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3457
  • VirtueMart Version: 3.8.9
Re: Pls help with my custom payment plugin
« Reply #3 on: June 09, 2021, 16:57:14 pm »
When an order head is updated this trigger is fired - maybe that is what you are searching for:

'plgVmUpdateOrderHead'

$returnValues = $dispatcher->trigger('plgVmUpdateOrderHead', array($cart, $order));
Regards
A

Joomla 3.9.27
php 7.4

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3457
  • VirtueMart Version: 3.8.9
Re: Pls help with my custom payment plugin
« Reply #4 on: June 10, 2021, 11:02:59 am »
You asked this

Quote
how to track a new event that user data is saved in the database

It is really impossible for me to work out what you are trying to do - unless you tell us that - it is not going to be easy to give you any useful answers
Regards
A

Joomla 3.9.27
php 7.4