Jump to content
  • 0

Product Condition - Preference to not display?


sevans

Question

3 answers to this question

Recommended Posts

  • 0

Hey!
I fill up the question, should I remove all of this if you do not want the field?

 

<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>

 

Hans

Link to comment
Share on other sites

  • 0

Hello

 

Why not just <!-- Comment Out -->  the code, you never know you may need it in six months.

 

<!--{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/RefurbishedCondition"/>
<span class="editable">{l s='Refurbished'}</span>
{/if}
</p>
{/if}-->
 
Paul
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...