Results 1 to 10 of 3052

Threaded View

  1. #11
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    @niccol, what version of Zen Cart are you running on? The zc157+ version of /includes/classes/message_stack.php don't include that session reset.

    Update: Never mind; I'll get OPC updated.
    Oh, now I am not sure. This is a site I have inherited.

    It says 1.5.7a but obviously the line is not in the default Zen code. (or in 1.5.0) So, I don't know.

    What I am seeing on this site is this: (but it might be non-standard and someone has edited in the past.)

    Code:
        function size($class) 
        {
            if (!empty($_SESSION['messageToStack'])) {
                foreach ($_SESSION['messageToStack'] as $next_message) {
                    $this->add($next_message['class'], $next_message['text'], $next_message['type']);
                }
            }
    
            $_SESSION['messageToStack'] = array();
    
            $count = 0;
    
            foreach ($this->messages as $next_message) {
                if ($next_message['class'] == $class) {
                    $count++;
                }
            }
    
            return $count;
        }
    But your point about it being unnecessary anyway on Github makes a lot of sense :-)
    Last edited by niccol; 7 May 2022 at 01:49 PM. Reason: more info

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 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