Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nickname or Screename for Reviews ???


DVBHardware

Recommended Posts

I was looking through the contrib's to see if there was any mods to show the a nickname etc. for product reviews I think coustomers would feel more comfortable to write a review if there real name wasn't used. I know I would.

 

Is there anything I missed in the contrib's that would acomplish this.

 

Jimmy

 

 

STS in www.dvbresource.com

I'm not a coder just a splicer.

Link to comment
Share on other sites

You would need to allow the customer to input a nickname with the account setup details and assign a string to this input which you can later call for reviews just in the same way that the reviews calls the cutomers id and name.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

why not go in and edit the calls to the name and just have it call the first name?

 

I think I know what you mean but, "I'm not a coder just a splicer" says it all.

 

Or if you can call the first name and the first inital of the last name, & state.

 

Just a thought

 

Jimmy

I'm not a coder just a splicer.

Link to comment
Share on other sites

  • 2 months later...

Did anybody follow through in coding this concept? It's a really good idea (either to use only first name or first name+initial last name+ state), but my coding skills are not up to par. Could somebody share this piece of the code?

Thanks!

-jennifer

 

 

 

I think I know what you mean but, "I'm not a coder just a splicer" says it all.

 

Or if you can call the first name and the first inital of the last name, & state.

 

Just a thought

 

Jimmy

Link to comment
Share on other sites

Did anybody follow through in coding this concept?  It's a really good idea (either to use only first name or first name+initial last name+ state), but my coding skills are not up to par.  Could somebody share this piece of the code?

Thanks!

-jennifer

 

Hope this helps, it will give the user's first name and the state they are form.

 

Replace these lines in product_reviews_write.php

 

 $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");

 

With this one.

 

$customer_query = tep_db_query("select pc.delivery_state, pd.customers_firstname from " . TABLE_ORDERS . " pc, " . TABLE_CUSTOMERS . " pd where pc.customers_id = '" . (int)$customer_id . "'");

 

And this line:

 

<td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b> ' . tep_output_string_protected($customer['customers_firstname'] . ' ' . $customer['customers_lastname']); ?></td>

 

With This one

 

<td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b><br>' . tep_output_string_protected($customer['customers_firstname']); ?><br><?php echo tep_output_string_protected($customer['delivery_state']); ?></td>

The way of life, and the way we work for you.

Link to comment
Share on other sites

BTW, it right now will just show the first name when people view the reviews, I will post the next change as soon as I can to show the state also, or someone else may before that...

The way of life, and the way we work for you.

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...
Hope this helps, it will give the user's first name and the state they are form.

 

Replace these lines in product_reviews_write.php

 

 $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");

 

With this one.

 

$customer_query = tep_db_query("select pc.delivery_state, pd.customers_firstname from " . TABLE_ORDERS . " pc, " . TABLE_CUSTOMERS . " pd where pc.customers_id = '" . (int)$customer_id . "'");

 

And this line:

 

<td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b> ' . tep_output_string_protected($customer['customers_firstname'] . ' ' . $customer['customers_lastname']); ?></td>

 

With This one

 

<td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b><br>' . tep_output_string_protected($customer['customers_firstname']); ?><br><?php echo tep_output_string_protected($customer['delivery_state']); ?></td>

 

Hey i found this thread and tryed out the above but for some reason now all the reviews posted on my site are by the name of "john" now >_< and i have no idea why xD Esp since none of the fake customers i created to test my site, name is john..anyone else have that trouble?

thanks for the effort though it was just what i was looking for too bad it didnt work for me :(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...