How to increase the amount of text in the customer form?

javipcriot

Avatar: javipcriot

2018-05-19 20:41

Hello

because in the client form, I have changed these fields

street by address
zip code by zip code and location
city by country

database/translations/en.php

street by adress
línea 64
$lang['Street'] = "Street";
$lang['Street'] = "Adress";

zip code by Postal code and location
línea 70
$lang['Zip_code'] = "Zip code";
$lang['Zip_code'] = "Postal code and location";

city by country
línea 19
$lang['City'] = "City";
$lang['City'] = "Country"

it works

I need to expand the number of characters in the street and zip code fields

templates/admin/orders-form.php/línes
160
maxlength="40"
maxlength="99"
170
maxlength="20"
maxlength="99"
temlates/default/order-step-2.php/línes
52
maxlength="40"
maxlength="99"
56
maxlength="20"
maxlength="99"

it doesn't work

» Quick.Cart v6.x

javipcriot

Avatar: javipcriot

2018-05-19 20:54

http://pruebas.javi.pcriot.com/

Tata55

Avatar: Tata55

2018-05-20 09:31

Try to look in <your template>/order-step-2.php.
E.g.:

              <div id="street">
                <label for="oStreet"><?php echo $lang['Street']; ?><span>(<?php echo $lang['required']; ?>)</span></label>
                <input type="text" name="sStreet" value="" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oStreet" data-form-check="required" />
              </div>

javipcriot

Avatar: javipcriot

2018-05-20 12:58

hello tata 55 thanks for answer, this is my modification (temlates/default/order-step-2.php)

<div id="street">
<label for="oStreet"><?php echo $lang['Street']; ?><span>(<?php echo $lang['required']; ?>)</span></label>
<input type="text" name="sStreet" value="" maxlength="x" class="input" onblur="saveUserData( this.name, this.value )" id="oStreet" data-form-check="required" />
</div>
<div id="zipCode">
<label for="oZipCode"><?php echo $lang['Zip_code']; ?><span>(<?php echo $lang['required']; ?>)</span></label>
<input type="text" name="sZipCode" value="" maxlength="x" class="input" onblur="saveUserData( this.name, this.value )" id="oZipCode" data-form-check="required" />
</div>

“maxlength="x"= 40 in street, 20 in zipcode (original) by 99 in both (modification)

it doesn't work

i don't understand your ¿modification?

Back to top
about us | contact