Originally Posted by
acetate
First to get the nickname field to appear on the customer account creation page you need to install and enable phpBB integration:
- I installed phpBB to a subfolder in my zencart folder.
- Ran the phpBB index.php file to setup phpBB and installed it into the same database as zencart with a phpBB_ prefix on all tables.
- Opened the includes/configure.php zencart file and edited the following line to reflect the location of my phpBB install: define('DIR_WS_PHPBB', '/');
- In zencart admin went to Configuration >> My Store and set Enable phpBB linkage to true
So now you get a customers_nick field in the customers table and customers must enter a unique nickname when they sign up for an account.
Then I edited this file /includes/modules/pages/product_reviews_write/header_php.php (*which is a core file!!!! proceed at your own risk*) and added " , customers_nick " to the end of this line:
$customer_query = "SELECT customers_firstname, customers_lastname, customers_email_address
Now I changed this line from this:
$sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname'], 'string');
to this:
$sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_nick'], 'string');
That's it - all entries in the reviews table now use the customers nickname as the name of the reviewer and this is what is displayed in the catalog. Done on v1.3.7
Bookmarks