Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: php 5.4+ missing payment type in $_SESSION on checkout_process

    Quote Originally Posted by texdc View Post
    Unit tests go a long way to preventing bugs and proving that things work not just on the dev's box.
    Agreed entirely. But, someone has to write them. And as you know, procedural code doesn't lend itself well to unit tests.
    And that's a discussion we've already had in other forum channels.
    That said, thanks for your recent PR's for v1.6.0.
    .

    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.

  2. #12
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: php 5.4+ missing payment type in $_SESSION on checkout_process

    $_SESSION['payment'] is only reset during processing if $credit_covers is true, and that happens only when the order-total modules determine that any discounts (coupons, gift certificates, etc) equal or exceed the total purchase price, thus determining that there is no payment required. And in that case the store expects that you also have the freecharger module enabled so that it can catch that 0.00 price scenario and complete checkout without requiring payment.

    I see from your var_dump that you have $_SESSION['cc_id'] set, which indicates that the system attempted to process a coupon.
    And, you stated later that you don't have freecharger enabled.

    Does enabling freecharger help?
    .

    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.

  3. #13
    Join Date
    Dec 2003
    Posts
    145
    Plugin Contributions
    0

    Default Re: php 5.4+ missing payment type in $_SESSION on checkout_process

    I've been swamped @ work and added a hack to keep things working until I could dig deeper into this. Here's my solution: `session_write_close()` should be called at the end of every page/script. `zen_session_close()` needs to be fixed:
    PHP Code:
    function zen_session_close() {
      
    session_write_close();


 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Having problem with order.php and checkout_process.php with OLD Zen Cart v1.2.3
    By wolfbane01 in forum Managing Customers and Orders
    Replies: 0
    Last Post: 28 Jul 2010, 01:56 AM
  2. Replies: 3
    Last Post: 10 Apr 2009, 10:37 PM
  3. PHP / $_SESSION help please
    By Jeff G in forum General Questions
    Replies: 2
    Last Post: 6 Oct 2008, 06:17 AM
  4. Checkout_process.php never displayed
    By mdorsey in forum Managing Customers and Orders
    Replies: 2
    Last Post: 18 Aug 2006, 04:08 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