Jump to content

big problem deleting "condition" from product page


Recommended Posts

hi everybody!

 

following the intructions contained in this topic: http://cart-help.com/topic/26-how-to-remove-conditions-of-product-new-refubrished-etc-form-product-page/ , I've modified the product.tpl file. Since this action my product page disappear! also the pop-up version of it. Trying to solve this problem, now I'm running the original version of the product.tpl file (uploaded from backup). WITH NO RESULT.

 

What could I do to fix this problem?

post-847744-0-90021700-1415002067_thumb.png

Link to comment
Share on other sites

Hi Nemo, thanks for the reply! I send you the error message now I'm seeing.
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/capsul14/public_html/themes/default-bootstrap/product.tpl" on line 158 "{if $product->}" - Unexpected "}", expected one of: "{" , "$" , "identifier" <-- thrown in /home/capsul14/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 158

Link to comment
Share on other sites

Here is what you have

 

 

{if $product->}
<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}
 
See the first line, it should be
 
 
{if $product->condition}
 
 
And if you want to comment this all out
 
{*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*}
 
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...