reffael Posted December 14, 2003 Share Posted December 14, 2003 in the new account form most of the fields are mandatory, how can i change part of them to be non-mandatory? b.t.w i'm new to osCommerce and i just want to say - great work !!! Link to comment Share on other sites More sharing options...
241 Posted December 14, 2003 Share Posted December 14, 2003 change the part of the code that relates to the field where it states true make this false No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
moonstone Posted December 14, 2003 Share Posted December 14, 2003 Some of the setting can be easily switched off using the osCommerce Admin. Goto Configuration/Customer Details and set accordingly. Link to comment Share on other sites More sharing options...
241 Posted December 14, 2003 Share Posted December 14, 2003 Glad to see you back Patrick and as ever correct. Reffael, apply what moonstone as said but, if the field you wish to change is not listed then apply what I have said. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
moonstone Posted December 14, 2003 Share Posted December 14, 2003 Yup, like what I've said, some (but not all) of the required fields can be switch on/off at the osCommerce Admin. And like what Steve has mentioned :lol: , for those not listed, you will have to make changes to the codes. Do take note however, that you will need to make changes to three php files: catalog/create_account.php, catalog/account_edit.php, and catalog/admin/customers.php. Otherwise, your customer may be asked for the fields you commented out when editing their account, or you may be asked for those info when you edit their account. Link to comment Share on other sites More sharing options...
reffael Posted December 15, 2003 Author Share Posted December 15, 2003 I already saw that there is a partial control on the mandatory fields through the admin console but i need full control so i'll go to the code itself. Thank u Patrik and Steve :) Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted December 15, 2003 Share Posted December 15, 2003 Have a look at this thread: http://www.oscommerce.com/forums/index.php?sho...=0entry264756 That should help you out. Jeremy Link to comment Share on other sites More sharing options...
paulm2003 Posted December 15, 2003 Share Posted December 15, 2003 Hi Steve and Patrick, since you both seem to know a lot about the subject, could you please explain how to make the gender optional (not remove!)? Link to comment Share on other sites More sharing options...
241 Posted December 16, 2003 Share Posted December 16, 2003 paulm2003 Do you mean to make the gender field a requirement i.e required or as an optional field in that you can fill in if you want? i.e not required but still have the field available. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
moonstone Posted December 16, 2003 Share Posted December 16, 2003 If I get you right, you want the gender field to appear when creating a new account but do not want it to be a required field. In that case, open up catalog/create_account.php, and look for the following lines around lines 60 - 66: if (ACCOUNT_GENDER == 'true') { if ( ($gender != 'm') && ($gender != 'f') ) { $error = true; $messageStack->add('create_account', ENTRY_GENDER_ERROR); } } Comment out or remove the above lines and that should be it. Please let me know if this is what you want. Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted December 16, 2003 Share Posted December 16, 2003 The thread I referred to above deals with exactly that, changing a field from required to optional, and also how to remove fields completely. Jeremy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.