Jump to content

disable " condition " in description, how to?


Recommended Posts

Hello

 

You need to go to:

 

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

 

and delete or better to <!-- Comment Out--> this code around line 170

 

 
<!--  {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>  -->
 
Before
 
After
 
Paul
Link to comment
Share on other sites

thank you Paul.

 

this is the code i have

 

</p>
            {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>

 

i studied html long time ago. kind of forget the </p>, not sure and don't want to mess up the code. where exactly should i delete or alternate the context?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...