Please post all pre-sales questions of all products on this forum

OSM MEMBERSHIP PRO UPGRADE

  • STEFANO
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #68056 by STEFANO
OSM MEMBERSHIP PRO UPGRADE was created by STEFANO
Hi, I have Membership Pro 1.5.4 installed on Joomla 2.5. It's all ok from 3 years. Now I need to create a custom field "codice fiscale" ( tax code) and I need to verify if "codice fiscale" is a real tax code for italian law.

I have a PHP script to do this thing. Now...I need a new version of Membership pro to embed this script or I can do this with my version?

when upgrading (if I need to do) what currently works perfectly it may no longer work? because now it works really well.

many thanks

Stefano

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

  • What No Website
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
9 years 8 months ago #68059 by What No Website
Replied by What No Website on topic OSM MEMBERSHIP PRO UPGRADE
Hi Stefano

I'm running Membership Pro 1.6.8 and there's an option "Custom Fields". Here you can add a custom field for users to insert anything you like from weight to tax codes or anything you like.

That field appears on the signup form.

Joomla & Hand Coded Web Design
What no Website

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

  • STEFANO
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #68062 by STEFANO
Replied by STEFANO on topic OSM MEMBERSHIP PRO UPGRADE
Hi, thanks.

Yes I know custom fields, but I need to embed a verification formula for the data inserted from user.
Where / how can I embed a little php script to do this check?

Thanks

Stefano

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

  • What No Website
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
9 years 8 months ago #68063 by What No Website
Replied by What No Website on topic OSM MEMBERSHIP PRO UPGRADE
Explain "verification formula" Stefano.

Do you mean a Captcha field...?

Joomla & Hand Coded Web Design
What no Website

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

  • STEFANO
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #68067 by STEFANO
Replied by STEFANO on topic OSM MEMBERSHIP PRO UPGRADE
No no a little script ( PHP o Javascript) to verify if the inserted data is a real italian codice fiscale ( like tax code ).
Is a 16 HEX digit ( based on date of birth, birth place, name and surname.
I have to ask the customer. I do not want to calculate the tax code, because otherwise I should interact with the other fields, but at least check what you have entered is 16 hex digits.
actually writing this post, I was reminded that I can interact with other fields, so I can only confirm that it is 16 hex digits and what I already know how to do it.
but if the customer wants the automatic calculation, I think is a problem.

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

  • What No Website
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
9 years 8 months ago #68070 by What No Website
Replied by What No Website on topic OSM MEMBERSHIP PRO UPGRADE
if I were doing this I would create a seperate hand coded form that asks for this and then use REGEX to validate the input.

Joomla & Hand Coded Web Design
What no Website

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 8 months ago #68120 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic OSM MEMBERSHIP PRO UPGRADE
Infact, you will need to :

1. Upgrade to latest version of Membership Pro. Don't worry about the upgrade, it will keep all your old data and the new version is much better compare to the old version. Everything which works on your site at the moment will still work, plus there are more features available in the extension.

2. To validate the code, there will be some customization, there are two ways :

- Adding a custom validation rule. This will include adding a method to a controller and also, some javascript modification to make an ajax call to validate the code right after users entered the data into the field.

- Using server side validation code. In this case, you can add the validation code to the validate method of OSMembershipModelRegister class to validate the tax code which users entered. If it is wrong, you can return a message and it will be displayed by the system and it will requires users to correct it......

I think the second method is the easiest way. If you have PHP code ready, I think it will take you about 10 to 15 mins to integrate it into Membership Pro

Regards,

Tuan

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

  • STEFANO
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #68133 by STEFANO
Replied by STEFANO on topic OSM MEMBERSHIP PRO UPGRADE
Hi Tuan, many thank for these informations!

OK...next week I'll do upgrade.

Best regards

Stefano

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 8 months ago #68181 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic OSM MEMBERSHIP PRO UPGRADE
OK Stefano. Hope all goes well. Please make sure you make a backup of your site before upgrading so that in case something doesn't work well, you can roll back :)

Tuan

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam