If this is your first visit, check our documentation. To post, register or login.

GV statistics

Started by kalastaja on 26 Jan 2017, 4:34 PM · Views: 2,653

Results 1 to 5 of 5
26 Jan 2017, 4:34 PM
#1
kalastaja avatar

kalastaja

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.

27 Jan 2017, 4:28 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

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 ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

27 Jan 2017, 6:48 PM
#3
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Post #3 by kalastaja

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".

27 Jan 2017, 8:02 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

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.

29 Jan 2017, 8:45 AM
#5
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Post #5 by kalastaja

Just what the doctor ordered - thanks.