Jump to content

Hide price for supplier


parrucca

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...