*

Sudo

  • ***
  • 47 posts
Question - How to get current users wallet balance and display?
« on: October 25, 2017, 11:31:51 PM »
Was wondering what function to call to get the current users wallet balance and display
in a flash message upon login.

Thanks in advance!
-Sudo

*

MB Themes

Re: Question - How to get current users wallet balance and display?
« Reply #1 on: October 26, 2017, 01:34:25 PM »
@Sudo
https://doc.osclass.org/Hooks

It seems hook for login does not exists, maybe it is somewhere in core.

You can get wallet amount with code:
Code: [Select]
<?php echo osp_format_price(ModelOSP::newInstance()->getWallet(osc_logged_user_id())); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots