Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing client names from reviews


Guest

Recommended Posts

Posted

Removing client names from reviews

 

Can anyone tell me how to display the reviews without the client names showing up on the web site to

Posted

Look in:

 

/reviews.php

/includes/modules/reviews.php

 

Anywhere you see the authors_name you will want to edit this.

 

Note: a windows search on the field to remove, ie. authors_name found these files quickly. :sigh:

  • 2 weeks later...
Posted

Thanks Linda, Ajeh!,

 

I've been tring to find out, where to remove the "word count" and "date added" from the reviews page. Your post pointed me in the right direction. :wink:

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

  • 4 years later...
Posted

Can anyone tell me how to change the Reviewer's name in Product Reviews from the full name to just their first name? I know where it goes, but don't know how to retrieve the Fist Name. It must be somewhere because it is used in the registration section.

 

I'm a newbie with PHP, but can do fundamental changes. Thanks.

Posted
Can anyone tell me how to change the Reviewer's name in Product Reviews from the full name to just their first name? I know where it goes, but don't know how to retrieve the Fist Name. It must be somewhere because it is used in the registration section.

 

I'm a newbie with PHP, but can do fundamental changes. Thanks.

 

 

Got it!!!

 

Modify product_reviews_write.php

 

In line 27 remove the customer_lastname part leaving: "select customers_firstname from " . TABLE_CUSTOMERS

 

In line 48 remove the part with customer_lastname leaving in only the part with customer_firstname

 

Net effect is that the reviews table gets updated with a customer name comprised of only the customer's first name. If you have old reviews, go into the table (phphMyAdmin) and edit out the last names for each review.

 

This provides some privacy to customers providing a review.

 

Next need someone to figure out how to add an input field so the customer could give themselves a screen name and maybe location for reviews. Keep their real name hidden. Right now that is beyond my OSC programming skills.

Posted

Then I figured I needed to fix the Admin section because the last name is now gone. The quick fix: add the customer ID number as a cross reference in case you need to see who it really is since it is in the reviews table that is already getting called up.

 

In admin/reviews.php

 

In line 75

$reviews_query = tep_db_query("select r.reviews_id, r.products_id, r.customers_name, r.customers_id, 
r.date_added, r.last_modified, r.reviews_read, rd.reviews_text, r.reviews_rating from " 
. TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.reviews_id = '" . 
(int)$rID . "' and r.reviews_id = rd.reviews_id");

 

Line 90

<td class="main" valign="top"><b><?php echo ENTRY_PRODUCT; ?></b> <?php echo $rInfo->products_name; 
?><br><b><?php echo ENTRY_FROM; ?></b> <?php echo $rInfo->customers_name; ?><br><b>Customer ID:
</b> <?php echo $rInfo->customers_id; ?><br><br><b><?php echo ENTRY_DATE; ?></b> <?php echo
tep_date_short($rInfo->date_added); ?></td>

 

Simple, not elegant fix. Maybe someone better at this can come up with a cleaner better solution. At least this gets the job done for now.

Archived

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

×
×
  • Create New...