Jump to content

Customize Register form


Bhuvani

Recommended Posts

  • 2 weeks later...
  • 1 month later...

Hi,

Im new for prestashop 1.7.1

 

How can i delete Social and last name things in register form ?

dbeccd81d9f2479689aa80b27f496317.png

 

 

U need to edit inside /classes/form/CustomerFormatter.php

 

$genderField = (new FormField)
            ->setName('id_gender')
            ->setType('radio-buttons')
            ->setLabel(
                $this->translator->trans(
                    'Social Name', [], 'Shop.Forms.Labels'
                )
            )
        ;
 
Remove This Field
 
 $format['lastname'] = (new FormField)
            ->setName('lastname')
            ->setLabel(
                $this->translator->trans(
                    'Last name', [], 'Shop.Forms.Labels'
                )
            )
            ->setRequired(true)
        ;
Edited by trustport (see edit history)
Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...
On 5/7/2018 at 4:24 PM, yurda said:

And someone knows how to remove the "optional" thing from there?

Go to:

Customers > Addresses

find on the bottom:

Set required fields for this section

and select fields you want



Caution: selecting field will remove "optional" tag, but it will also force customer to fill this form (the form will be required)

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...