Reputation: 367
I was wondering where I should add my own table update codes in VirtueMart, when a successful transaction occurs.
Upvotes: 1
Views: 59
Reputation: 9615
You could copy this file:
/components/com_virtuemart/views/cart/tmpl/order_done.php
Put your code and create an override to:
/templates/*template_name/html/com_virtuemart/cart/order_done.php
You could also create a plugin but plgVmOnConfirmedOrderStorePaymentData()
event is only for payment plugins.
Hope this helps
Upvotes: 1
Reputation: 801
In old VM it would be in ps_checkout.php. Not sure about the newer version.
Upvotes: 1