Jump to content

New Product change item "Condition" value


ravell

Recommended Posts

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?

post-622038-0-89142500-1395800363_thumb.png

Link to comment
Share on other sites

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

hello

what part of website you translated to change these fields names?

 

it's necessary to modify both front and back end translations:

Hz9h7Cw.png

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

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! ;)

  • Like 1
Link to comment
Share on other sites

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

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 by ravell (see edit history)
Link to comment
Share on other sites

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

  • 1 month later...

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>
  • Like 1
Link to comment
Share on other sites

 

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

×
×
  • Create New...