Hello Ryan,
You need to edit following PHP file:
[cscart_dir]/include/customer/profiles.php
find there:
require $common_dir.'profiles.php';
and paste following piece of code before it:
if (!empty($auth['user_id'])) {
$smarty->assign('orders', fn_search_orders("$db_tables[orders].user_id='$auth[user_id]'", "$db_tables[orders].timestamp DESC"));
} elseif (!empty($auth['order_ids'])) {
$smarty->assign('orders', fn_search_orders("$db_tables[orders].order_id IN (".implode(',', $auth['order_ids']).")", "$db_tables[orders].timestamp DESC"));
}
So, you should get the following as result:
if (!empty($auth['user_id'])) {
$smarty->assign('orders', fn_search_orders("$db_tables[orders].user_id='$auth[user_id]'", "$db_tables[orders].timestamp DESC"));
} elseif (!empty($auth['order_ids'])) {
$smarty->assign('orders', fn_search_orders("$db_tables[orders].order_id IN (".implode(',', $auth['order_ids']).")", "$db_tables[orders].timestamp DESC"));
}
require $common_dir.'profiles.php';
This will let you show all customer orders on the account update page.