Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reviews function -- different username?


kingsnake

Recommended Posts

Hello -

 

Got my client's site up and running without any hitch! AOL users not withstanding (always a problem with AOL...)

 

One minor complaint was the reviews. I have it set up to display the review(s) on the product page the review corresponds to. Everything works, looks good however the user's name is shown. Since OS Commerce doesn't have a feature to add in an alias / nickname some users have complained about their actual name being shown.

 

The display shows:

 

<td valign="top" class="mainBox"><?php echo sprintf(tep_image(DIR_WS_IMAGES . 'stars_' . $reviews_values['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews_values['reviews_rating']))) . ' – <i>' . $reviews_values['customers_name'] . ', ' . $date_added . '</i><br>' . htmlspecialchars($reviews_values['reviews_text']) ?></td>

 

With $reviews_values['customers_name'] showing their full name. When I tried to replace 'customers_name' with 'customers_firstname' then nothing would display.

 

Is it possible to show just a user's first name?

 

My other question is if there's a module / contribution that allows for nicknames to be added so my client's users can review and post without showing their actual name.

 

Thanks!

 

King Snake

Link to comment
Share on other sites

In the query that creates $reviews_values you need to select the customers_first_name or whatever the column is called you can then do:

 

$reviews_values['customers_first_name']

Your online success is Paramount.

Link to comment
Share on other sites

Hey -

 

Thanks for getting back. well, according to the database, the first names should be 'customers_firstnames' however when I change the code to reflect this then it won't display any name.

 

I'll have to go through the code to see if there's anything amiss, however it doesn't look like it.

 

King Snake

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...