Showing posts with label Opencart display module only if user logged in. Show all posts
Showing posts with label Opencart display module only if user logged in. Show all posts

Thursday, 3 July 2014

How to make a login/logout functionality in opencart


How to make a login/logout functionality in opencart

<?php if (!$logged) { ?>
      <a class="tr_login" href="<?php echo str_replace('&', '&amp;', $login); ?>" title="<?php echo $text_login; ?>"><?php echo $text_login; ?></a>
      <?php } else { ?>
      <a class="tr_logout" href="<?php echo str_replace('&', '&amp;', $logout); ?>" title="<?php echo $text_logout; ?>"><?php echo $text_logout; ?></a>
<?php } ?>

Thats it.... Enjoy Chandresh rana's Coding... :)