Hiding "HikaShop Cart Module" once logged in.

  • Posts: 139
  • Thank you received: 1
11 years 3 weeks ago #165411

Is it possible to hide the "HikaShop Cart Module" when

if($this->identified) {}
i.e. when logged on?

Please Log in or Create an account to join the conversation.

  • Posts: 84219
  • Thank you received: 13671
  • MODERATOR
11 years 3 weeks ago #165446

Hi,

Sure. Here is a documentation of Joomla explaining how to hide a module from logged in users:
docs.joomla.org/How_do_you_hide_somethin...m_logged_in_users%3F

Please Log in or Create an account to join the conversation.

  • Posts: 139
  • Thank you received: 1
11 years 3 weeks ago #165487

Sorry my question was misleading. My buyers are not logging in when making purchases so what I am wanting to do is hide the module once they have entered their purchase e-mail.

Please Log in or Create an account to join the conversation.

  • Posts: 84219
  • Thank you received: 13671
  • MODERATOR
11 years 3 weeks ago #165597

Hi,

In that case you want to edit the file "cart" of the view "product" via the menu Display>Views and add at the beginning such code:
<?php if(hikashop_loadUser()){ return; } ?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum