Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

30knees

Product Comments module - suggestion to show only initials

Recommended Posts

Hi,

I think it would be a nice enhancement to be able to select in the backend to show only the initials of the reviewer in the Product Comments module. We have a lot of customers who only want their initials to be shown.

Is there a way to perhaps manually change this until/if the suggestion gets picked up? I changed the name in the database at tbproductcomment and then customer_name, but it looks like tb pulls the name from somewhere else.

Edit: I am actually transferring reviews from our old shop and thus entering the reviews myself, but it's my name that's showing up, as I am logged in for the reviews. I thought about making the reviews as a guest now. So I replaced the customer ID of the reviews with 0 and added new guest IDs (random), but now none of the reviews is displaying.

Share this post


Link to post
Share on other sites

@30knees said in Product Comments module - suggestion to show only initials:

Edit: I am actually transferring reviews from our old shop and thus entering the reviews myself, but it's my name that's showing up, as I am logged in for the reviews. I thought about making the reviews as a guest now. So I replaced the customer ID of the reviews with 0 and added new guest IDs (random), but now none of the reviews is displaying.

Figured something out: The IDcustomer field cannot be 0. If it is, reviews aren't displayed. Any ideas on what to enter for the customer ID for guest reviews? There is a separate IDguest.

EDIT: The guest comment bug is resolved: https://forum.thirtybees.com/topic/755/bug-verification-guest-product-comments-do-not-show-up-on-product-comments-v4-0-1

Share this post


Link to post
Share on other sites

You can change it in the template by using a truncate can't you?

Share this post


Link to post
Share on other sites

I don't know how to code, unfortunately.

In productcomments.tpl in themes/panda/modules/productcomments I found:

```

{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}

``` But how do I take the first letter of the first name and the first letter of the last name and a dot after each, so that Mickey Mouse becomes M. M.?

Share this post


Link to post
Share on other sites

It would take something more than smarty to make it work with both the first and the last name.

Share this post


Link to post
Share on other sites

There also may be the risk of rankbrain from google penalizing and thinking the reviews are spammy. LIke @lesley said. Smarty truncate last name value to first character. How about Firstname L. ??

Share this post


Link to post
Share on other sites

It would not work for all cases, but you could use a string function to find a space and go from there. I think that is the closest you can get with smarty.

Share this post


Link to post
Share on other sites

Couldn't one redefine customername somewhere to be firstname concatenated with lastname from tbcustomer and then just truncate firstname and lastname?

Share this post


Link to post
Share on other sites

Sure, that is a possibility. It would take a custom edit to the core of the module. It is not something we would edit into the module to release just because it will likely get reviews excluded from everywhere that might aggregate them.

Share this post


Link to post
Share on other sites

For future reference: https://store.thirtybees.com/shop-modules/front-office/revws-product-reviews has this implemented.

Share this post


Link to post
Share on other sites

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...