Prevent registration without purchase

  • Posts: 197
  • Thank you received: 5
  • Hikashop Business
10 years 4 months ago #161197

I migrated to Hikashop from Virtuemart, and I am very happy about it.

However, in virtuemart there was an option to prevent users from registering unless they were completing a purchase.

More details are here: www.vm-expert.com/virtuemart-expert-blog...in-joomla-virtuemart

I was wondering how easy it would be to implement this in Hikashop.

The reason for this trick is pretty obvious to anyone that has been assaulted with fake users. Years ago at some point I had 3 times more fake users than I had legitimate.

Would this be possible in Hikashop?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
10 years 4 months ago #161222

Hi,

It's also quite easy to add with a code modification.
For example, you could add the line:

if(@$_REQUEST['ctrl']!='checkout') return false;
after the line:
function onBeforeStoreUser($user, $isnew){
in the file plugins/system/hikashopuser/hikashopuser.php and that will refuse all the registration attempts outside of the checkout.

The following user(s) said Thank You: conticreative

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

  • Posts: 197
  • Thank you received: 5
  • Hikashop Business
1 week 10 hours ago #364115

This is the only post I could find that addresses preventing registrations without purchase. It's 10 years old.
Is there something more recent or a better strategy to prevent bots from registering as a user?
I have Joomla 4 and the very latest Hikashop (updated last week Oct. 20, 2024).

Just today I found several new users that are clearly bots. How can I prevent that?

Last edit: 1 week 9 hours ago by conticreative.

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
1 week 1 hour ago #364117

Hi,

This is not a method to prevent bots from registering.
This will just forbid registrations via the Joomla registration page or the HikaShop registration page, and only allow it during the checkout.
But bots will still be able to register through the checkout registration form.

If you want to prevent bots from registering on your website, I would rather recommend using extensions.joomla.org/extension/ospam-a-not/
That's what we use on our website.
Also, we have a ReCaptcha plugin you can use to prevent bots, but nowadays, captchas can be circumvented by bots:
www.hikashop.com/support/documentation/7...-with-recaptcha.html

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

Time to create page: 0.062 seconds
Powered by Kunena Forum