Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2012
    Posts
    10
    Plugin Contributions
    0

    Default [Fixed v1.5.1] Cust authorization e-mail not sent out on pressing "the red button".

    Before upgrading this worked like a charm. Pressing the red button in the admin -> customers area would automatically send an e-mail stating their account was approved. Now it doesn't work at all. The button turns green, but no e-mail is sent out.

    I opened firebug to see what happens and apparently it is not even trying to send the e-mail? There is one request that isn't processed and doesn't ever time out or throw out an error. I compared my current cart to my old one, seeing what requests are sent, and this is what I found:

    Current:

    1. GET customers.php?page=1&cID=1671&action=edit: as described, nothing happens with this.
    2. GET customers.php?action=status&cID=1671&page=1: 200 OK

    Old:

    1. GET customers.php?page=1&cID=1671&action=edit: Aborted
    2. GET customers.php?action=status&current=2&cID=1389&page=1: 200 OK

    When pasted into the adress bar, the first request takes me to the edit customer page for the customer I am trying to approve (me). The second request actually sends the e-mail in my old cart. I also notice that the 'current=2' variable isn't sent in my new cart. The old is 1.3.9h, the new is 1.5

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    67,384
    Plugin Contributions
    6

    Default Re: Customer authorization e-mail not sent out on pressing "the red button".

    Could you test changing the code at line 78 in:
    /your_secret_admin/customers.php

    Code:
                if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_GET['current'] > 0 && $custinfo->RecordCount() > 0) {
    to read:
    Code:
    //            if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_GET['current'] > 0 && $custinfo->RecordCount() > 0) {
                if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_POST['current'] > 0 && $custinfo->RecordCount() > 0) {
    does this correct the issue?
    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.3]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Feb 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: Customer authorization e-mail not sent out on pressing "the red button".

    That worked out just fine! Thank you!

  4. #4
    Join Date
    Jan 2004
    Posts
    60,313
    Blog Entries
    4
    Plugin Contributions
    144

    Default Re: [Fixed v1.5.1] Cust authorization e-mail not sent out on pressing "the red button

    Fixed v1.5.1
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.



 

 

Similar Threads

  1. v150 Disable and enable product in admin not working? (red button or green button)
    By spiggles87 in forum Customization from the Admin
    Replies: 8
    Last Post: 26 Apr 2013, 10:39 PM
  2. Sold Out button ~ want it red
    By EC web in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Feb 2011, 09:55 PM
  3. Display Item when Out of Stok button is Red
    By rufusclc in forum Customization from the Admin
    Replies: 3
    Last Post: 10 Mar 2010, 02:49 PM
  4. the e-mail is sent but the customer doesn't recieve it
    By raygeraldo in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 16 Jul 2008, 02:12 AM

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
  •