VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: nikolaoskaik on March 14, 2018, 22:45:31 PM

Title: Get order id and place it at a form
Post by: nikolaoskaik on March 14, 2018, 22:45:31 PM
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.
Title: Re: Get order id and place it at a form
Post by: nikolaoskaik on March 19, 2018, 19:33:57 PM
Can someone help me please.

Thanks
Title: Re: Get order id and place it at a form
Post by: Studio 42 on March 19, 2018, 22:14:03 PM
Your question have not enough information to get an answer.
Title: Re: Get order id and place it at a form
Post by: nikolaoskaik on March 20, 2018, 08:12:46 AM
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.
Title: Re: Get order id and place it at a form
Post by: Ghost on March 20, 2018, 08:23:49 AM
If this is on the order view, order number should be available as $this->orderdetails['details']['BT']->order_number.
Title: Re: Get order id and place it at a form
Post by: nikolaoskaik on March 20, 2018, 08:39:27 AM
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.
Title: Re: Get order id and place it at a form
Post by: Ghost on March 20, 2018, 09:07:11 AM
Where is this form going to be? In the order view?
Title: Re: Get order id and place it at a form
Post by: 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.
Title: Re: Get order id and place it at a form
Post by: nikolaoskaik on March 20, 2018, 14:55:28 PM
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.
Title: Re: Get order id and place it at a form
Post by: Studio 42 on March 20, 2018, 15:34:05 PM
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.
Title: Re: Get order id and place it at a form
Post by: nikolaoskaik on March 20, 2018, 17:42:43 PM
Where can i find the order view file please.
Title: Re: Get order id and place it at a form
Post by: Studio 42 on March 21, 2018, 01:55:52 AM
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
Title: Re: Get order id and place it at a form
Post by: nikolaoskaik on March 21, 2018, 10:03:47 AM
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.