Jump to content

How to remove product "condition" (new, used, refurbished) from product page in 1.6.0.9 version?


Recommended Posts

Hello

I do not know which method you use to connect to your database, maybe cPanel or ftp but what you need to find is:

 

Your shop > your theme > default bootstrap > product.tpl

 

and "comment out" <!-- comment out --> the code rather than delete it, you may want to use the conditions at a later date.

 

Hope this helps

 

Paul

Link to comment
Share on other sites

Hello

I do not know which method you use to connect to your database, maybe cPanel or ftp but what you need to find is:

 

Your shop > your theme > default bootstrap > product.tpl

 

and "comment out" <!-- comment out --> the code rather than delete it, you may want to use the conditions at a later date.

 

Hope this helps

 

Paul

Thanks i found the file but i didnt find exactly what Mr. Vekia said. only thing i found relating that Condition issue is :

 {if $product->condition}

<p id="product_condition">
<label>{l s='Condition'} </label>
{if $product->condition == 'new'}
<link itemprop="itemCondition" href="http://schema.org/NewCondition"/>
<span class="editable">{l s='New'}</span>
{elseif $product->condition == 'used'}
<link itemprop="itemCondition" href="http://schema.org/UsedCondition"/>
<span class="editable">{l s='Used'}</span>
{elseif $product->condition == 'refurbished'}
<link itemprop="itemCondition" href="http://schema.org/RefurbishedCondition"/>
<span class="editable">{l s='Refurbished'}</span>
 
if i remove this then whole page of the product disappears.
Link to comment
Share on other sites

Hello

 

Have you gone to:

public_html/Your Shop/themes/default-bootstrap/product.tpl

 

and around line 162 seen this:

 

<!--</p>
{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>-->
 
Just <!-- Comment Out --> this code
 
Before
 
After
 
Paul
Edited by Paulito (see edit history)
  • Like 1
Link to comment
Share on other sites

 

Hello

 

Have you gone to:

public_html/Your Shop/themes/default-bootstrap/product.tpl

 

and around line 162 seen this:

 

<!--</p>
{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>-->
 
Just <!-- Comment Out --> this code
 
Before
 
After
 
Paul

 

Thanks for answering again.

yes exactly i am at public_html/Your Shop/themes/default-bootstrap/product.tpl

and also the text i shared in last mesage is at at arround line 162.

my version is 1.6.0.9 so maybe its bit different.

 

Edited by Abdul Haseeb (see edit history)
Link to comment
Share on other sites

  • 4 months later...

i modify my code in  httpdocs / ps / themes / mytheme / product.tpl

 

like this, (i add 5 line up - down)

<h5 itemprop="name" class="name_product"><span>{$product->name|escape:'html':'UTF-8'}</span></h5>
			<p id="product_reference"{if empty($product->reference) || !$product->reference} style="display: none;"{/if}>
				<label>{l s='Model'} </label>
				<span class="editable" itemprop="sku">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span>
			<!--</p>
			{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>-->
			{if $PS_STOCK_MANAGEMENT}
				<!-- availability -->
				<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
					<span id="availability_label">{l s='Availability:'}</span>
					<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span>	

but still no luck,

is something wrong with the code?

Edited by athens (see edit history)
Link to comment
Share on other sites

is this correct now?

<h5 itemprop="name" class="name_product"><span>{$product->name|escape:'html':'UTF-8'}</span></h5>
			<p id="product_reference"{if empty($product->reference) || !$product->reference} style="display: none;"{/if}>
				<label>{l s='Model'} </label>
				<span class="editable" itemprop="sku">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span>
			</p>
			{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>
			{if $PS_STOCK_MANAGEMENT}
				<!-- availability -->
				<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
					<span id="availability_label">{l s='Availability:'}</span>
					<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span>				
				</p>
				<p class="warning_inline" id="last_quantities"{if ($product->quantity > $last_qties || $product->quantity <= 0) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}</p>
			{/if}
Link to comment
Share on other sites

  • 3 months later...
Is this the right way to remove new condition? I have this code and still see the condition new.

 

{*

{if !$product->is_virtual && $product->condition}

<p id="product_condition">

<label>{l s='Condition:'} </label>

{if $product->condition == 'new'}

<link itemprop="itemCondition" href="http://schema.org/NewCondition"/>

<span class="editable">{l s='New product'}</span>

{elseif $product->condition == 'used'}

<link itemprop="itemCondition" href="http://schema.org/UsedCondition"/>

<span class="editable">{l s='Used'}</span>

{elseif $product->condition == 'refurbished'}

<link itemprop="itemCondition" href="http://schema.org/RefurbishedCondition"/>

<span class="editable">{l s='Refurbished'}</span>

{/if}

</p>

*}

Link to comment
Share on other sites

  • 2 weeks later...

Hi

 

How to remove the product Condition only for Virtual Products for Prestashop 1.5.6.2?
Does not make any sense to have product conditions on Virtual Products...

 

I have found this fix repo but it is only for Prestashop 1.6.x
my prestashop version is 1.5.6.2

 

PS; sorry for hijack this thread.

 

Regards 

Link to comment
Share on other sites

  • 8 months later...

Using cart 1.6.10 and this solution still works perfectly. As a newbie I am finding PrestaCart feature rich and give me power to minipulate multiple things, but it just seems silly this is not a setting in the control panel we can turn off. Let be honest, what percentage of people are selling used verus new items? I would guess the majority of people are only selling new items. Love this feature it does allow us to sell all and display condition; just thinking this might be a logical candidate to have a setting in the admin panel instead of most of us having to remove code.

Edited by clubbuilder (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...