These stats are cached, clear cache and try again and will appear all recent activities.How can I fix this?
We show in that timeline only the activity from the last three days. If we want to see only the last two days you can create a file init-custom.php in web/apps/ directory and in this file add this code:Sorry for this question.
How to remove Recent Activity panel in customer dashboard?
Or limited the views only the last 2 Activity?
hooks()->addFilter('customer_dashboard_timeline_items_list', function($timelineItems, $context) {
// In this line of code 2 means how many days to see (maximum is 3)
return array_slice($timelineItems, 0, 2);
});
hooks()->addFilter('customer_dashboard_timeline_items_list', function($timelineItems, $context) {
foreach ($timelineItems as $index => $timelineItem) {
// in this line example: 2 is how many items you want to see per day.
$timelineItems[$index]['items'] = array_slice($timelineItem['items'], 0, 2);
}
// In this line of code 2 means how many days to see (maximum is 3)
return array_slice($timelineItems, 0, 2);
});