Gipielle Posted November 6, 2018 Share Posted November 6, 2018 I got this error but i'm unable to solve [Tue Nov 06 18:31:05.653478 2018] [:error] [pid 63849] [client 176.83.227.140:4845] FastCGI: server "/var/www/clients/client1/web1/cgi-bin/php-fcgi-*-443-.it" stderr: PHP message: PHP Notice: Undefined index: orderprice in /var/www/clients/client1/web1/web/cache/smarty/compile/82/8e/1f/828e1f0d90c652fcd067fbf2f0f499cba85d5404.file.product-list.tpl.php on line 148, referer: i think this is the part with the problem {if ($product.orderprice > $product.price_tax_exc) || ($product.old_price > $product.price_tax_exc)} <span id="old_price_display" class="linea"> {if $product.orderprice} {convertPrice price=$product.orderprice} {else} {convertPrice price=$product.old_price} {/if} </span><br> {/if} Thanks Link to comment Share on other sites More sharing options...
Rolige Posted November 7, 2018 Share Posted November 7, 2018 Hello: Debug you tpl code with {debug} smarty statement. There you can find if orderprice index is set on your $product var. If not you must set it in PHP before pass de param to smarty. Regards Link to comment Share on other sites More sharing options...
Gipielle Posted November 12, 2018 Author Share Posted November 12, 2018 Thanks, how can i debug with {debug} smarty statement ? 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