Checkout - step 3: text single line

Discussion in 'Technical Support' started by wabugi, May 29, 2009.

Thread Status:
Not open for further replies.
  1. wabugi Customer

    I`m currently modifying the design for the checkout step 3, in particular the input fields. I don't want to use the global css definition for "#form .input". Every extra field type gets it's own css class.

    In the ajax.php I can give every extra field a class. I also did this with the Text Single Line fields. But when I surf through step 3 of the checkout, the text single line fields are not displayed as I want them. I checked the source code and it seems that the code for the single text lines doesen't come from the ajax.php. Every other field does.

    So where is the code for the single text line fields in step 3? ^^
  2. Eric Barnes Guest

    For those it pulls out from the includes/classes/kernel/Listings.php class file. Real similar syntax to the ajax file.
  3. wabugi Customer

    Thank you. You made my day :)

    Changed some things in the listings.php and everything works fine.
  4. MrGForce Customer

    Can you tell me just where in that listing.php file that you can change the length of the displayed single line text field that shows in the step3.tpl file when someone is putting in a new listing.

    I believe we're talking about the same thing here, right?

    I want to be able to tell the program how long I want those extra field single line text fields to be.

    Thanks.
  5. Mike-N-Tosh Owner

    I believe that would be around line #1752:
    $optdata.="<p><label for=\"opt".$row['fID']."\">".$star ." ". $row['fName'].":</label><input type=\"text\" name=\"opt".$row['fID']."\" id=\"opt".$row['fID']."\" size=\"".FIELD_SIZE."\" value=\"".$defaultValue."\" /></p>\n";
  6. MrGForce Customer

    Hi Mike;

    I thought I found that reference in the language file, but it doesn't seem to work.

    //general
    define('LANG_YES', 'Yes');
    define('LANG_NO', 'No');
    define('LANG_ERROR', 'Error');
    define('LANG_SUBMIT', 'Submit');
    define('LANG_ERROR_MAIL', 'There has been an email error!');
    define('LANG_ERROR_OCCURED', 'An error occured. Please try again.');
    define('LANG_FIELD_SIZE', '30');
    define('FIELD_SIZE', '35');

    I changed the last line to different sizes and nothing changes in the step3.tpl display for the extra text fields. I also used the maintenance module to remove the compiled templates.

    Any suggestions?
  7. Mike-N-Tosh Owner

    Are you sure that these are extra fields? Are you also sure that they are of type single text line?

    I don't see any other area that affects those. You are actually in the same step3 of checkout as this thread is referring to?
  8. MrGForce Customer

    Yea Mike, there are only three (3) extra fields that I currently have, and yes the two in question are both single line text files. The other one is a date field. The two single line text fields are for the YouTube url and just a text field that I wanted to have for a certain category. Both of those fields are the same length and I want them to be longer so that you can see more of the text as someone is putting it in.

    I just noticed that if you change that line in the language file it will effect the extra date field length but not the others.
Thread Status:
Not open for further replies.

Share This Page