Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Hide "View Cart" from top menu Rate Topic   - - - - -

 
  • Chris
  • Senior Member
  • Members
  • Join Date: 06-Aug 07
  • 115 posts

Posted 27 February 2013 - 08:39 PM #1

Is there a way to hide top menu items until someone has logged in. I would like to hide "view cart" and also "My Account" untiil they login.
CS-Cart V2.06

 
  • StellarBytes
  • Senior Member
  • Members
  • Join Date: 08-Aug 11
  • 1807 posts

Posted 27 February 2013 - 08:56 PM #2

There isn't any setting to disable those as default, you'll need to modify the templates they use.

You can wrap the template file in an "if authenticated" if statement, like so:

{if $auth.user_id}
original template code here
{else}
{$lang.error_not_logged}
{/if}

In this case, this would display "You must log in before you can access this resource!" if the user is not logged in, which isn't ideal for your particular needs, so you can leave the {else} statement empty or tailor it to show the Sign In link.
Hire StellarBytes for CS-Cart Design & Development Services

 
  • Chris
  • Senior Member
  • Members
  • Join Date: 06-Aug 07
  • 115 posts

Posted 04 March 2013 - 10:41 PM #3

Thanks so much!!! I will give that a try. Really appreciate it.
CS-Cart V2.06