Hi @mohammadr3z
Thanks for the screenshot. I have looked into it but it’s not clear to me.
Can you please tell me what exactly you are trying to do and on what screen (I mean Download History, Purchase History etc) ?
This will help me to understand your concern clearly so I can help you according to it.
Hello
Thank you for the reply
When i change $download[‘name’] in the code above to $file[‘name’]
The file name column is corrupted
Below you will see the code change before and after.
Before: http://prntscr.com/noahe1
After: http://prntscr.com/noai28
Hi @mohammadr3z
The code you are referring is I think templates/history-downloads.php
You can not use $file[‘name’] directly. It is not accessible. It is an array so first we need to get the First file name. You can use below code after this line $name = $download['name'];
if( $download_files ) {
$file_first_key = key( $download_files );
$name = !empty( $download_files[ $file_first_key ]['name'] ) ? $download_files[ $file_first_key ]['name'] : $name;
}
Thank you very much
it worked
You are doing great