rizrock Posted March 12, 2004 Share Posted March 12, 2004 Hi again, another way of retrieving required information from the customer in my astrology shop would be to make the checkout comment text box "required": with a minimum length of 20 digits. Any help is appreciated. thanks a lot Link to comment Share on other sites More sharing options...
rizrock Posted March 14, 2004 Author Share Posted March 14, 2004 anybody help, please? Link to comment Share on other sites More sharing options...
rizrock Posted March 14, 2004 Author Share Posted March 14, 2004 i found this threat, but it didn't explain very much... http://www.oscommerce.com/forums/index.php?sho...t=0entry61808 Link to comment Share on other sites More sharing options...
rizrock Posted March 16, 2004 Author Share Posted March 16, 2004 seems to be a hard task since nobody dares to answer... Is it just me or is the forum's search function working kinda strange? Link to comment Share on other sites More sharing options...
rizrock Posted March 17, 2004 Author Share Posted March 17, 2004 I got a good hint on the german board. this is it: comments box allows no less than 50 digits. ____________________________________________________ in checkout_confirmation.php insert: //-- Check the comments field if (strlen($HTTP_POST_VARS['comments']) < 50) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_CHECKOUT_COMMENTS_EMPTY), 'SSL', true, false)); } in includes/languages/german.php insert: define('ERROR_CHECKOUT_COMMENTS_EMPTY', 'please enter your blablabla text here'); ____________________________________________________ however... simple as that. Link to comment Share on other sites More sharing options...
bpmcclure Posted March 14, 2008 Share Posted March 14, 2008 I got a good hint on the german board. this is it: comments box allows no less than 50 digits. ____________________________________________________ in checkout_confirmation.php insert: //-- Check the comments field if (strlen($HTTP_POST_VARS['comments']) < 50) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_CHECKOUT_COMMENTS_EMPTY), 'SSL', true, false)); } in includes/languages/german.php insert: define('ERROR_CHECKOUT_COMMENTS_EMPTY', 'please enter your blablabla text here'); ____________________________________________________ however... simple as that. Hi, I tried this and had some problems. I was able to check out without comments, but I did get an error at the bottom of the confirmation page. Is there more to this than shown above, like perhaps placement ofthe code in the confirmation file? I tried putting it at the end. Thanks, Bruce Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.