Jump to content


Corporate Sponsors


Latest News: (loading..)

gtilflm

Member Since 30 Dec 2008
Offline Last Active May 08 2012, 21:56
-----

Topics I've Started

Payment methods

30 April 2012, 21:58

Hi. Just wondering what people think about charging customers a fee for paying via PayPal. My services really don't need immediate payment so I'm ok with waiting for the check in the mail. I've tried offering a small discount for paying by check, but I'm still getting a lot of customers paying via PayPal and the fees are annoying me.

Does anyone have ideas on alternative payment methods? eChecks? Other cheaper solutions?

Thanks!

Login for new module

10 December 2011, 15:31

I run a math tutoring business and I'm developing "side module" where the tutors I hire can login and do various things.

I've basically copy/pasted the relevant code from login.php, to the Tutor Login page, but tep_validate_password is continuously returning an error when I correctly enter a password and login.

My section of code below contains the error checking lines of...

I run a math tutoring business and I'm developing "side module" where the tutors I hire can login and do various things.
I've basically copy/pasted the relevant code from login.php, to the Tutor Login page, but tep_validate_password is continuously returning an error when I correctly enter a password and login.
My section of code below contains the error checking lines of...

The relevant code then is...

<?php
  require('includes/application_top.php');

// Redirect to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)
  if ($session_started == false) {
	    tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
  }
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN);
  $error = false;
  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
	    $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
	    $password = tep_db_prepare_input($HTTP_POST_VARS['password']);
// Check if email exists
	    $check_tutor_query = tep_db_query("select * from tutors where tutor_email = '" . tep_db_input($email_address) . "'");
	    if (!tep_db_num_rows($check_tutor_query)) {
		  $error = true;
	    } else {
		  $check_tutor = tep_db_fetch_array($check_tutor_query);
// Check that password is good
		  if (!tep_validate_password($password, $check_tutor['password'])) {
			    $error = true;
  echo $password . '------' . $check_tutor['password'];
  print_r ($check_tutor);
		  } else {
			    if (SESSION_RECREATE == 'True') {
				  tep_session_recreate();
			    }
			    $tutors_id = $check_tutor['tutors_id'];
			    tep_session_register('tutors_id');

  //Redirect to the tutor_portal
			    tep_redirect(tep_href_link('tutor_portal.php'));
			    echo $tutors_id;
  echo $email_address;
		  }
	    }
  }
?>

The crazy thing is that the echo $password . '------' . $check_tutor['password']; line shows that the plain password matches the encrypted one.


Please help as this is driving me crazy!

Thanks.

Login for new module

06 December 2011, 06:18

I run a math tutoring business and I'm developing "side module" where the tutors I hire can login and do various things.

I've basically copy/pasted the relevant code from login.php, to the Tutor Login page, but tep_validate_password is continuously returning an error when I correctly enter a password and login.

My section of code below contains the error checking lines of...

  echo $password . '------' . $check_tutor['password'];
  print_r ($check_tutor);


The relevant code then is...

<?php
  require('includes/application_top.php');
 
// Redirect to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)
  if ($session_started == false) {
	tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
  }
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN);
  $error = false;
  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
	$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
	$password = tep_db_prepare_input($HTTP_POST_VARS['password']);
// Check if email exists
	$check_tutor_query = tep_db_query("select * from tutors where tutor_email = '" . tep_db_input($email_address) . "'");
	if (!tep_db_num_rows($check_tutor_query)) {
	  $error = true;
	} else {
	  $check_tutor = tep_db_fetch_array($check_tutor_query);
// Check that password is good
	  if (!tep_validate_password($password, $check_tutor['password'])) {
		$error = true;
  echo $password . '------' . $check_tutor['password'];
  print_r ($check_tutor);
	  } else {
		if (SESSION_RECREATE == 'True') {
		  tep_session_recreate();
		}
		$tutors_id = $check_tutor['tutors_id'];
		tep_session_register('tutors_id');
 
  //Redirect to the tutor_portal
		tep_redirect(tep_href_link('tutor_portal.php'));
		echo $tutors_id;
  echo $email_address;
	  }
	}
  }
?>


The crazy thing is that the echo $password . '------' . $check_tutor['password']; line shows that the plain password matches the encrypted one.



Please help as this is driving me crazy!

Thanks.

No extra order email if buyer's address is unverified?

02 August 2011, 23:49

Hello all. I have v 2.2 RC2 and the extra email feature is turned on so that I get an email notification of when an order is placed. I've been noticing that if a customer pays via PayPal and they have an unverified address, then I don't get an email.

Is this just me, or is this a known issue? If it's a known issue, does it have a fix?

Thanks!