New Zenner
- Join Date:
- Jun 2009
- Posts:
- 17
- Plugin Contributions:
- 0
What shows in a customer review?
GambitJoe:
I did this as follows....
Modify the following file:
/includes/modules/pages/product_reviews_write/header_phpAdd a query to pull the city
// customer entry query added
$customer_city_query = "SELECT entry_city FROM " . TABLE_ADDRESS_BOOK . " WHERE customers_id = :customersID LIMIT 1";
$customer_city_query = $db->bindVars($customer_city_query, ':customersID', $_SESSION['customer_id'], 'integer');
$customer_city = $db->Execute($customer_city_query);
- Modify this:
$sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_firstname'] . ' ' . $customer->fields['customer_lastname'], 'string');to:
$sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_firstname'] . ' from ' . $customer_city->fields['entry_city'], 'string');
This worked for me...hopefully it works for you.
That worked great for me, thank you for your input!
Just a note: At the page where the customer inputs the review, it says "Written By:" and has the full customer first and last name, but when they click to update the review, it doesn't list their whole name, it lists just the First Name and City like it should after your modifications.