Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Store Credit addon problem - does not complete order when using coupon to zero

    The CONTINUE_CHECKOUT_PROCEDURE "confirm the order" link does not show up on the Order Confirmation page (Step 3 of 3) if a discount coupon is used when the order total is zero. The link appears in every other instance to finalize the order. Even if the order total is zero, it works fine. But if I apply a discount coupon, the link to "confirm the order" does not appear and the order cannot be finalized. Once I remove the discount coupon, it works again. Why might someone want to use a discount coupon when their order total is already zero? Because they may be using store credit and they want to use less store credit.

    Does anyone know why this might be happening? Does it have something to do with the store credit mod? For now, my only solution is to tell customers they cannot use a discount coupon when they use store credit to bring their order total to zero.

  2. #2
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    It only happens with store credit. Not a problem using gift certificates to bring order total to zero. Must be a bug with the store credit mod.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    Right, and I think the problem is that your addon is causing a PHP error which prevents the "rest of the page" from drawing, and thus you're encountering the same symptoms as a typical "blank page" issue: http://www.zen-cart.com/content.php?124-blank-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.

  4. #4
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    Thanks, Dr. Byte. I've re-uploaded all of the files to make sure that none were missing. When I checked my hosting control panel area, there is no entry in the server's errorlog of any PHP syntax error. I have not customized the addon at all, so there should be no customization errors. Anywhere else I should take a look?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    Quote Originally Posted by AvaAdorn View Post
    When I checked my hosting control panel area, there is no entry in the server's errorlog of any PHP syntax error.
    That's *one* place to look.

    But if you look at the article I pointed you to, it tells you where Zen Cart logs the PHP errors it encounters. You need to look there too.
    .

    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.

  6. #6
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    Thanks, I've checked there too. And the only errors logged there have to do with recaptcha_functions.php (from the Recaptcha addon that I added).

    And this is the line that contains the error: echo $recaptcha->output();

    I don't know PHP well enough to know what error is in that line. Do you see anything that looks incorrect?

    I also did not make any changes to this file. It is the original file.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    Two things:
    1. What is the actual error message?
    2. Have you tried turning off the addin that's causing you problems?

  8. #8
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    This is the actual error message: [19-Oct-2012 22:17:09 UTC] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/admin/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/public_html/includes/functions/sessions.php on line 114
    [19-Oct-2012 22:17:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/admin/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/public_html/admin/includes/init_includes/init_templates.php on line 28

    My thought is, if I turn off the store credit addon, then I can't replicate the problem because I need to bring the order total to zero using store credit, right?

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    Quote Originally Posted by AvaAdorn View Post
    My thought is, if I turn off the store credit addon, then I can't replicate the problem because I need to bring the order total to zero using store credit, right?
    I've never used the store-credit addon, so I can't help you there.
    I'm trying to help you deal with actual error messages. Someone else can help you with the store-credit addon, perhaps someone who's using it.

    Quote Originally Posted by AvaAdorn View Post
    This is the actual error message: [19-Oct-2012 22:17:09 UTC] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/admin/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/public_html/includes/functions/sessions.php on line 114
    [19-Oct-2012 22:17:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/admin/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/public_html/admin/includes/init_includes/init_templates.php on line 28
    Those error messages mean you've got blank lines or invalid PHP code on line 128 of that admin recaptcha_functions.php file. Looking up the error message in the FAQs brings this article which explains the next steps: http://www.zen-cart.com/content.php?...s-already-sent
    .

    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.

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

    Default Re: Step 3 of 3 - Order Confirmation - does not complete order when using coupon to z

    This is line 128 of the recaptcha_functions.php file: echo $recaptcha->output();

    Do you see anything that looks incorrect? Maybe that it doesn't contain a closing ?>
    Do you think that is what it needs? There are no blank lines before or after either.

    Here's the code snippet from lines 126 to 130:

    if (basename($_SERVER['PHP_SELF']) == 'index.php')
    {
    echo $recaptcha->output();
    }
    /* End of file */

    I also did not make any changes to this file. It is the original file.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How can I bypass Paypal when store credit balance is zero?
    By MelodyW in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 13 Jun 2012, 06:49 AM
  2. Replies: 2
    Last Post: 7 Jun 2012, 12:01 AM
  3. zero dollar checkout problem caused by store credit mod
    By world_surfer in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 24 Nov 2010, 07:54 PM
  4. Order does not seem to be recognized as COWOA when using PayPal Express Checkout
    By alicia1234 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 3 Feb 2009, 06:06 AM
  5. When does a credit card order process?
    By magneteye in forum General Questions
    Replies: 8
    Last Post: 19 Jan 2008, 01:14 AM

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