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
    69,402
    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.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
    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
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

 

 

Similar Threads

  1. Replies: 2
    Last Post: 17 May 2011, 03:50 AM
  2. Comment out "Check for Updates" Button, "Support Site" Link, & "Version" Link?
    By g00glethis1 in forum Customization from the Admin
    Replies: 4
    Last Post: 15 Mar 2010, 06:32 AM
  3. Replies: 26
    Last Post: 19 Feb 2010, 02:56 AM
  4. Show both "Add to Card" and "Sold Out" button
    By lgarner in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Feb 2010, 04:16 AM
  5. Store "forgets" whats in the basket when pressing "Home"?
    By deanparkr in forum General Questions
    Replies: 1
    Last Post: 7 Dec 2008, 05:55 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