Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Initials Only On Review Author


chefbob

Recommended Posts

I have a site running the latest osCommerce version. I would like to know how hard it would be to change the product reviews so that rather than the authors full name it would only display their initials.

 

For example:

 

The name Robert McGuire taken from the first and last name fields of the customers account information should display in the review as:

 

by R.M.

(I would actually like it to say "by R.M. from Pennsylvania" if the state could be added in as well)

 

Can anyone help with this??

 

Thank you in advance for your time.

Link to comment
Share on other sites

I have a site running the latest osCommerce version. I would like to know how hard it would be to change the product reviews so that rather than the authors full name it would only display their initials.

 

For example:

 

The name Robert McGuire taken from the first and last name fields of the customers account information should display in the review as:

 

by R.M.

(I would actually like it to say "by R.M. from Pennsylvania" if the state could be added in as well)

 

Can anyone help with this??

 

Thank you in advance for your time.

 

I believe it's beyond the scope of this forum to try and give detailed instructions on how to perform a significant coding effort. Significant here being defined as making changes in several areas and developing an algorithm or two.

 

However I can tell you how I would approach developing a solution, you're skills with PHP will determine how valuable this might be for you.

 

In regards to the reviews page, the authors name is retrieved from the database as a string:

 

$rInfo->customers_name

 

Once you have a string, you can manipulate it anyway that you choose, assign it to a variable then parse the string to display the results you are looking for. Another approach might be when the review is initially saved in the database, rather than use the customer's full name, save only their initials in that field as you desire. That might be a little more complex initially, however require less coding in the long run.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

  • 1 year later...
I have a site running the latest osCommerce version. I would like to know how hard it would be to change the product reviews so that rather than the authors full name it would only display their initials.

 

For example:

 

The name Robert McGuire taken from the first and last name fields of the customers account information should display in the review as:

 

by R.M.

(I would actually like it to say "by R.M. from Pennsylvania" if the state could be added in as well)

 

Can anyone help with this??

 

Thank you in advance for your time.

 

 

Did you ever figure this out??? I am looking for the same thing.... I would like reviews to show just the persons initials and what state they are from. I can not find the solution anywhere. Help is greatly appreciated. **note** I am not a coder... just a stay at home mom trying to stay at home by working from home.

 

Thanks in advance!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...