jirik0201 Posted April 17, 2013 Share Posted April 17, 2013 Zdravím, kde můžu nastavit více znaků u produktu v přílohách název souboru. Je tam max. 32 znaků. Předpokládám, že to bude někde v databázi. Díval jsem se, ale nenašel. Poraďte. Link to comment Share on other sites More sharing options...
jgerza Posted April 18, 2013 Share Posted April 18, 2013 spíš bych to hledal v .tpl pod truncate: Link to comment Share on other sites More sharing options...
pecosk Posted April 18, 2013 Share Posted April 18, 2013 nedal si verziu PS ... napr v 1.5.4 su obmedzenia 1/ v tabulke PREFIX_attachment_lang je `name` varchar(32) 2/ v AdminProductController.php ... elseif (Tools::strlen(Tools::getValue('attachment_name_'.(int)($language['id_lang']))) > 32) $this->errors[] = sprintf(Tools::displayError('The name is too long (%d chars max).'), 32); ... 3/ v admin themes v attachments.tpl (potom aj v preklade) <p class="margin-form preference_description">{l s='Maximum 32 characters.'}</p> Dalej som neskumal, ale pri PS je mozne, ze aj po nacitani name z databazy bude dalsia kontrola, ci neni nazov moc dlhy Link to comment Share on other sites More sharing options...
jirik0201 Posted April 26, 2013 Author Share Posted April 26, 2013 čau, po úpravě v tabulce na 64 a v adminproductscontroller.php v elseif (Tools::strlen(Tools::getValue('attachment_name_'.(int)($language['id_lang']))) > 32) $this->errors[] = sprintf(Tools::displayError('The name is too long (%d chars max).'), 32); na 64 píše chyby viz obrázek. PS mám 1.5.4.0 díky za další návrhy. 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