Andree Posted December 7, 2017 Share Posted December 7, 2017 I have changed in the design of the prestashop theme and I got an error, I went back to reset everything, I still get error SmartyCompilerException in /home2/colchonesymas/public_html/vendor/prestashop/smarty/sysplugins/smarty_internal_templatecompilerbase.php line 85:Syntax error in template "/home2/colchonesymas/public_html/modules/owlproductcategory/views/templates/hook/owlproductcategory_column.tpl" on line 85 "{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}" unknown tag "convertPrice" in smarty_internal_templatecompilerbase.php line 85 at Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "convertPrice"', '85') in smarty_internal_templatecompilerbase.php line 547 at Smarty_Internal_TemplateCompilerBase->compileTag('convertPrice', array(array('price' => '$_smarty_tpl->tpl_vars['product']->value['price']'))) in smarty_internal_templateparser.php line 3564 at Smarty_Internal_Templateparser->yy_r37() in smarty_internal_templateparser.php line 4392 at Smarty_Internal_Templateparser->yy_reduce('37') in smarty_internal_templateparser.php line 4493 at Smarty_Internal_Templateparser->doParse('3', '}') in smarty_internal_smartytemplatecompiler.php line 118 at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {$number_line = 2} {$id_lang = Context::getContext()->language->id} <div class="block-content type-colum"> {foreach from=$group_cat_info item=cat_info name=g_cat_info} <div class="owl-prod-cat-{$cat_info.id_cat|intval} col-sm-4"> <div class="cat-bar col-sm-12"> <div class="out-owl-prod"> {if $cat_info.cat_icon!='' } <div class="icon_cat" style="background-color:{$cat_info.cat_color|escape:'html':'UTF-8'}"> <img src="{$icon_path|escape:'html':'UTF-8'}{$cat_info.cat_icon|escape:'html':'UTF-8'}" alt=""/> </div> {/if} <h3><a href="{$link->getCategoryLink($cat_info.id_cat, $cat_info.link_rewrite)|escape:'html':'UTF-8'}" title="{$cat_info.cat_name|escape:'html':'UTF-8'}">{$cat_info.cat_name|escape:'html':'UTF-8'}</a></h3> </div> </div> <div class="sub-cat col-sm-12"> <ul class="sub-cat-ul"> {foreach from = $cat_info.sub_cat item=sub_cat name=sub_cat_info} <li><a href="{$link->getCategoryLink($sub_cat.id_category, $sub_cat.link_rewrite)|escape:'html':'UTF-8'}" title="{$sub_cat.name|escape:'html':'UTF-8'}">{$sub_cat.name|escape:'html':'UTF-8'}</a></li> {/foreach} {if $cat_info.show_img == 1 && isset($cat_info.id_image) && $cat_info.id_image > 0} <li class="cat-img"> <a href="{$link->getCategoryLink($cat_info.id_cat, $cat_info.link_rewrite)|escape:'html':'UTF-8'}" title="{$cat_info.cat_name|escape:'html':'UTF-8'}"> <img src="{$link->getCatImageLink($cat_info.link_rewrite, $cat_info.id_image, 'medium_default')|escape:'html':'UTF-8'}"/> </a> </li> {/if} {if isset($cat_info.special_prod_obj) && count($cat_info.special_prod_obj)} {$cat_product = $cat_info.special_prod_obj} {$id_lang = Context::getContext()->language->id} <li class="owl-prod-special"> <h5 class="product-name">{$cat_product->name[$id_lang]|escape:'html':'UTF-8'}</h5> <a class="product_img_link" href="{$link->getProductLink($cat_product)|escape:'html':'UTF-8'}" title="{$cat_product->name[$id_lang]|escape:'html':'UTF-8'}"> <img class="replace-2x img-responsive" src="{$link->getImageLink($cat_product->link_rewrite, $cat_product->id_image, 'home_default')|escape:'html':'UTF-8'}" alt="" title=""/> </a> </li> {/if} </ul> </div> <div class="cat-banner col-sm-12"> {if $cat_info.cat_banner!='' } <a href="{$link->getCategoryLink($cat_info.id_cat, $cat_info.link_rewrite)|escape:'html':'UTF-8'}" title="{$cat_info.cat_name|escape:'html':'UTF-8'}"> <img src="{$banner_path|escape:'html':'UTF-8'}{$cat_info.cat_banner|escape:'html':'UTF-8'}" alt=""/> </a> {/if} </div> <div class="product_list col-sm-12"> <div class="owl-prod-cat"> {foreach from=$cat_info.product_list item=product name=product_list} {if $smarty.foreach.product_list.iteration % $number_line == 1 || $number_line == 1} <div class="item product-box ajax_block_product"> {/if} <div class="product-container"> <h5 class="product-name">{$product.name|escape:'html':'UTF-8'}</h5> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <span class="price product-price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span class="old-price product-price"> {displayOwlPrice p=$product.price_without_reduction} </span> {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {if $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100|escape:'html':'UTF-8'}%</span> {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {/if} </div> {/if} <a class="product_img_link" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.legend|escape:html:'UTF-8'}"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{$product.legend|escape:html:'UTF-8'}" /></a> </div> {if $smarty.foreach.product_list.iteration % $number_line == 0 || $smarty.foreach.product_list.last || $number_line == 1} </div> {/if} {/foreach} </div> {if count($cat_info)>0} <div class="manu-list"> <ul> {foreach from=$cat_info.manufacture item=manu_item name=manufacture} <li><a href="#">{$manu_item->name|escape:'html':'UTF-8'}</a></li> {/foreach} </ul> </div> {/if} </div> </div> {/foreach} </div> <script type="text/javascript"> $(document).ready(function() { $(".owl-prod-cat").owlCarousel({ loop: true, responsive: { 0: { items: 2}, 464:{ items: 2}, 750:{ items: 2}, 974:{ items: 2}, 1170:{ items: 3} }, dots: false, nav: true, loop: true }); }); </script>') in smarty_internal_templatecompilerbase.php line 283 at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(Smarty_Dev_Template)) in smarty_internal_template.php line 197 at Smarty_Internal_Template->compileTemplateSource() in smarty_internal_templatebase.php line 155 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, false, true) in SmartyDev.php line 60 at Smarty_Dev_Template->fetch(null, null, null, null, false, false, true) in smarty_internal_template.php line 303 at Smarty_Internal_Template->getSubTemplate('r', 'S') in smarty_internal_templatebase.php(157) : eval()'d code line 43 at content_5a2950c35ea3c6_02614771(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false) in SmartyDev.php line 60 at Smarty_Dev_Template->fetch() in Module.php line 2241 at ModuleCore->display('/home2/colchonesymas/public_html/modules/owlproductcategory/owlproductcategory.php', 'owlproductcategory_home.tpl', 'owlproductcategory_home|1|1|2|171') in owlproductcategory.php line 1001 at Owlproductcategory->hookDisplayHome(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 895 at HookCore::coreCallHook(object(Owlproductcategory), 'hookdisplayHome', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 327 at HookCore::callHookOn(object(Owlproductcategory), 'displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 843 at HookCore::exec('displayHome') in IndexController.php line 39 at IndexControllerCore->initContent() in Controller.php line 205 at ControllerCore->run() in Dispatcher.php line 369 at DispatcherCore->dispatch() in index.php line 28 help me :c Link to comment Share on other sites More sharing options...
roja45 Posted December 7, 2017 Share Posted December 7, 2017 delete everything in \cache\smarty\compile via the file system there are some things that cause smarty to fail which aren't fixed when you clean the cache. 1 Link to comment Share on other sites More sharing options...
Andree Posted January 23, 2018 Author Share Posted January 23, 2018 On 7/12/2017 at 10:12 AM, roja45 said: On 7/12/2017 at 10:12 AM, roja45 said: delete everything in \cache\smarty\compile via the file system there are some things that cause smarty to fail which aren't fixed when you clean the cache. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now