patrmich Posted September 24, 2019 Share Posted September 24, 2019 (edited) Hello, I am using Prestashop 1.5.6.2. In product.tpl is the following line : <textarea name="textField{$field.id_customization_field}" id="textField{$customizationField}" rows="1" cols="40" class="customization_block_input">{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if}</textarea> How would it be possible to do it ? Thank you in advance for any reply. Patrick Edited October 21, 2019 by patrmich (see edit history) Link to comment Share on other sites More sharing options...
patrmich Posted October 21, 2019 Author Share Posted October 21, 2019 Hello, I am replying to my own question. I just added the following in one line of the product.tpl file : maxlength="20" In product.tpl, replace : <textarea name="textField{$field.id_customization_field}" id="textField{$customizationField}" rows="1" cols="40" class="customization_block_input">{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if} </textarea> by <textarea maxlength="20" name="textField{$field.id_customization_field}" id="textField{$customizationField}" rows="1" cols="40" class="customization_block_input">{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if} </textarea> Patrick Link to comment Share on other sites More sharing options...
johnrobertson Posted October 22, 2019 Share Posted October 22, 2019 (edited) I am using version 1.6.12, bootstrap theme If anyone knows how to convert the same customisation text area to a drop down menu and for it still to work, that would be magic. <SELECT> <OPTION SELECTED>blue embroidery <OPTION>red embroidery <OPTION>green embroidery </SELECT> If I just do it as above, I get an error message saying that I have not filled-in all the form fields. The reason for not using attributes is to save linking this to stock. Edited November 8, 2019 by johnrobertson version (see edit history) 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