guest order trace deined

there is a place for order tracing on " My account " section via email.

I did a test with guest checkout , ( the order is incomplete ) , when i insert the email to “Track my order(s):” form.

An email sent from the system, but i have a problem here, all the two link is not available for the order tracking,

the order tracking link , i received the below message,



Access denied[color=#2D2D2D]



You don't have permission to access the page.

[/color]

the second link for all orders overview, but found nothing.



anyone, please help me. Thank you.

order tracking.jpg

order tracking.jpg

Hello, londonman!



The system works this way by default because the order gets incompleted status. If you want to track such orders please find “orders.php” file located in the “controllers/customer/orders” directory of your CS-Cart installation. You need to disable the following piece of code


// Check order status (incompleted order)
if (!empty($allowed_id)) {
$status = db_get_field('SELECT status FROM ?:orders WHERE order_id = ?i', $_REQUEST['order_id']);
if ($status == STATUS_INCOMPLETED_ORDER) {
$allowed_id = 0;
}
}




You can disable the code this way

// Check order status (incompleted order)
/*if (!empty($allowed_id)) {
$status = db_get_field('SELECT status FROM ?:orders WHERE order_id = ?i', $_REQUEST['order_id']);
if ($status == STATUS_INCOMPLETED_ORDER) {
$allowed_id = 0;
}
}*/




Best regards, Alt-team

HI Alt-team,



Thank you very much for your reply.

A big helps.

Sorry for my delay on reply. :mrgreen: