Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with Purchase Without Account v0.55


Guest

Recommended Posts

I just downloaded the newest snapshot of 2.2CVS. I installed with and it ran errorfree. However, when I try to implement the contribution, "Purchase Without Account v0.55", I get some problems. It goes pretty well until after you enter in the personal information in the order form. But, when you press continue, ERROR!!!

Fatal error: Call to undefined function: crypt_password() in /home/annakayd/public_html/catalog/Order_Info_Process.php on line 345

What do I do about this? I know that it was written for an older snapshot. If it won't work with my snapshot, does anybody know where I can get one that works?

 

I really need help with this; you guys have been great with helping me install and configure osCommerce.

Link to comment
Share on other sites

Hi, I just downloaded the newest snapshot MS1 and the same ERROR.

 

Fatal error: Call to undefined function: crypt_password() in /home/annakayd/public_html/catalog/Order_Info_Process.php on line 345

 

I opened Order_Info_Process.php edited line 345.

 

'customers_password' => crypt_password($password), and change it to

 

'customers_password' => $password,

 

and it worked great for my store. :D

Link to comment
Share on other sites

Update to Purchase Without Account v0.55 "BUG FIX" for your returning customer password to work you need to take out lines 26 - 28 in login.php.

 

// Check that password is good

if (!validate_password($password, $check_customer['password'])) {

$HTTP_GET_VARS['login'] = 'fail';

} else {

$check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $check_customer['customers_id'] . "' and address_book_id = '1'");

$check_country = tep_db_fetch_array($check_country_query);

 

REMOVE THIS LINE

 

if (!validate_password($password, $check_customer['password'])) {

$HTTP_GET_VARS['login'] = 'fail';

} else

Link to comment
Share on other sites

  • 4 weeks later...

I have been getting the same error with my setup. Funny thing is i did the same thing to "Fix/hack" it.....

 

'customers_password' => crypt_password($password), and change it to

 

'customers_password' => $password, <---this would be in the login.php file in the bottom half.

 

 

However, my feeling is that this opens up a security hole....if the password is not encrypted then you are sending your password in plain sight....basically across the net.

 

It appears the function crypt_password() may not be working working properly with this contrib.

 

I did try the suggested fix above, but this does not appear to fix the crypt_password problem.

 

I am hoping the author can shed some light on this subject as my site relys on customers not having to register if they don't want to. I would like for it to be as secure as possible without having an unencrypted password.

 

Thanks for any help.

Link to comment
Share on other sites

  • 1 month later...

I'm getting the same error. Like the original poster, I receive the error after choosing 'puchase without account', filling out the name and address info and pressing continue. But the customer has not submitted an account password yet, so is this even an issue?

 

I'm actually a little confused....the documentation shows there's a default blank password, and that you should set one for security reasons. I hadn't done this yet...what is the pass actually for?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...