VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rage76 on May 07, 2014, 07:35:20 AM

Title: does Virtuemart trigger the onBeforeSave and onAfterSave events?
Post by: rage76 on May 07, 2014, 07:35:20 AM
Hi, I am looking for an anti-spam solution for VM registration. Can anyone guide me a good one?

Alternately, does anyone know if Virtuemart triggers the onBeforeSave and onAfterSave events?

Thanks

J 2.5.19
VM 2.6.0
Title: Re: does Virtuemart trigger the onBeforeSave and onAfterSave events?
Post by: AH on May 07, 2014, 09:40:17 AM
VM 2.6.0 now utilises Joomla Captcha for registration

Enable the Joomla Captca - ReCaptcha plugin

Get the key:

https://www.google.com/recaptcha/admin#whyrecaptcha (https://www.google.com/recaptcha/admin#whyrecaptcha)

Then in VM Admin/Configuration

Enable Use "ReCaptcha for Registration"



Title: Re: does Virtuemart trigger the onBeforeSave and onAfterSave events?
Post by: rage76 on May 07, 2014, 17:23:12 PM
Thanks for the support Hutson. That was done nice & easy. 2 more things though:

1. The "register & cancel" buttons show on the top of the form. Can they be brought below the captcha?

2. I have a feeling that spam registrations do not use the registration form and somehow byepass it because I have enabled email activation link to enable & activate the registration process; but the spam registrations mostly show that they are enabled & activated !!

Your suggestions on this shall be very helpful.
Title: Re: does Virtuemart trigger the onBeforeSave and onAfterSave events?
Post by: GJC Web Design on May 07, 2014, 18:38:19 PM
1. by changing your template with an over ride

2. seems unlikely - if you really do require activation (it will kill your shop - 50% will not know what to do - the rest won't find the email..  ;)  )
and you have tested it working how good they possibly bypass a key core joomla process?
Title: Re: does Virtuemart trigger the onBeforeSave and onAfterSave events?
Post by: rage76 on May 08, 2014, 09:59:18 AM
Hello GJC

Thanks for the reply to my query. I have disabled the activation. Will wait and see the fate of spam registrations with this !!

As for the "register & cancel" button, can you please guide me to the file I need to override?

Warm regards

Rajesh
Title: Re: does Virtuemart trigger the onBeforeSave and onAfterSave events?
Post by: GJC Web Design on May 08, 2014, 10:11:03 AM
what sort of spam regs are they?  just idiots, people trying to leave spam links?

I run a lot of shops and don't find spammy registrations particually a problem with VM as there's too many fields and they are lazy

joomla spam registrations is another matter - plenty of those

to over ride the buttons do an over ride for components/com_virtuemart/views/user/tmpl/edit_address.php