Zen Follower
- Join Date:
- Mar 2010
- Location:
- Finland
- Posts:
- 465
- Plugin Contributions:
- 0
Post #1 by kalastaja
How do I get current status of all customers GV accounts? I need to know how much I'm in for.
Zen Follower
How do I get current status of all customers GV accounts? I need to know how much I'm in for.
Oba-san
In your Zen Cart Admin, go to Customers ... Customers ... and all GV balances are listed there for your customers ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Zen Follower
Correct answer, but not helpful, as it would require me to manually count each value to be able to know "how much I'm in for".
Sensei
Around line 98 of /admin/index.php you have:
echo '<div class="row"><span class="left">' . BOX_ENTRY_SALEMAKER_ACTIVE . '</span><span class="rigth"> ' . $salemaker_act->fields['count']. '</span></div>';
Add the following after it:
$gvresult = $db->Execute("SELECT sum(amount) as gvsum FROM " . TABLE_COUPON_GV_CUSTOMER);
if ($gvresult->RecordCount()) {
require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();
echo '<div class="row"><span class="left">' . 'GV Queue Balance' . '</span><span class="rigth"> ' . $currencies->format($gvresult->fields['gvsum']) . '</span></div>';
}
Now the amount will show on your admin home page.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Zen Follower
Just what the doctor ordered - thanks.
Tell staff why this post should be reviewed.