wimogas Posted October 6, 2015 Share Posted October 6, 2015 I want to show a Custom box with prices ONLY to logged in Employees (I created a Group called Employees). Heres the code in my product.tpl: {if isset($product) && $product->custom} <section class="page-product-box"> <div style="padding:10px;">{$product->custom}</div> </section> {/if} How do I add a condition to that code so that it only shows to Group Employees? Anyone? Much obliged, G Link to comment Share on other sites More sharing options...
ventura Posted October 6, 2015 Share Posted October 6, 2015 (edited) Try this statement {if isset($product) && $product->custom && Group::getCurrent()->id == 4} 4= id customer defaulf group Edited October 6, 2015 by ventura (see edit history) Link to comment Share on other sites More sharing options...
wimogas Posted October 6, 2015 Author Share Posted October 6, 2015 I knew it would be easy for you guys Thanks! It works. G 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