Thread: GV statistics

Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default GV statistics

    How do I get current status of all customers GV accounts? I need to know how much I'm in for.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: GV statistics

    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: v1.5.5]
    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!

  3. #3
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: GV statistics

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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: GV statistics

    Around line 98 of /admin/index.php you have:
    Code:
      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:
    Code:
      $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.

  5. #5
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: GV statistics

    Just what the doctor ordered - thanks.

 

 

Similar Threads

  1. Sales statistics
    By scrap in forum General Questions
    Replies: 2
    Last Post: 18 May 2010, 10:36 AM
  2. Site Statistics?
    By whiteblazer01 in forum Basic Configuration
    Replies: 1
    Last Post: 2 Mar 2009, 10:04 AM
  3. Site statistics
    By petek in forum General Questions
    Replies: 2
    Last Post: 19 May 2008, 01:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR