Hello,
Joomla3+VM3.
I need to export the order data to CSV file after click on "Submit order" button on Shopping cart page.
In what file and what place I need to add my PHP code?
Please help me.
Thank you,
Anton.
you need to build a vm plugin that triggers on plgVmOnUpdateOrderPayment
Have done quite a few so contact if interested
I already have a PHP code to make export order data.
But I can't find the function that handles the click on a button.
Which VM file contain this function?
I told you.. a plugin that triggers on plgVmOnUpdateOrderPayment
that's how VM works
I found function confirmedOrder() in the com_vm/helpers/cart.php file.
There is $orderDetails in this function. I think it contains order data.
How can I get order details from $orderDetails like name, address, products name, quantity, total amount...
FFS .. as u seem determined to ignore my advice this is the last try
function plgVmOnUpdateOrderPayment ($data,$old_order_status) {
}
$data contains everything u need
e.g
$data->virtuemart_order_id
then do a query for anything not in it
In what VM fie I can find plgVmOnUpdateOrderPayment function?
Or I need create it?
read the basic info on plugin development - afraid not up to date http://docs.virtuemart.net/tutorials/development/84-extension-plugins.html
study other vm custom plugins