Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Posts
    85
    Plugin Contributions
    0

    Default Altering $messageStack position

    Hi,

    I'd like to alter the place where $messageStack is echo-ed. For instance, when you redeem a gift certificate code during check out, which is invalid, the error message appears at the top the screen. Can you alter this position?

    Thanks,
    Jurjen

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Altering $messageStack position

    Yes. You simply open up the template file for the page where you want to move it and move the code that echoes out the stack. It already appears in different places on different pages. Sometimes at the top, sometimes in the body of the page, depending upon which message set is being output.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Dec 2007
    Posts
    85
    Plugin Contributions
    0

    Default Re: Altering $messageStack position

    Ah nice, thanks.
    Some messages are easy to alter.

    However, I can't get the message altered, which is shown when you add a items to your cart, and display show cart set to "off".

    I know this is the code :
    Code:
        if (DISPLAY_CART == 'false' && $_GET['main_page'] != FILENAME_SHOPPING_CART) {
          $messageStack->add_session('header', SUCCESS_ADDED_TO_CART_PRODUCT, 'success');
        }
    In shopping_cart.php...

    The 'header' adds the message to the top of the page, but I'd like to add it to the top of the product listing...
    Can you help me out?
    Thanks,
    Jurjen

 

 

Similar Threads

  1. messageStack question
    By tlahtine in forum Contribution-Writing Guidelines
    Replies: 1
    Last Post: 28 Feb 2011, 11:46 PM
  2. messageStack Puzzle
    By hengster in forum General Questions
    Replies: 0
    Last Post: 31 Aug 2010, 08:35 AM
  3. help position a sidebox using position:absolute;
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Mar 2009, 01:54 PM
  4. Moving messagestack
    By batman36 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Mar 2008, 09:08 PM
  5. Is my messagestack working correctly?
    By bradymc in forum General Questions
    Replies: 3
    Last Post: 16 Jun 2007, 03:34 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