News:

Support the VirtueMart project and become a member

Main Menu

Get order id and place it at a form

Started by nikolaoskaik, March 14, 2018, 22:45:31 PM

Previous topic - Next topic

nikolaoskaik

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.

nikolaoskaik


Studio 42

Your question have not enough information to get an answer.

nikolaoskaik

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.

Ghost

#4
If this is on the order view, order number should be available as $this->orderdetails['details']['BT']->order_number.

nikolaoskaik

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.

Ghost

Where is this form going to be? In the order view?

Studio 42

Simply add the ID in the button see the order view to get the right value.

nikolaoskaik

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.

Studio 42

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.

nikolaoskaik

Where can i find the order view file please.

Studio 42

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

nikolaoskaik

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.