My question is in the title of the topic
i wondering how i can remove the conditions from product page
i use prestashop 1.6.0.5 with default-bootstrap template
Posted 04 April 2014 - 10:22 PM
you have to modify product.tpl file located in your theme directory, there is a code like:
{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 remove it. and you will remove "condition" from your product page.
remember about clearing cache in some cases it's necessary to see the changes that you applied to tpl files
enjoy
free tutorials, free templates, free addons, prestashop modules
Posted 17 April 2014 - 07:54 AM
Hi,
Same like I want to Show Product weight on Product Page and Total Wieght in Cart.
Kindly Help
you mean total weight of cart, not currently viewed product, right?
free tutorials, free templates, free addons, prestashop modules
Posted 05 May 2014 - 10:00 AM
Hi Vekia,
I used your suggestion to hide "conditions" of product (new, refubrished etc.) form product page.
Is it possible that it has an effect on the layered navigation block?
My layered navigation block is showing only few filters (available, condition, price) instead of all the features available.
What is your opinion?
Thanks
Navid
Posted 05 May 2014 - 10:33 AM
hello
no, it's not possible that modification like that can affect layered filters.
we changed only tpl file, layered navigation doesnt use tpl files for "filtering" purposes
free tutorials, free templates, free addons, prestashop modules
Posted 30 October 2014 - 03:47 PM
Hi Vekia. A question from a begginer... In my PS 1.6.09 this is the fragment in product.tpl that say "Condition"
{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} </p> {/if}
Can you tell me precisely what lines I need to delete without to make a mess in the store? Someone advice me to delete the "Condition" filter but I don't know how. SO I want to start deleting the "condition" state in my products since are all digitals. Thanks!
Posted 03 November 2014 - 09:23 AM
hello
to prevent possible "problems" instead of removing code you can comment it out with {* comment *} method
{* {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} </p> {/if} *}
free tutorials, free templates, free addons, prestashop modules
Posted 12 January 2015 - 04:58 AM
I followed the instructions to remove conditions but they are still there. What am I doing wrong?
{*
{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'}</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/Re...hedCondition"/>
<span class="editable">{l s='Refurbished'}</span>
{/if}
</p>
{/if}
*}
Posted 12 January 2015 - 06:50 PM
I am trying to do the same thing "Remove the Conditions Tab"
When you say "you have to modify product.tpl file located in your theme directory"
Where is that? I dont see anything under Themes? How do i get to the modify code area of the software thanks?
you have to alter prestashop filesystem,
it means that you have to edit files.
free tutorials, free templates, free addons, prestashop modules
Posted 12 January 2015 - 06:52 PM
I followed the instructions to remove conditions but they are still there. What am I doing wrong?
{*
{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'}</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/Re...hedCondition"/>
<span class="editable">{l s='Refurbished'}</span>
{/if}
</p>
{/if}
*}
preferences > performance
clear shop cache and recompile theme
free tutorials, free templates, free addons, prestashop modules
Posted 19 January 2015 - 12:45 AM
Im not sure you understood what i was asking, i want to know how to get to the area that you modify the code. You say go to themes, but i cant see how to do it from there.
you have to use FTP connection to alter files.
You can alternatively use some files manager from your hosting account manager (if you've got it)
free tutorials, free templates, free addons, prestashop modules
Posted 07 June 2018 - 10:36 AM
you have to modify product.tpl file located in your theme directory, there is a code like:
{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 remove it. and you will remove "condition" from your product page.
remember about clearing cache in some cases it's necessary to see the changes that you applied to tpl files
enjoy
Great it's work fine