Amin Darvand
Amin Darvand

Reputation: 367

Having VirtueMart to Update a Specific Table on Success

I was wondering where I should add my own table update codes in VirtueMart, when a successful transaction occurs.

Upvotes: 1

Views: 59

Answers (2)

emmanuel
emmanuel

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

Hobbes
Hobbes

Reputation: 801

In old VM it would be in ps_checkout.php. Not sure about the newer version.

Upvotes: 1

Related Questions