dalauris Posted January 5, 2016 Share Posted January 5, 2016 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 More sharing options...
Daresh Posted January 5, 2016 Share Posted January 5, 2016 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}/> 1 Link to comment Share on other sites More sharing options...
dalauris Posted January 5, 2016 Author Share Posted January 5, 2016 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..? 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 More sharing options...
Daresh Posted January 5, 2016 Share Posted January 5, 2016 That's it, you need to narrow it with HTML + CSS, for example surroud with; <div class="row-fluid"> <div class="col-md-6"> (your input here) </div> </div> 1 Link to comment Share on other sites More sharing options...
dalauris Posted January 5, 2016 Author Share Posted January 5, 2016 Will try next day! Thank You in advance, Daresh! Link to comment Share on other sites More sharing options...
dalauris Posted January 7, 2016 Author Share Posted January 7, 2016 Everything works fine! Great great thanx, Daresh!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now