Jump to content

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

Create A Menu And Make It Hidden From Logged-In Users? Rate Topic   - - - - -

 
  • a3lanjo
  • Member
  • Trial users
  • Join Date: 14-Sep 20
  • 34 posts

Posted 05 December 2020 - 11:32 PM #1

Hello,

 

how  create a menu and make it hidden from logged-in users?

 

i will use example Top Menu

 

Thanks

 

 



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12051 posts

Posted 06 December 2020 - 08:02 PM #2

Your question is not clear.  You want it to display when a user is NOT logged in and hidden when they are?  If so, find the block that is displaying your menu and surround it with:

[code=auto:0]

{if !$auth.user_id}

  All the menu code here

{/if}


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4917 posts

Posted 07 December 2020 - 01:12 AM #3

Cant remember if this behaviour was native to CS or an addon. BUT 

 

go into the block settings for the meno block  and make it visible to guests and not registered customer

but this was an addon back when

 

https://cs-market.co...ups-add-on.html


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21804 posts

Posted 07 December 2020 - 05:36 AM #4

Please pay attention to our module as well

 

https://www.ecom-lab...ngs-add-on.html


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4917 posts

Posted 07 December 2020 - 06:10 PM #5

Please pay attention to our module as well

 

https://www.ecom-lab...ngs-add-on.html

this works well for me


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2