Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nicknames for reviews


Guest

Recommended Posts

Any idea how to use customer_firstname option instead of customer_name option for reviews? It's necessary to protect idenity for my customers when leaving feedback.

 

Thanks!

Link to comment
Share on other sites

Around line 48 of product_reviews_write.php, change

      tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ' ' . tep_db_input($customer['customers_lastname']) . "', '" . tep_db_input($rating) . "', now())");

to

      tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . "', '" . tep_db_input($rating) . "', now())");

Hth,

Matt

Link to comment
Share on other sites

Around line 48 of product_reviews_write.php, change
 ? ? ?tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ' ' . tep_db_input($customer['customers_lastname']) . "', '" . tep_db_input($rating) . "', now())");

to

 ? ? ?tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . "', '" . tep_db_input($rating) . "', now())");

Hth,

Matt

I am starting to believe that Matt is a OSC EXPERT,

 

way to go man... YOU ROCK with helping other ppl !!!

 

2 THUMBS UP ! + 2 of my 17 months old daughter ;)

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...