*

MB Themes

Re: icon for the top of the site - how to do it?
« Reply #15 on: October 17, 2017, 03:27:01 PM »
np  8)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dawid

  • ****
  • 149 posts
Re: icon for the top of the site - how to do it?
« Reply #16 on: November 29, 2017, 11:03:22 AM »
Hi i install this code : in header.php looks perfect but not work . Dont show how many its favorite items . In user dashboard its 3 Favorite item , ( in header show 0 favorite item ) . wher its problem ?

<?php
  if(osc_is_web_user_logged_in()) {
    $user_id = osc_logged_user_id();
  } else {
    $user_id = mb_get_cookie('fi_user_id');
  }
?>
<?php $list_id = ModelFI::newInstance()->getCurrentFavoriteListByUserId($uesr_id); ?>
<?php $fcount = count(ModelFI::newInstance()->getFavoriteItemsByListId($list_id)); ?>
<a class="item tr1" title="<?php _e('Favorite', 'veronika'); ?>" href="<?php echo osc_route_url('favorite-lists', array('list-id' => '0', 'current-update' => '0', 'notification-update' => '0', 'list-remove' => '0', 'iPage' => '0')); ?>">
  <i class="fa fa-thumbs-up"></i>
  <span class="counter"><?php echo $fcount; ?></span>
</a>

*

Dawid

  • ****
  • 149 posts
Re: icon for the top of the site - how to do it?
« Reply #17 on: November 29, 2017, 11:10:08 AM »
Wher i can find problem ?