Jump to content

Remove "Title" from address


perrow

Recommended Posts

Hi

I plan to use this software solely in Sweden for my current installation. It is now about 35+ years since we stopped using titles in addresses and rather than being ridiculed I'd like to remove the field.

How can I disable or hide this field?

Link to comment
Share on other sites

Welcome perrow! Glad to see you made it to the forums.

Essentially, you just need to remove (or hide) three form elements: Registration, Addressbook, and Checkout Confirm. If the data is not entered, it will not show.

Look in the skin's templates content.register.php, content.addressbook.php, and content.checkout.confirm.php for the following code (or very similar to it):

<input type="text" name="title" id="title" value="{$DATA.title}" placeholder="{$LANG.user.title}">

This form element will be inside other code. If the skin is Foundation, then the entire set of statements you are interested in will be very similar to:

   <div class="row">
      <div class="small-4 columns"><label for="title" class="show-for-medium-up">{$LANG.user.title}</label><input type="text" name="title" id="title" value="{$DATA.title}" placeholder="{$LANG.user.title}"></div>
   </div>

To "hide" this code, make the following edit each to the three templates:

{*   <div class="row">
      <div class="small-4 columns"><label for="title" class="show-for-medium-up">{$LANG.user.title}</label><input type="text" name="title" id="title" value="{$DATA.title}" placeholder="{$LANG.user.title}"></div>
   </div>  *}

All that was done is to have made the template rendering engine (Smarty) ignore these template "comments".

Link to comment
Share on other sites

CubeCart has a "whole-cloth" update paradigm. Customizations made to files that match the incoming package will be overwritten.

Note that CubeCart ships with the Foundation skin. You can make a copy of, and/or rename Foundation to something else (a couple of edits to the config.xml and a new folder name to match), and the incoming, updated Foundation skin will not overwrite the renamed folder.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...