Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Posts
    88
    Plugin Contributions
    0

    Message stack customization

    Having the message stack at the top of the page doesn't work for one of my sites, so I moved it to the bottom of the header. I can't seem to style it though. I gather that tpl_message_stack_default.php is called by the messageStack class. As a test, I modified the code of this template like so:

    Code:
    <div <?php echo $output[$i]['params']; ?> class="BOOGIEMAN"><?php echo $output[$i]['text']; ?></div>
    Now, when I run a CC test using a card I know will fail, I expect to see the message stack displayed and its code should show my class="BOOGIEMAN" as above, but this isn't what I get--the message stack has no DIV tags surrounding it at all.

    So, which file actually generates the output for the message stack error on the checkout-payment page?

    Perhaps the answer to this question will also answer this one: how to remove the leading dash before the message stack?

    - Your card has been declined...
    The dash is not in the payment module language file.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Message stack customization

    HTML Code:
    /*warnings, errors, messages*/
    .messageStackWarning, .messageStackError, .messageStackSuccess, .messageStackCaution {
    	line-height: 1.8em;
    	padding: 0.2em;
    	border: 1px solid #000000;
    	}
    
    .messageStackWarning, .messageStackError {
    	background-color: #ff0000;
    	color: #ffffff;
    	}
    
    .messageStackSuccess {
    	background-color: #99FF99;
    	color: #000000;
    	}
    
    .messageStackCaution {
    	background-color: #FFFF66;
    	color: #000000;
    	}
    The above classes style the messagestack.

  3. #3
    Join Date
    Jan 2006
    Posts
    88
    Plugin Contributions
    0

    Default Re: Message stack customization

    Thanks Kim! However, I already have that in my CSS file--the styles don't appear though. I don't even see any message stack classes in the outputted page:

    Code:
    <!--eof-branding display-->
    
    <!--eof-header logo and navigation display-->
    
    
    
    <!--bof-header ezpage links-->
    <!--eof-header ezpage links-->
    </div>
    
     - Your card has been declined.  Please re-enter in your card information, try another card, or contact the store owner for assistance.
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
    I'm curious as to what template controls this so that I can take a closer look. Maybe this is actually generated by the PSiGate XML payment module...

  4. #4
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Message stack customization

    Hhmmm, without seeing it in action it is difficult to tell, but it could be the module is not using the message stack correctly.

  5. #5
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Message stack customization

    Hi,

    Ehm, actually I want to change the message stack background color in the Admin page but I don't know which CSS file control those colors as its hard to see the text written in it when my Admin are black in color (I used the Green Tea Admin mod!)...
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

  6. #6
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Message stack customization

    anyone out there knows how to change the message stack background color?!!!!!!!
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

 

 

Similar Threads

  1. v153 Adding a message into the message stack
    By delia in forum General Questions
    Replies: 9
    Last Post: 22 Oct 2014, 05:29 PM
  2. Message stack question
    By Meshach in forum General Questions
    Replies: 0
    Last Post: 5 May 2009, 08:10 PM
  3. Message Stack
    By chris32882 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Oct 2008, 03:07 AM
  4. Stumped by message stack
    By Ryk in forum General Questions
    Replies: 0
    Last Post: 2 Jun 2007, 12:45 AM

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