validationEngine

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 8 months ago #101904 by Bill
validationEngine was created by Bill
Please could you direct me to the file used to compile the new subscription form. I want to include a specific format for telephone numbers using the JQuery Validation Engine. I also want to change the order of the fields shown.

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

More
6 years 8 months ago #101940 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validationEngine
Hi

1. To change ordering of the fields, you can go to Membership Pro -> Custom Fields to change the order. No need for modifying the code

2. For validate phone format, I think you will need to check and modify the code of components/com_osmembership/helper/jquery.php.

Regards,

Tuan
The following user(s) said Thank You: Bill

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

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 11 months ago #125009 by Bill
Replied by Bill on topic validationEngine
Hi Tuan,

I have changed the jquery code for telephone numbers on the Member Subscription Form but every time I update osmembership it is overwritten, of course. I have followed your code customization article in the osmembership documentation to try and create an override file, but unfortunately, it doesn't work. The recommended skeleton in github also doesn't exist so, as I am not an expert in extending classes, is it possible for you to give me an example of such an override file which I could use?

Regards,

Bill

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

More
4 years 11 months ago #125016 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validationEngine
Hi Bill

You can upload the modified file which you made here. I will then implement it as override and send it to you, guide you to upload so that it won't be lost when you update to future releases of the extension

Regards,

Tuan

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

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 11 months ago #125022 by Bill
Replied by Bill on topic validationEngine
Hi Tuan,

Many thanks for your help. This is really helpful and I appreciate it.

Regards,

Bill
Attachments:

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

More
4 years 11 months ago #125035 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validationEngine
Hi Bill

1. Create a folder called override under components/com_osmembership/helper folder

2. Get this file, unzip it, upload the received file to components/com_osmembership/helper/override folder (which you just created above)

After that, the change won't be lost when you update to future releases of Membership Pro

Regards,

Tuan
Attachments:

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

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 11 months ago #125049 by Bill
Replied by Bill on topic validationEngine
Many thanks Tuan.

It works perfectly. Not quite sure what I was doing wrong, but this all works fine.

Regards,

Bill

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

More
4 years 11 months ago #125052 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validationEngine
Great. The most important thing is it's override, so it won't be lost when you update to future releases of the extension

Regards,

Tuan

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

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 5 months ago #147801 by Bill
Replied by Bill on topic validationEngine
Hi Tuan,

You kindly solved my problem previously with an override file. But now that doesn't seem to be working. It looks like the jquery.php file has changed from what it used to be, so perhaps this override file no longer works. Can you help please?

Regards,

Bill

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

More
2 years 5 months ago #147806 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic validationEngine
Hello Bill

The modification is now more complicated than before (because we need to adjust the code to have it works with Joomla 4). Please submit a support ticket sending us super admin account of the site. We will try to help with the change

Regards,

Tuan

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