Hi, how can i get the order id and put them on a form.
What i want to do is to modify an order after order is made and the only think i want is the order id so i know which client have made changes.
I use Joomla 3 with Virtuemart 3.
Can someone help me please.
Thanks
Your question have not enough information to get an answer.
Hi,
What I want to do is allow the customer to modify the order after completing it. That is, to have a button in the order history in each order and by pressing it to move to a table that will fill in a form, see attachment file. And the only thing I would like to transfer is the order code from the order that preceded it.
If this is on the order view, order number should be available as $this->orderdetails['details']['BT']->order_number.
The image is the new form who can modifie the client.
The only think on that image is, from the previous order, the order number.
How to get the order number and put them them in this new field.
Where is this form going to be? In the order view?
Simply add the ID in the button see the order view to get the right value.
I will use breezingforms, if it possible to add there the order ID, so the form will be on new page. The clients will fill there the rest of fields and send the modified order back to admin.
Quote from: Studio 42 on March 20, 2018, 13:11:02 PM
Simply add the ID in the button see the order view to get the right value.
Where can i find the order view file please.
I really mean that if you dont know how to find the file, then please read Joomla and PHP doc.
folder is component/com_virtuemart/views/orders/tmpl
Ok found the line of code from details order. Now how can i use that line of code inside a new page that has a form inside from breezingforms please.