VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Siguana on March 30, 2019, 15:03:42 PM

Title: Update values after placing an order
Post by: Siguana on March 30, 2019, 15:03:42 PM
  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?
Title: Re: Update values after placing an order
Post by: jenkinhill on March 31, 2019, 12:05:06 PM
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.
Title: Re: Update values after placing an order
Post by: Siguana on March 31, 2019, 12:43:13 PM
  I need to modify the code of the file just after the line where the order is saved into the database.
Title: Re: Update values after placing an order
Post by: Jörgen on March 31, 2019, 13:19:39 PM
This makes it not much clearer. What code do You want to change ?

Jörgen @ Kreativ Fotografi
Title: Re: Update values after placing an order
Post by: Siguana on March 31, 2019, 13:25:36 PM
  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.
Title: Re: Update values after placing an order
Post by: Milbo on April 10, 2019, 09:21:34 AM
Then you need to write a plugin, which uses the plgVmConfirmedOrder trigger.