capsuleecialde.com Posted November 3, 2014 Share Posted November 3, 2014 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? Link to comment Share on other sites More sharing options...
NemoPS Posted November 3, 2014 Share Posted November 3, 2014 config/defines.inc.php set PS_MODE_DEV to true 1 Link to comment Share on other sites More sharing options...
capsuleecialde.com Posted November 3, 2014 Author Share Posted November 3, 2014 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 More sharing options...
vekia Posted November 3, 2014 Share Posted November 3, 2014 please attach file that you modified i think that you removed to much code :-) 1 Link to comment Share on other sites More sharing options...
capsuleecialde.com Posted November 3, 2014 Author Share Posted November 3, 2014 (edited) Hello, Vekia! Thank you for the reply! I attach the file fo you, Now the file I'm using is the original one. PROBLEM! I can't: product.tpl You aren't permitted to upload this kind of file NOW I've zipped it, IT'S OK! product.zip Edited November 3, 2014 by capsuleecialde.com (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted November 5, 2014 Share Posted November 5, 2014 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*} 1 Link to comment Share on other sites More sharing options...
capsuleecialde.com Posted November 6, 2014 Author Share Posted November 6, 2014 You have solved my problem! Thank you very much! Now I try to remove "condition" with a new backup of the original file working correctly. Tanks to Vekia and NEMO1 for their work Link to comment Share on other sites More sharing options...
Recommended Posts