Jump to content

How to change registration fields?


Guest jeroen9

Recommended Posts

Guest jeroen9

I have a store with only download products so adress and phone number is not needed. I don't want that customers are required to give adress and phone number and I want to add a field for e-gold number which is required.

I have tried the solution of cube.carter in this topic: http://www.cubecart.com/site/forums/index....showtopic=11462

I changed this code in skin/Classic/styleTemplates/content/reg.tpl:

<tr>

  <td colspan="2" class="tdcartTitle">{LANG_PERSONAL_DETAILS}</td>

  <td colspan="2" class="tdcartTitle">{LANG_ADDRESS}</td>

   </tr>

   <tr>

     <td>{LANG_TITLE}</td>

     <td><input name="title" type="text" class="textbox" id="title" size="5" value="{VAL_TITLE}" tabindex="1" /> 

       {LANG_TITLE_DESC} </td>

     <td>{LANG_ADDRESS_FORM}</td>

     <td><input name="add_1" type="text" class="textbox" id="add_1" size="16" value="{VAL_ADD_1}" tabindex="7" />

*</td>

     </tr>

   <tr>

  <td>{LANG_FIRST_NAME}</td>

  <td><input name="firstName" type="text" class="textbox" id="firstName" size="16" value="{VAL_FIRST_NAME}" tabindex="2" /> 

    *</td>

  <td>&nbsp;</td>

  <td><input name="add_2" type="text" class="textbox" id="add_2" size="16" value="{VAL_ADD_2}" tabindex="8" /></td>

   </tr>

   <tr>

  <td>{LANG_LAST_NAME}</td>

  <td><input name="lastName" type="text" class="textbox" id="lastName" size="16" value="{VAL_LAST_NAME}" tabindex="3" /> 

    * </td>

  <td>{LANG_TOWN}</td>

  <td><input name="town" type="text" class="textbox" id="town" size="16" value="{VAL_TOWN}" tabindex="9" />

*</td>

   </tr>

   <tr>

  <td>{LANG_EMAIL_ADDRESS}</td>

  <td><input name="email" type="text" class="textbox" id="email" size="16" value="{VAL_EMAIL}" tabindex="4" /> 

    * </td>

  <td>{LANG_COUNTY}</td>

  <td><input name="county" type="text" class="textbox" id="county" size="16" value="{VAL_COUNTY}" tabindex="10" />

*</td>

   </tr>

   <tr>

  <td>{LANG_TELEPHONE}</td>

  <td><input name="phone" type="text" class="textbox" id="phone" size="16" value="{VAL_PHONE}" tabindex="5" /> 

    * </td>

  <td>{LANG_COUNTRY}</td>

     <td nowrap='nowrap'><select name="country" class="textbox" tabindex="11">

          <!-- BEGIN: repeat_countries -->

          <option value="{VAL_COUNTRY_ID}" {VAL_COUNTRY_SELECTED}>{VAL_COUNTRY_NAME}</option>

          <!-- END: repeat_countries -->

        </select>

    *</td>

   </tr>

   <tr>

  <td>{LANG_MOBILE}</td>

  <td><input name="mobile" type="text" class="textbox" id="mobile" size="16" value="{VAL_MOBILE}" tabindex="6" /></td>

     <td>{LANG_POSTCODE}</td>

     <td><input name="postcode" type="text" class="textbox" id="postcode" size="16" value="{VAL_POSTCODE}" tabindex="12" />

*</td>

   </tr>




to:




<tr>

  <td colspan="2" class="tdcartTitle">{LANG_PERSONAL_DETAILS}</td>

  <td colspan="2" class="tdcartTitle"></td>

   </tr>

   <tr>

     <td>{LANG_TITLE}</td>

     <td><input name="title" type="text" class="textbox" id="title" size="5" value="{VAL_TITLE}" tabindex="1" /> 

       {LANG_TITLE_DESC} </td>

     <td>{LANG_EMAIL_ADDRESS}</td>

     <td><input name="email" type="text" class="textbox" id="email" size="16" value="{VAL_EMAIL}" tabindex="7" />

*</td>

     </tr>

   <tr>

  <td>{LANG_FIRST_NAME}</td>

  <td><input name="firstName" type="text" class="textbox" id="firstName" size="16" value="{VAL_FIRST_NAME}" tabindex="2" /> 

    *</td>

  <td>E-gold number:</td>

  <td><input name="phone" type="text" class="textbox" id="phone" size="16" value="{VAL_PHONE}" tabindex="8" /></td>

   </tr>

   <tr>

  <td>{LANG_LAST_NAME}</td>

  <td><input name="lastName" type="text" class="textbox" id="lastName" size="16" value="{VAL_LAST_NAME}" tabindex="3" /> 

    * </td>

  <td></td>

  <td></td>

   </tr>

   

  <input name="country" type="hidden" id="country" value="Netherlands" />

  <input name="postcode" type="hidden" id="postcode" value="1234" />

  <input name="add_1" type="hidden" id="add_1" value="abcde" />

  <input name="town" type="hidden" id="town" value="fgh" />

  <input name="county" type="hidden" id="county" value="ijkl" />

This gave no errors, but the fields were still visible at other pages. For example here: /index.php?act=profile . So I changed the same in skin/Classic/styleTemplates/content/profile.tpl , but after this change I got this error when after step 5 is linked to the e-gold website:

Error(s) detected:

Field name declared in BAGGAGE_FIELDS but not present on form: CUST_NUM

How can I change the fields at the profile page without getting this error? (version is 3.0.5)

Link to comment
Share on other sites

Guest ssppaarree

Hi,

Why don't you just change the wording in the phone number field to say "e-gold number" and insert "NOT REQUIRED" as default in the other fields?

Link to comment
Share on other sites

Guest jeroen9

Hi,

Why don't you just change the wording  in the phone number field to say "e-gold number" and insert "NOT REQUIRED" as default in the other fields?

That still gives the error if I change the file profile.tpl. The problem was in the e-gold file. Ija has helped me. :D

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