validationEngine

  • Bill
  • Bill's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 years 2 weeks 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
2 years 1 week 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
  • Bill's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
3 months 5 days 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
3 months 4 days 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
  • Bill's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
3 months 4 days 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
3 months 4 days 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
  • Bill's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
3 months 3 days 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
3 months 3 days 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.