williambesson Posted May 7, 2014 Share Posted May 7, 2014 Hello, I am a bit stuck with the following problem. I am trying to show a different product list for when the user is logged in or logged out. As default when the user is logged out I have a left-center-right column for my product list. (file: product-list.tpl) I would like to get rid of the right column and change the size of my center column when the user is logged in for example. That means that ideally I would use the same classes but with different attributes depending on if the user is logged in or not. I know the existence of {if $logged} ... {/if} but it's not enough to solve my problem Is there a workaround this? Many thanks for your time on this. Guillaume Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 what theme you use and what prestashop version? everything depends on it. Link to comment Share on other sites More sharing options...
williambesson Posted May 8, 2014 Author Share Posted May 8, 2014 Thanks a lot for your help Vekia, I am on the default theme on 1.5.6.0 Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 footer.tpl change: <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div> to: {if $logged} <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div>{/if} header.tpl change <div id="center_column" class=" grid_5"> to: <div id="center_column" class="{if $logged}grid_7 alpha omega{else} grid_5{/if}"> Link to comment Share on other sites More sharing options...
williambesson Posted May 8, 2014 Author Share Posted May 8, 2014 Wonderful! It worked perfectly. Thanks a lot. Link to comment Share on other sites More sharing options...
vekia Posted May 9, 2014 Share Posted May 9, 2014 thank you for confirmation that it works i can go ahead and mark topic title as solved. if you will need any additional assistance related to this case - feel free to continue discussion below 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