TFPtMaster Posted February 2, 2015 Share Posted February 2, 2015 Hello guys I'm having a little trouble to find where to limit or add a limit of caracters to a product name when creating a product in prestashop back office. I'm using truncate to limit, but is not the same thing. Regards Link to comment Share on other sites More sharing options...
TFPtMaster Posted May 13, 2015 Author Share Posted May 13, 2015 Hello Can someone help me with this? Maybe this is a stupid question but i realllllly need this. Prestashop 1.5.6.1 Kind regards Link to comment Share on other sites More sharing options...
jgamio Posted May 17, 2015 Share Posted May 17, 2015 Easy go to these file YOUR-ADMIN-DIRECTORY/themes/default/template/controllers/products/informations.tpl look for <div class="col-lg-5"> {include file="controllers/products/input_text_lang.tpl" languages=$languages input_class="{$class_input_ajax}{if !$product->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')}copy2friendlyUrl{/if} updateCurrentText" input_value=$product->name input_name="name" required=true } </div> you need add a maxlenght for example 20 <div class="col-lg-5"> {include file="controllers/products/input_text_lang.tpl" languages=$languages input_class="{$class_input_ajax}{if !$product->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')}copy2friendlyUrl{/if} updateCurrentText" input_value=$product->name input_name="name" maxlength=20 required=true } </div> 2 Link to comment Share on other sites More sharing options...
TFPtMaster Posted May 18, 2015 Author Share Posted May 18, 2015 Easy go to these file YOUR-ADMIN-DIRECTORY/themes/default/template/controllers/products/informations.tpl look for <div class="col-lg-5"> {include file="controllers/products/input_text_lang.tpl" languages=$languages input_class="{$class_input_ajax}{if !$product->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')}copy2friendlyUrl{/if} updateCurrentText" input_value=$product->name input_name="name" required=true } </div> you need add a maxlenght for example 20 <div class="col-lg-5"> {include file="controllers/products/input_text_lang.tpl" languages=$languages input_class="{$class_input_ajax}{if !$product->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')}copy2friendlyUrl{/if} updateCurrentText" input_value=$product->name input_name="name" maxlength=20 required=true } </div> Thank you. Perfect 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