Use same email when ordering. Guest checkout

  • Posts: 20
  • Thank you received: 0
3 years 8 months ago #330383

-- url of the page with the problem -- : ahwp.org
-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox 86.0 (64-bit)

Our store at the moment does not want users to create an account. Just guest checkout

How can a customer make multiple checkouts at different times using the same email.
Basically I don't want it to search joomla users.

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 8 months ago #330385

Hi,

That's already the case on your shop as far as I can see. You can already make multiple checkouts at different times using the same email address.
The only restriction is that you can't use an email address from an existing Joomla user account.
So if you have customers with Joomla user accounts on your website, they won't be able to checkout as guests with their email address. You would have to either allow them to login, or delete their Joomla user account if they don't need it.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
3 years 8 months ago #330397

To show you what I mean I took a screenshot

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
3 years 8 months ago #330400

I just saw your post nicolas. Thank you. Makes sense

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 8 months ago #330399

Hi,

The way the checkout works, we can't allow someone to use an email address of an existing user account. Otherwise, it would create a security issue as anyone with the email address of a user account on your website would be able to access the addresses of that user and other sensetive data that only the user himself should access.

Now, you could try to delete the code:

			if(@$userInDB->user_cms_id) {
				$ret['status'] = false;
				$ret['messages'][] = array(JText::_('EMAIL_ADDRESS_ALREADY_USED'), 'warning');
				$reset_url = JRoute::_('index.php?option=com_users&view=reset');
				$ret['messages'][] = array('<a href="'.$reset_url.'">'.JText::_('PLEASE_CLICK_HERE_TO_RESET_PASSWORD').'</a>', 'warning');
				return $ret;
			}
in the file administrator/components/com_hikashop/classes/user.php to remove that security check.
However, I can't guarantee the proper functioning of the checkout after that.

Last edit: 3 years 8 months ago by nicolas.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum