Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Customer messageStack call...

    Sure
    Code:
              $messageStack->add('product_info', 'YourCustomMessageHere', 'caution');
    You could replace 'YourCustomMessageHere' with a constant or a combination of text and variables, or an sprintf() output, etc.
    .

    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.

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Custom messageStack call...

    Wow - that was easy!

    Thanks for the help DrByte. :)

 

 

Similar Threads

  1. custom navigation call from breadcrumb to show current page
    By Yavaux in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 May 2010, 10:30 PM
  2. Replies: 2
    Last Post: 22 Mar 2010, 11:23 AM
  3. Need a custom db call when a certain product is sold.
    By madk in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Aug 2009, 07:36 PM
  4. Redirect "call for price" to custom page?
    By gianna in forum General Questions
    Replies: 1
    Last Post: 26 Jan 2007, 05:19 PM

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