Results 1 to 6 of 6

Hybrid View

  1. #1

    Default Performance Problem with Gift Certificate Panel

    I'm experiencing a growing performance issue on the Mail Gift Certificate panel. When I initially enter the panel it's now taking 2 1/2 minutes to bring up the entry fields.

    My guess is it's related to the customer list of e-mail addresses. If I'm issuing multiple gift certificates at the same time then the subsequent refresh of the panel appears to cache the data and it comes up quickly.

    Besides it being a pain to sit and wait several minutes for a panel to come up I'm concerned about future growth of my customer base and the ability to use this functionality (which I utilize a lot). I'm at 3,400 customers right now and can see that number increasing significantly over time.

    As a related observation: I also have a performance issue when using the Export Email Addresses mod. It appears this may be doing the same bit of logic to create that big list of customer e-mail addresses.

    I'm not certain of how to debug this type of thing for better analysis, any assistance would be appreciated!

    Thank you, Kathy
    www.pinkchalkfabrics.com - cloth, pattern + tool for modern sewists
    ZC version 1.3.9h, Simple Category Tree, Super Orders

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

    Default Re: Performance Problem with Gift Certificate Panel

    The waiting on the download from the pull down for the email addresses is what makes this so slow with a large number of customers ...

    If you edit:
    /admin/gv_mail.php

    and around line 362 change:
    Code:
                  <tr>
                    <td class="main"><?php echo TEXT_CUSTOMER; ?></td>
                    <td><?php echo zen_draw_pull_down_menu('customers_email_address', $customers, $_GET['customer']);?></td>
                  </tr>
    to read:
    Code:
    <?php if (false) { ?>
                  <tr>
                    <td class="main"><?php echo TEXT_CUSTOMER; ?></td>
                    <td><?php echo zen_draw_pull_down_menu('customers_email_address', $customers, $_GET['customer']);?></td>
                  </tr>
    <?php } ?>
    It should speed things up for you as now the dropdown is not trying to draw the 1000s of lines needed for the customers' emails and you should be able to type in an email address for it to send ...

    Be sure to test this out ...
    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!

  3. #3

    Default Re: Performance Problem with Gift Certificate Panel

    Thanks Ajeh Worked like a charm. I no longer have to fear sending out gift certificates!
    www.pinkchalkfabrics.com - cloth, pattern + tool for modern sewists
    ZC version 1.3.9h, Simple Category Tree, Super Orders

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

    Default Re: Performance Problem with Gift Certificate Panel

    Only if you typo the email address ...

    Thanks for the update that this works for you ...

    Oh ... one other change ... I missed ...

    Just above that code you will see:
    Code:
    <?php
         $customers = get_audiences_list('email');
    ?>
    Change that to:
    Code:
    <?php
        // $customers = get_audiences_list('email');
    ?>
    Makes it even faster when you don't first build the list that you are not going to display ...
    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!

  5. #5

    Default Re: Performance Problem with Gift Certificate Panel

    Added that in and it still works :)

    I send the majority of my gift certificates out as promotional tools to people that aren't customers yet. Even when I send to customers the list was so big it wasn't very helpful.

    Thank you!

    Kathy
    www.pinkchalkfabrics.com - cloth, pattern + tool for modern sewists
    ZC version 1.3.9h, Simple Category Tree, Super Orders

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

    Default Re: Performance Problem with Gift Certificate Panel

    Glad you asked this question as I have a client with 94,979 customers and while I had long, long ago turned off the one part ... I forgot that last part I gave you ...

    I peeked in there to see that I had done that change for him and yes it was done ... but not "as fast" as I wanted it ... then I saw I forgot to comment that last piece of code ...

    Much much better now ...

    Granted he is on a fast server so wasn't suffering horribly but it was still a 2-4 seconds more than it needed to be and now the page pops open nicely ...
    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!

 

 

Similar Threads

  1. v139g Gift Certificate / Coupons - problem with %
    By Nailen in forum General Questions
    Replies: 2
    Last Post: 10 Jan 2014, 07:02 PM
  2. problem with gift certificate
    By Dashizna in forum General Questions
    Replies: 12
    Last Post: 11 Jan 2011, 02:55 AM
  3. Small problem with mailing a gift certificate
    By Scott_C in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 30 Oct 2010, 08:46 AM
  4. problem with send gift certificate.
    By billt in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 26 Nov 2008, 09:51 AM
  5. Want to use a printed gift certificate (with code) in the gift certificate process?
    By HelenSama in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 15 Apr 2008, 02:04 PM

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