ravell Posted March 26, 2014 Share Posted March 26, 2014 New Product change item "Condition" I would like to change this value and the options from the drop down menu... look at image below. first of thanks for all the help so for... now where do I find this what file or in database? Link to comment Share on other sites More sharing options...
dioniz Posted March 26, 2014 Share Posted March 26, 2014 If you need just different texts you can change it in translations Link to comment Share on other sites More sharing options...
vekia Posted March 26, 2014 Share Posted March 26, 2014 you want to change only translation? or remove / add new conditions? Link to comment Share on other sites More sharing options...
ravell Posted March 26, 2014 Author Share Posted March 26, 2014 Hey Vekia, I need to change the values For example I want Condition to be Status New to be A Used to be B Refurbished to be C changed the translations like previous poster suggested But It reflects on the front pages when you look at the product page but in the back office it still says condition/new/used/refurbished what are your thoughts? Do I have to delv in to the SQL? Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 hello what part of website you translated to change these fields names? it's necessary to modify both front and back end translations: Link to comment Share on other sites More sharing options...
ravell Posted March 27, 2014 Author Share Posted March 27, 2014 hello what part of website you translated to change these fields names? it's necessary to modify both front and back end translations: Vekia i get the dreaded Warning! Your PHP configuration limits the maximum number of fields allowed in a form 1000 for max_input_vars. Please ask your hosting provider to increase this limit to 4932 at least, or you will have to edit the translation files. Is there a way to edit the back end files it self by the time I get my host to look into this it may be solved thanks again for all your help Rav Link to comment Share on other sites More sharing options...
vekia Posted March 28, 2014 Share Posted March 28, 2014 hello have you tried to increase this limit? in some cases it is very easy to achieve it. it is also worth to ask hoster about that. without possibility to translate it in the right way - In the future, changing translations will be a nightmare for you... some time ago i wrote article about that: max input vars in presatshop it's woth to check it. and regarding to your question related to manual edit translation file. open this: /translations/en/admin.php there is something like: $_LANGADM['AdminProducts9e2941b3c81256fac10392aaca4ccfde'] = 'Condition'; $_LANGADM['AdminProducts03c2e7e41ffc181a4e84080b4710e81e'] = 'New'; $_LANGADM['AdminProducts019d1ca7d50cc54b995f60d456435e87'] = 'Used'; $_LANGADM['AdminProducts6da03a74721a0554b7143254225cc08a'] = 'Refurbished'; enjoy! 1 Link to comment Share on other sites More sharing options...
ravell Posted March 28, 2014 Author Share Posted March 28, 2014 I tried changing the .htaccess but got an internal server error... so that did not work php.ini did not contain anything like max_input_vars = xxxx going to try the file Link to comment Share on other sites More sharing options...
vekia Posted March 28, 2014 Share Posted March 28, 2014 I tried changing the .htaccess but got an internal server error... so that did not work so it means that your host doesnt support this way. php.ini did not contain anything like max_input_vars = xxxx if it doesnt contain - it just mean that your host uses default values defined globally. you can try to create it in php ini btw. what is your host? maybe i know proper way to achieve it for your host. Link to comment Share on other sites More sharing options...
ravell Posted March 28, 2014 Author Share Posted March 28, 2014 (edited) Solved my situation editing the /translations/en/admin.php Thanks Again!! Oh my host is 1and1 US/Canada the php.ini in the root of the installation contains this only magic_quotes_gpc = off;register_globals = off;allow_url_fopen = on;file_uploads = on; Edited March 28, 2014 by ravell (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 28, 2014 Share Posted March 28, 2014 so, if you add to this .php.ini file this simple line: max_input_vars = 5000; does it work? Link to comment Share on other sites More sharing options...
ravell Posted March 28, 2014 Author Share Posted March 28, 2014 Tried it and got the same warning Warning! Your PHP configuration limits the maximum number of fields allowed in a form 1000 for max_input_vars.Please ask your hosting provider to increase this limit to 4932 at least, or you will have to edit the translation files. Link to comment Share on other sites More sharing options...
mpouliot34 Posted May 18, 2014 Share Posted May 18, 2014 you want to change only translation? or remove / add new conditions? I am wondering if you can tell me where I would remove this option or at least disable it from showing up on my product pages. Thanks Link to comment Share on other sites More sharing options...
vekia Posted May 18, 2014 Share Posted May 18, 2014 if you want to remove it from front office - open product.tpl file. then remove this code: {capture name=condition} {if $product->condition == 'new'}{l s='New'} {elseif $product->condition == 'used'}{l s='Used'} {elseif $product->condition == 'refurbished'}{l s='Refurbished'} {/if} {/capture} <p id="product_condition"{if !$product->condition} style="display: none;"{/if}> <label>{l s='Condition'} </label> <span class="editable" itemprop="condition">{$smarty.capture.condition}</span> </p> 1 Link to comment Share on other sites More sharing options...
mpouliot34 Posted May 18, 2014 Share Posted May 18, 2014 if you want to remove it from front office - open product.tpl file. then remove this code: {capture name=condition} {if $product->condition == 'new'}{l s='New'} {elseif $product->condition == 'used'}{l s='Used'} {elseif $product->condition == 'refurbished'}{l s='Refurbished'} {/if} {/capture} <p id="product_condition"{if !$product->condition} style="display: none;"{/if}> <label>{l s='Condition'} </label> <span class="editable" itemprop="condition">{$smarty.capture.condition}</span> </p> Thank you very much. After staying up all night last night I had found it already. Thank you so very much for your reply. Link to comment Share on other sites More sharing options...
vekia Posted May 18, 2014 Share Posted May 18, 2014 you're welcome :-) Link to comment Share on other sites More sharing options...
Recommended Posts