Guest jeroen9 Posted October 23, 2005 Share Posted October 23, 2005 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> </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) Quote Link to comment Share on other sites More sharing options...
Guest jeroen9 Posted October 25, 2005 Share Posted October 25, 2005 I will give you 10 euro paypal if you solve this problem for me. Quote Link to comment Share on other sites More sharing options...
Guest ssppaarree Posted October 25, 2005 Share Posted October 25, 2005 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? Quote Link to comment Share on other sites More sharing options...
Guest jeroen9 Posted October 25, 2005 Share Posted October 25, 2005 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.