Hi,
Yes, that's a way to go about it. However, doing it like that means that you'll have to redo the change after each update.
An alternative would be to develop a plugin with the onBeforeVoteCreate event to force the vote_pseudo value before it's saved in the database.
A simpler approach would be to leave it as is and instead modify the vote / listing.php view file via the menu Display>Views to add the code:
if(!empty($elt->vote_user_id)) {
$userClass = hikashop_get('class.user');
$user = $userClass->get($elt->vote_user_id);
if(!empty($user->name))
$elt->vote_pseudo = $user->name;
}
after the line:
foreach($this->elts as $elt) {
so that it can load dynamically the user's name from the user entry in the database on the comments listing on the frontend.