DVBHardware Posted December 2, 2004 Share Posted December 2, 2004 I was looking through the contrib's to see if there was any mods to show the a nickname etc. for product reviews I think coustomers would feel more comfortable to write a review if there real name wasn't used. I know I would. Is there anything I missed in the contrib's that would acomplish this. Jimmy STS in www.dvbresource.com I'm not a coder just a splicer. Link to comment Share on other sites More sharing options...
241 Posted December 2, 2004 Share Posted December 2, 2004 You would need to allow the customer to input a nickname with the account setup details and assign a string to this input which you can later call for reviews just in the same way that the reviews calls the cutomers id and name. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2004 Share Posted December 2, 2004 why not go in and edit the calls to the name and just have it call the first name? Link to comment Share on other sites More sharing options...
DVBHardware Posted December 3, 2004 Author Share Posted December 3, 2004 why not go in and edit the calls to the name and just have it call the first name? <{POST_SNAPBACK}> I think I know what you mean but, "I'm not a coder just a splicer" says it all. Or if you can call the first name and the first inital of the last name, & state. Just a thought Jimmy I'm not a coder just a splicer. Link to comment Share on other sites More sharing options...
oboecog Posted February 4, 2005 Share Posted February 4, 2005 Did anybody follow through in coding this concept? It's a really good idea (either to use only first name or first name+initial last name+ state), but my coding skills are not up to par. Could somebody share this piece of the code? Thanks! -jennifer I think I know what you mean but, "I'm not a coder just a splicer" says it all. Or if you can call the first name and the first inital of the last name, & state. Just a thought Jimmy <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
poorman Posted February 5, 2005 Share Posted February 5, 2005 Did anybody follow through in coding this concept? It's a really good idea (either to use only first name or first name+initial last name+ state), but my coding skills are not up to par. Could somebody share this piece of the code?Thanks! -jennifer <{POST_SNAPBACK}> Hope this helps, it will give the user's first name and the state they are form. Replace these lines in product_reviews_write.php $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); With this one. $customer_query = tep_db_query("select pc.delivery_state, pd.customers_firstname from " . TABLE_ORDERS . " pc, " . TABLE_CUSTOMERS . " pd where pc.customers_id = '" . (int)$customer_id . "'"); And this line: <td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b> ' . tep_output_string_protected($customer['customers_firstname'] . ' ' . $customer['customers_lastname']); ?></td> With This one <td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b><br>' . tep_output_string_protected($customer['customers_firstname']); ?><br><?php echo tep_output_string_protected($customer['delivery_state']); ?></td> The way of life, and the way we work for you. Link to comment Share on other sites More sharing options...
poorman Posted February 5, 2005 Share Posted February 5, 2005 BTW, it right now will just show the first name when people view the reviews, I will post the next change as soon as I can to show the state also, or someone else may before that... The way of life, and the way we work for you. Link to comment Share on other sites More sharing options...
TCwho Posted March 1, 2005 Share Posted March 1, 2005 Hey thats a good idea about showing the state. I had taken out the lastname on my own this morning and just happen to find this while searching for something else ... Drop_Shadow How Did You Hear About Us Email HTML Order Link ---- GMT -5:00 Link to comment Share on other sites More sharing options...
sugarsnow~ Posted October 3, 2006 Share Posted October 3, 2006 Hope this helps, it will give the user's first name and the state they are form. Replace these lines in product_reviews_write.php $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); With this one. $customer_query = tep_db_query("select pc.delivery_state, pd.customers_firstname from " . TABLE_ORDERS . " pc, " . TABLE_CUSTOMERS . " pd where pc.customers_id = '" . (int)$customer_id . "'"); And this line: <td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b> ' . tep_output_string_protected($customer['customers_firstname'] . ' ' . $customer['customers_lastname']); ?></td> With This one <td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b><br>' . tep_output_string_protected($customer['customers_firstname']); ?><br><?php echo tep_output_string_protected($customer['delivery_state']); ?></td> Hey i found this thread and tryed out the above but for some reason now all the reviews posted on my site are by the name of "john" now >_< and i have no idea why xD Esp since none of the fake customers i created to test my site, name is john..anyone else have that trouble? thanks for the effort though it was just what i was looking for too bad it didnt work for me :( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.