PDA

View Full Version : Ask a Product Question



michael_s
10-16-2008, 10:00 AM
I am no programmer buy any means but I saw several request in the help forum for this contribution about not requiring customers to log in to use Ask A Product Question.
I take No Credit for this contribution.
I have edited the catalog/ask_a_question.php file as follows:

From lines 13 through 17 Find this code:

require('includes/application_top.php');
if (!tep_session_is_registered('customer_id') && (ALLOW_GUEST_TO_TELL_A_FRIEND == 'false')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

And replace With:

require('includes/application_top.php');
if (!tep_session_is_registered('customer_id') && (ALLOW_GUEST_TO_TELL_A_FRIEND == 'false')) {
$navigation->set_snapshot();
//tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

I simply commented out (//) the last line.
If this causes a security risk, someone please let me know.

More... (http://addons.oscommerce.com/info/1779)