I am using the Add Customers from Admin mod and it works great so far. But I noticed that it does not allow me to add nicknames for these customers when I add them. Later, the customers have no way of adding this themselves.
Yes, they can go to the phpBB forum and add a user account themselves, BUT I am also using this nickname as their viewable name when they add product reviews in zencart (I did not want to display their real names as this is a privacy problem).
So I need each customer that I add via the mod to also have a nickname assigned by me. I figured out how to do this my adding some lines to the add_customer.php page:
I also had to add some other lines in the file which I did by simply searching for "customers_email_address", copying whatever sections had this, pasting them on the next line, and changing "customers_email_address" to "customers_nick". Yeah, I know the real php coders are turning red with this unprofessional hack approach, but that was the best I could do, since I really don't know php...and in the end, it worked!Code:<tr> <td class="main">Nickname:</td> <td class="main"> <?php if ($error == true) { if ($entry_nick_error == true) { echo zen_draw_input_field('customers_nick', $cInfo->customers_nick, zen_set_field_length(TABLE_CUSTOMERS, 'customers_nick', 50)) . ' ' . ENTRY_NICK_NAME_ERROR; } else { echo $cInfo->customers_nick . zen_draw_hidden_field('customers_nick'); } } else { echo zen_draw_input_field('customers_nick', $cInfo->customers_nick, zen_set_field_length(TABLE_CUSTOMERS, 'customers_nick', 50), true); } ?></td> </tr> </table></td> </tr>
I also tried to add some error checking in the same file to make sure that the admin user had entered the nickname and not left it blank by mistake, but that part does not seem to be working, so I will not show it here. Anyways, it is not such a big issue as this is for admin users (presumably smart).
So, now here is my problem: Everything I have done so far works. The nickname is created, and entered into the zen database and appears next to any product reviews that the customer may write. The problem is that this nickname is not being entered into the phpBB database like it should be. (Like it does on the regular create account page when a new customer signs up for an account.)
Any clues how I can make this work?
Thanks,
Thomas




