Jump to content

Presta 8 - How to control what form fields are displaying in forms on checkout pages


Recommended Posts

Hi,

On checkout steps - first step "personal-information.tpl" has a forms for login or creating account.

I need to modify fields of this form - modify form actually. There is a gender radio input that I do not want to be seen for ex. or birthday date.

So I created folder form in override/classes and put there CustomerFormatter.php -to override form class (as I do not want to modify core files)

I thought that:

  	private $ask_for_birthdate = true;
    private $ask_for_partner_optin = true;
    private $partner_optin_is_required = true;

stands for form fields to be shown or not - but it seems that not..
(have set $ask_for_birthday to false but the birthday date field is still present in form)

What am I missing? How to control what form fields are displaying in forms on checkout pages?

 

Kind regards

______

OK I found that birthday date can turn off in PrestaShop options.
 

But when I change in override the gender fields they are stiil there.

So when make change in classes/form/CustomerFormatter.php - it behaves as it should but when in:

override/classes/form/CustomerFormatter.php - nothing happens....

 

 

 

 

Edited by Butch0071
more info (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...