Jump to content

 

eComLabs

Member Since 27 Jan 2014
Offline Last Active May 27 2022 01:50 PM
*****

Posts I've Made

In Topic: Add Tab In Order Details Page

27 May 2022 - 01:53 PM

At first, try to replace

{include file="addons/deliver_project/components/manage.tpl" object_id=$smarty.request.order_id object_type="order"}

with 

TEST

and check if this label be displayed in tab


In Topic: Inserting Into Database Table

27 May 2022 - 08:06 AM

So what happens if you replace

 'trnsction_id' =>  $tranID ,

with

 'trnsction_id' =>  123,

In Topic: Add New Button

26 May 2022 - 01:58 PM

Thank you for letting us know it


In Topic: Post Request From Smarty

26 May 2022 - 01:57 PM

 

Orders.php included the following code to change the status of order.

if ($mode == 'update_status') {
fn_print_r($_REQUEST);
$order_info = fn_get_order_short_info($_REQUEST['id']);
$old_status = $order_info['status'];
if (fn_change_order_status($_REQUEST['id'], $_REQUEST['status'], '', fn_get_notification_rules($_REQUEST))) {
$order_info = fn_get_order_short_info($_REQUEST['id']);
fn_check_first_order($order_info);
$new_status = $order_info['status'];
if ($_REQUEST['status'] != $new_status) {
Tygh::$app['ajax']->assign('return_status', $new_status);
Tygh::$app['ajax']->assign('color', fn_get_status_param_value($new_status, 'color'));

fn_set_notification('W', __('warning'), __('status_changed'));
} else {
fn_set_notification('N', __('notice'), __('status_changed'));
}
} else {
fn_set_notification('E', __('error'), __('error_status_not_changed'));
Tygh::$app['ajax']->assign('return_status', $old_status);
Tygh::$app['ajax']->assign('color', fn_get_status_param_value($old_status, 'color'));
}

if (empty($_REQUEST['return_url'])) {
exit;
} else {
return array(CONTROLLER_STATUS_REDIRECT, $_REQUEST['return_url']);
}
}

 

 

The cost exists in the orders.php of backend. Have you copied the code to store-front controller?


In Topic: Post Request From Smarty

26 May 2022 - 05:49 AM

It seems like the customers does'nt have the permission to post this request how can i change the permissions for the customers?

 

Yes, orders.php controller does not have a code to change order status