Support Forums - Classified Ads Script Osclass
Unread
New Replies
Osclass Market
Download Osclass
Documentation
Home
Help
Search
Login
Register
Question - How to get current users wallet balance and display?
Support Forums - Classified Ads Script Osclass
Osclass plugin support
Osclass Pay Plugin
Question - How to get current users wallet balance and display?
Match all words
Match any words
Most relevant results first
Largest topics first
Smallest topics first
Most recent topics first
Oldest topics first
Advanced
Unread posts
New replies
My topics
My posts
Print
Pages: [
1
]
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
Logged
MB Themes
Support team
17499 posts
Only quality matters
Download Osclass
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
()));
?>
Logged
To get fast support, we need following details:
Detail description, URL to reproduce problem, Screenshots
Print
Pages: [
1
]