Jump to content

how to remove (mr , mrs) Social title


fatheeym
 Share

Recommended Posts

i have tried to delete it and comment it these line
 

<div class="cleafix gender-line">						<label>{l s='Title'}</label>						{foreach from=$genders key=k item=gender}							<div class="radio-inline">								<label for="id_gender{$gender->id}" class="top">									<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} />									{$gender->name}								</label>							</div>						{/foreach}					</div>

but it still as it  :unsure:

Share this post


Link to post
Share on other sites

  • 3 years later...

I did fix this by also removing the sections from files order-opc-new-account.tpl and order-opc-new-account-advanced.tpl

Have to agree with the critics, however, this really should be configurable from the backend. I'm told 1.7 doesn't include this either.

Share this post


Link to post
Share on other sites

  • 1 year later...
On 6/24/2019 at 11:17 AM, AlleyKat said:

I did fix this by also removing the sections from files order-opc-new-account.tpl and order-opc-new-account-advanced.tpl

Have to agree with the critics, however, this really should be configurable from the backend. I'm told 1.7 doesn't include this either.

 Backup First

Solution for PS 1.7+

You need to override the class CustomerFormatterCore that is in "classes/form/CustomerFormatter.php", in order to do this you have to create the file "override/classes/form/CustomerFormatter.php" so here copy and paste the next code and save:

<?php

class CustomerFormatter extends CustomerFormatterCore
{
    public function getFormat()
    {
	$format = parent::getFormat();
	//social titles removed
        unset($format['id_gender']);
        return $format;
    }
}

Refresh the full cache, go where social titles are displayed, and press and hold CTRL+F5.

Regards,

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More