News:

Support the VirtueMart project and become a member

Main Menu

Update values after placing an order

Started by Siguana, March 30, 2019, 15:03:42 PM

Previous topic - Next topic

Siguana

  J3 and VM3

  I need to update some values just after placing an order, but I don't know which file I should edit.

  Which file should I edit?

jenkinhill

Editing an order?  http://docs.virtuemart.net/manual/general-concepts/220-orders.html

Or maybe you want something else, in which case please say exactly what you want to do.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Siguana

  I need to modify the code of the file just after the line where the order is saved into the database.

Jörgen

This makes it not much clearer. What code do You want to change ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Siguana

  I just want to add some values in a custom table that I created.  The values must be inserted after the order is placed and before sending the mail to the seller.

Milbo

Then you need to write a plugin, which uses the plgVmConfirmedOrder trigger.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/