parrucca Posted April 26, 2017 Share Posted April 26, 2017 Hi, I use prestashop 1.6, I want hide price products for supplier. In the "product-list.tpl", I use: {if $product.id_supplier==1} style="display:none;" {/if} and work good! In the "product.tpl" I used the same code, but I've a this error: Fatal error: Cannot use object of type Product as array in /../tools/smarty/sysplugins/smarty_internal_templatebase.php(171) : eval()'d code on line 462 Can you help me, please? Thanks pep Link to comment Share on other sites More sharing options...
parrucca Posted April 27, 2017 Author Share Posted April 27, 2017 I've solved: {if $product->id_supplier == 1} style="display:none;"{/if}> thanks p 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