Where is controller php for HikaShop registration

  • Posts: 11
  • Thank you received: 0
11 years 5 months ago #104773

Hi Guys,

I am trying to implement a captcha solution based on images rather than the usual distorted text (the solution is called peoplesign).
I have the custom plugin installed and I have the custom image captcha solution appearing on the registration form as I would expect.

I edited the user/registration.php file from Hikashop -> Display-> Views-> and added the code below, just above the "Register" button:

<?php
JFactory::getApplication()->triggerEvent('showPeoplesignAtCustomLocation', array('myCustomLocation1','customizationString'));
?>


I have been told that I need to add the code below to the script that processes the form, by placing the code at the beginning of the controller.php file (or the file that controls the form)

$status = JFactory::getApplication()->triggerEvent(
'checkPeoplesignFromCustomLocation',
array('myCustomLocation1'));
if (!$status[0]){
JFactory::getApplication()->redirect();
}



What file controls the HikaShop user registration form. I just need to know where to add the code that's all.

Thanks

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #104786

Hi,

You can add it at the beginning of the "register" function of the file administrator/components/com_hikashop/classes/user.php

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

  • Posts: 11
  • Thank you received: 0
11 years 5 months ago #105083

Thanks Nicolas,

It worked perfectly :)

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

Time to create page: 0.054 seconds
Powered by Kunena Forum