Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Review Rating - Display Name as Username

Review Rating - Display Name as Username 10 years 9 months ago #5158

When a user leaves a review/rating, there real name is used.
I want to have this display the username instead. IS this something in the puremart override files or will I need to tweak core virtuemart?


Also I want any guest users to be able to leave a review/rating, In VM there are only settings for registered users or users that have purchased the product.
I'm guessing this is a core mod, but do you have any idea on it or can you point me in any direction for help?

Is there a better review/rating solution that anybody has used?

Many thanks in advance,
Andy
The administrator has disabled public write access.

Review Rating - Display Name as Username 10 years 9 months ago #5177

Sorry - these will all be core changes - I don't know these files sorry.. never had any need to look in that direction..
assume the ratings.php model...

Try the VM forum

Cheers
Last Edit: 10 years 9 months ago by John.
The administrator has disabled public write access.

Review Rating - Display Name as Username 10 years 9 months ago #5221

OK I managed to figure this out on my own and done it without hacking core Virtuemart.
Managed to do it as an overide & would just thought I would share.

I copied the file in com_virtuemart/views/productsdetails/tmpl/default_reviews.php and moved it to templates/MYTEMPLATE/html/com_virtuemart/productdetails

Then in line 79 I Changed this line;
<span class="bold"><?php echo $review->customer ?></span>

to
<span class="bold"><?php echo $review->username ?></span>

Feeling all chuffed with myself now! :D
The administrator has disabled public write access.

Review Rating - Display Name as Username 10 years 9 months ago #5224

Excellent!

Thanks for sharing

Cheers
The administrator has disabled public write access.
Time to create page: 0.106 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo