Jump to content

How To Make Smaller "custom Text Field" In Product Attribute Section?


Recommended Posts

Hello Everybody and Happy New Year to all "prestashopers"! :)

 

Is there any possibility to make smaller "custom text field" in product attribute?

I would like it to make as a small window that customer can type the desirable attribute of a product (now it is way to big)?

 

                                              Thank You in advance! ;)

Link to comment
Share on other sites

By default, it is a textarea, so that's why it's so big.

 

I often change it to simple input (in product.tpl).

<input type="text" name="textField{$field.id_customization_field}" class="form-control customization_block_input" id="textField{$customizationField}" value="{strip}
                                                                   {if isset($textFields.$key)}
                                                                      {$textFields.$key|stripslashes}
                                                                   {/if}
                                                                   {/strip}" {if $field.required} required {/if}/>
  • Like 1
Link to comment
Share on other sites

Great thanx for the fast response, Daresh!!! :)

 

 

It works for me but only partially: the height is now - okey, but how to narrow the width..? :mellow:

 

This is because of the "bootstrap" structure and the place where this "text area" window is now, right?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...