shipping.php in addons\shipment_billing\controllers\backend\
<?php
use Tygh\Registry;
use Tygh\Settings;
if (!defined(‘BOOTSTRAP’)) { die(‘Access denied’); }
if($mode == ‘edit_shipping’){
$shipping_id=$_POST[“shipping_id”];
$result = db_query('SELECT * FROM ?:order_shipment_billing WHERE id = ?s ', $shipping_id);
echo json_encode($response);
exit();
}
I created a button on the the order page in backend for accessing this controller for some existing data
tabs_content.post.tpl
The button is displaying but i am not able to pass the data to the controller to get the record back on the page. I dont want to create a submit button and refresh the whole order page so i wrote a JS function below.
shipping.php in addons\shipment_billing\controllers\backend\
if (!defined(‘BOOTSTRAP’)) { die(‘Access denied’); }
if($mode == ‘edit_shipping’){
$shipping_id=$_POST[“shipping_id”];
$result = db_query('SELECT * FROM ?:order_shipment_billing WHERE id = ?s ', $shipping_id);
echo json_encode($response);
exit();
}
I created a button on the the order page in backend for accessing this controller for some existing data
tabs_content.post.tpl
The button is displaying but i am not able to pass the data to the controller to get the record back on the page. I dont want to create a submit button and refresh the whole order page so i wrote a JS function below.