Jump to content
thirty bees forum

Recommended Posts

Posted

New install is lovely!

 

I've got about five days to get this updated version install live otherwise it's a month of double host payments 😞

I would appreciate the custom CSS code to eliminate social titles please if possible!

 

Tried all the searches but editing templates doesn't seem to apply?

Tried via translations and also deleted the Mr/Mrs under customers/titles but Social Title still remains at checkout 😞

 

Honestly these days social titles could take a full page adding them all!

I'd rather not offend anyone and remove them!

 

I'd rather have the option to ask do you have enough funds instead? 🙂

 

Most customers just want a quick extraction of funds not a bunch of questions the big database in the sky already has!

 

I was able to remove date of birth by adding custom CSS

Miss that both of these were easy to disable in Panda theme!😞

I believe this still works in v1.7

/* For desktop browser account creation, add this line: */
.account_creation .date-select { display: none; }

/* For mobile browser account creation add this line: */
#opc_account_form .date-select { display: none; }

/* For the user's "My account" page that they can see after they sign up, add this line: */
#identity .std .date-select { display: none; }

Searching sure brings up all the early days with not much for newer versions hence the plea for a fix

I've had a whole morning of wandering down memory lane!

Posted (edited)

To remove the gender (social title) field from the customer registration form in thirty bees, you must edit your active theme’s Smarty template file
(identity.tpl or authentication.tpl), 
as thirty bees does not feature a single toggle switch for this in the back office.

Editing the Theme Template File: Open your site files via FTP or your hosting file manager. Go to your active theme directory: 
/themes/your-theme/templates/customer/ or /themes/your-theme/ depending on your specific theme structure.
Look for files related to customer registration and account creation, primarily authentication.tpl, identity.tpl, or order-opc-new-account.tpl
(and/or also removing the sections from files  order-opc-new-account.tpl and order-opc-new-account-advanced.tpl,  override/controllers/front/AuthController.php)

Find the block of code handling the gender radio buttons or select dropdown, which usually looks like:
smarty<div class="clearfix">
  <label>{l s='Social title'}</label>
  <!-- gender radio buttons code -->
</div>

Comment out or delete this section from the files. Clear your thirty bees compilation cache under Advanced Parameters > Performance in your back office so the template changes appear live.

You can also do a search in database e.g. like this:
ALTER TABLE `ps_customer` DROP COLUMN `id_gender`;
ALTER TABLE `ps_address` DROP COLUMN `id_gender`;
to find all files.
 

We have deleted it since a few years, it is hardcoded in our theme and deleted, no problems but i do not have a good Readme about this 🙂  

and this one:  Warehouse Theme Working - Page 3 - Theme Compatibility - thirty bees forum 

 

Edited by DRMasterChief
  • Like 1
Posted
Done!
 
Thank you so much!
Not missing panda right about now!
 
Next figure out how to restore my products and database then move to domain
It's been over a decade on v1.0.6/panda
 
went a bit too far editing so had to upload a new file
500 page still scares me but not as much :)
 
Learned that coreupdater now shows you which files you edited and gives the option to "update store" to rollback your mistakes
 
VERY NICE!
 
Didn't find that out until after I uploaded the unedited files
 
Not sure if I commented out too much not brilliant like most here but both date and gender appear to be gone if anyone else would like to do the same
 
Files edited through cpanel, force compilation, clear cache, view page
 
niara/authentication-create-opc.tpl
 
{*<div class="form-group gender-line">
        <label>{l s='Title'}</label>
        <div>
          {foreach from=$genders key=k item=gender}
            <label for="id_gender{$gender->id}" class="radio-inline">
              <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}>
              <span class="label-text">{$gender->name}</span>
            </label>
          {/foreach}
        </div>
      </div>
      <div class="required form-group">*}
 
{*<div class="form-group date-select">
        <label>{l s='Date of Birth'}</label>
        <div class="row">
          <div class="col-xs-4">
            <select id="days" name="days" class="form-control">
              <option value="">-</option>
              {foreach from=$days item=day}
                <option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}&nbsp;&nbsp;</option>
              {/foreach}
            </select>
            {*
                {l s='January'}
                {l s='February'}
                {l s='March'}
                {l s='April'}
                {l s='May'}
                {l s='June'}
                {l s='July'}
                {l s='August'}
                {l s='September'}
                {l s='October'}
                {l s='November'}
                {l s='December'}
            *}
          </div>
          <div class="col-xs-4">
            <select id="months" name="months" class="form-control">
              <option value="">-</option>
              {foreach from=$months key=k item=month}
                <option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
              {/foreach}
            </select>
          </div>
          <div class="col-xs-4">
            <select id="years" name="years" class="form-control">
              <option value="">-</option>
              {foreach from=$years item=year}
                <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}&nbsp;&nbsp;</option>
              {/foreach}
            </select>
          </div>
        </div>
      </div>*}

 

niara/authentication-create.tpl
 
{*<label>{l s='Title'}</label>
      <div>
        {foreach from=$genders key=k item=gender}
          <label for="id_gender{$gender->id}" class="radio-inline">
            <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}>
            <span class="label-text">{$gender->name}</span>
          </label>
        {/foreach}
      </div>
    </div>*}
    
 {*<label>{l s='Date of Birth'}</label>
      <div class="row">
        <div class="col-xs-4">
          <select id="days" name="days" class="form-control">
            <option value="">-</option>
            {foreach from=$days item=day}
              <option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}&nbsp;&nbsp;</option>
            {/foreach}
          </select>
          {*
              {l s='January'}
              {l s='February'}
              {l s='March'}
              {l s='April'}
              {l s='May'}
              {l s='June'}
              {l s='July'}
              {l s='August'}
              {l s='September'}
              {l s='October'}
              {l s='November'}
              {l s='December'}
          *}
        </div>
        <div class="col-xs-4">
          <select id="months" name="months" class="form-control">
            <option value="">-</option>
            {foreach from=$months key=k item=month}
              <option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
            {/foreach}
          </select>
        </div>
        <div class="col-xs-4">
          <select id="years" name="years" class="form-control">
            <option value="">-</option>
            {foreach from=$years item=year}
              <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}&nbsp;&nbsp;</option>
            {/foreach}
          </select>
        </div>
      </div>
    </div>*}

 

 
niara/order-opc-new-account.tpl
this file also had birth year but commenting out left drop down year boxes so left it alone
 
 
{*<div class="required form-group gender-line">
            <label>{l s='Social title'}</label>
            <div>
              {foreach from=$genders key=k item=gender}
                <label for="id_gender{$gender->id_gender}" class="radio-inline">
                  <input type="radio" name="id_gender" id="id_gender{$gender->id_gender}" value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} checked="checked"{/if}>
                  <span class="label-text">{$gender->name}</span>
                </label>
              {/foreach}
            </div>
          </div>*}

 

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