Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Invalidate fields entries on Create_account.php


Recommended Posts



I need some help....


How can I invalidate or pre populate the fields in the code in create_account.php so it does not require this fields when content is only downloadable:


Your Street Address must contain a minimum of 5 characters.

Your Post Code must contain a minimum of 4 characters.

Your City must contain a minimum of 3 characters.

You must select a country from the Countries pull down menu.

Your State must contain a minimum of 2 characters.

Your Telephone Number must contain a minimum of 3 characters.


I tryed to add the data manually like:

<input TYPE="hidden" VALUE="Not Needed" NAME="street_address">;


But it doesn't seem to work...


Any help please?????

Link to comment
Share on other sites

Just to let everyone than can help know... I installed Purchase without account contribution.


And so far it's working Ok. The issue here is that it makes no sense to have the customer enter shipping information when the content is going to be delivered via email.


I got an IF condition set... But I do not know how to prepopulate the fields, so that after beeing hidden (The user do not see this fields) the field errors do not pop when the content is only downloadable when they hit continue.


I basically just need to know how to populate the fields manually on the Create_Account.php file.

Link to comment
Share on other sites

  • 7 months later...
If anyone is looking on this solution then check my contributions. I released a fix.



I've installed the 8 feb 2007 fix of PWA.

The fields that are required pops up after validation as in post#1 above.

What's the soluton? What have I missed?



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...