Jump to content

Hyperlink and other change in Product Comments module


Recommended Posts

Hi everyone :)

 

I'm wanting a hyperlink to appear/open in the 'Your name' (the reviewer) section of the module. For example: Mr John Smith is the person who left a review. I would like Mr John Smith to be a hyperlink (of my choosing).

 

I can manually add the hyperlinks if need be, if someone tells me what to do and where to do it :)

 

I'd also like to remove the 'Was this comment helpful to you? Yes/No' and 'Report Abuse' and 'Write your review' (these appear only when a customer is logged in) Figured this part out 

 

TIA!

Edited by kinderyum (see edit history)
Link to comment
Share on other sites

you have to alter moduel file: productcomments.tpl

there is a code:
 

<strong itemprop="author">{$comment.customer_name|escape:'html':'UTF-8'}</strong>

you can change it to:

<a href="mylink"><strong itemprop="author">{$comment.customer_name|escape:'html':'UTF-8'}</strong></a>

where mylink is an url.

  • Like 1
Link to comment
Share on other sites

you have to alter moduel file: productcomments.tpl

there is a code:

 

<strong itemprop="author">{$comment.customer_name|escape:'html':'UTF-8'}</strong>

you can change it to:

<a href="mylink"><strong itemprop="author">{$comment.customer_name|escape:'html':'UTF-8'}</strong></a>

where mylink is an url.

 

 

Hi Vekia, thank you! I will try it!

 

I see you replying to people's posts and helping out a lot. Thank you!

Link to comment
Share on other sites

you have to alter moduel file: productcomments.tpl

there is a code:

 

<strong itemprop="author">{$comment.customer_name|escape:'html':'UTF-8'}</strong>

you can change it to:

<a href="mylink"><strong itemprop="author">{$comment.customer_name|escape:'html':'UTF-8'}</strong></a>

where mylink is an url.

 

 

Is there a way to set different hyperlinks for different reviews?. I may not have expressed that very well in my original post, sorry. I have reviews left by several different people and I want to link back to their website :) 

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...