Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Custom messageStack call...

Custom messageStack call...

Locked

Started by alex_clarke on 16 Jun 2007, 2:40 PM · Views: 1,196

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Jun 2007, 2:40 PM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Custom messageStack call...

Is it possible to call custom (not 'customer' as per my thread title - oopps) messageStack error messages?

For example, I would like to display a messageStack styled message on product_info_display pages where the product is out of stock.

I've had a little look at the code, but didn't really understand how the messageStack system worked. :(

My Contributions: Zen Lightbox | Best Sellers Reloaded

16 Jun 2007, 9:25 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Custom messageStack call...

Sure```
$messageStack->add('product_info', 'YourCustomMessageHere', 'caution');

.
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.

16 Jun 2007, 9:31 PM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Custom messageStack call...

Wow - that was easy!

Thanks for the help DrByte. :)

My Contributions: Zen Lightbox | Best Sellers Reloaded