Jump to content

EDITING CUSTOMER REGISTRATION FORM


jack2016

Recommended Posts

Am using cubecart 6 to sell digital product online. Customer registration form is like shown below. I want to edit the form and remove "title" "phone number", "mobile number" . Any body with an idea, kindly help. thanks.

I would like to create an account.

Please complete the fields below to register.

Title 

First Name  *

Last Name  *

Email  *

Phone  *

Mobile 

Password  *

Confirm Password  *

Verify you are a human

 I agree to the Terms & Conditions.

 Subscribe to mailing list.

Link to comment
Share on other sites

You can easily comment out the title, but there are verification code lines somewhere near the bottom of this file that would also need to be commented out if you comment out the phone and mobile entries.

In skins/templates/content.register.php find these lines and use <!--      --> to comment out these sections.

   <div class="row">
      <div class="small-12 large-8 columns"><label for="email" class="show-for-medium-up">{$LANG.common.email}</label><input type="text" name="email" id="email" value="{$DATA.email}" placeholder="{$LANG.common.email}  {$LANG.form.required}" required ></div>
   </div>
 <!--  <div class="row">
      <div class="small-12 large-8 columns"><label for="phone" class="show-for-medium-up">{$LANG.address.phone}</label><input type="text" name="phone" id="phone"  value="{$DATA.phone}" placeholder="{$LANG.address.phone} {$LANG.form.required}" required></div>
   </div>
   <div class="row">
      <div class="small-12 large-8 columns"><label for="mobile" class="show-for-medium-up">{$LANG.address.mobile}</label><input type="text" name="mobile" id="mobile"  value="{$DATA.mobile}" placeholder="{$LANG.address.mobile}"></div>
   </div> -->
   <div class="row">
      <div class="small-12 large-8 columns"><label for="password" class="show-for-medium-up">{$LANG.account.password}</label><input type="password" autocomplete="off" name="password" id="password" placeholder="{$LANG.account.password} {$LANG.form.required}" required ></div>
   </div>

 

<div class="hide" id="validate_password_mismatch">{$LANG.account.error_password_mismatch}</div>
<!-- <div class="hide" id="validate_phone">{$LANG.account.error_valid_phone}</div>
<div class="hide" id="validate_mobile">{$LANG.account.error_valid_mobile_phone}</div> -->
<div class="hide" id="validate_required">{$LANG.form.required}</div>

This may not work, because there may be javascript validate code also involved. But it's an easy edit to try, as you can always take the comments off, and you're back where you started.

Link to comment
Share on other sites

  • 6 months later...

Doing this would involve too much change to the core code. That is not to say this cannot be done, however.

CubeCart decided to have a preliminary registration of just a few fields, then on a separate page to offer the ability to create as many billing and delivery addresses as is needed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...