Jump to content

Template dont hide the prices to visitors


mikefors88

Recommended Posts

Hi,

 

My english is a little bad, then i will go to the point. I installed the version of prestashop 1.6.1.7 and i installed a template, when  i desactive the option to hide the prices to visitors and guests, in some sections for example in categories section and features section, the prices still show to the visitors users, this happen only in the template, i did it in the default template and works fine!  i dont know what i need to do to work in my template. 

 

Thank you

 

Jose Miguel

Link to comment
Share on other sites

Thanks for respond, rocky, I found the solution of this problem, i compared the files from my template and the default template that prestashop gives you and i found this condition,

 

{if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

 

I just add this condition in the modules, specially in the prices that still show the price after i active the option to hide price in client's groups.

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...