Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / what messages appear in the header message stack?

what messages appear in the header message stack?

Locked

Views: 636

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Dec 2010, 8:36 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

what messages appear in the header message stack?

Just seen this appear (I think for the first time).
As it initially broke my page layout I would be interested to know (for test purposes) what other events cause a message to appear in this location.

Here's a starter..

  1. "Product has been added to cart"
    when a product has been added to a cart (and "Display Cart After Adding Product" is set to false)
9 Dec 2010, 10:58 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: what messages appear in the header message stack?

Grep the files for $messageStack

Or use the developers tool kit

9 Dec 2010, 11:58 AM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: what messages appear in the header message stack?

yes, there are loads of references to $messageStack but many of those messages do not appear in the header but in the main body.
I'd never seen one in the header before this one.

9 Dec 2010, 1:15 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: what messages appear in the header message stack?

Try looking for

$messageStack->add_session('header'

That should give you the full list of header-destined messages.

9 Dec 2010, 2:21 PM
#5
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: what messages appear in the header message stack?

ok, thanks