design/backend/templates/addons/MY_ADDON/hooks/orders/payment_info.post.tpl
```<br />
<br />
to<br />
```php
app/addons/MY_ADDON/controllers/backend/orders.post.php
```<br />
<br />
<br />
<br />
<br />
I can get the value to .tpl file. by using this:<br />
orders.post.php<br />
```php
<br />
if ($mode == 'details') {<br />
$data = db_get_row("SELECT invoice_no FROM ?:cce_order_invoice WHERE order_id = ?i", $_REQUEST['order_id'] );<br />
Registry::get('view')->assign('invoice', $data);<br />
}<br />
```<br />
payment_info.post.tpl<br />
```php
value="{$invoice.invoice_no}"
```<br />
I don't know how .tpl file need to be designed. What should be in name, id and value tags in input field.<br />
<br />
I want to update column in my_table. What to put in<br />
```php
<br />
if ($mode == 'update_details') {<br />
//codes...??<br />
}<br />
Yes. I too need the same requirement in buynow button that i have created. Im having a button nearby addtocart. So i have created a addon with add_to_cart.post.tpl.
I want to redirect the page to checkout after the item is added to cart. Im unable to redirect it.I dont know why. So i store the redirect url in controller and make the page to be redirected after the variable is assigned with the url.
But i cant get value in that variable.
How to do this. Why cant i redirect directly to checkout?