Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    921
    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
    58,460
    Blog Entries
    3
    Plugin Contributions
    111

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    921
    Plugin Contributions
    2

    Default Re: Custom messageStack call...

    Wow - that was easy!

    Thanks for the help DrByte. :)

 

 

Similar Threads

  1. Custom product type with custom PRODUCT_PRICE_DISCOUNT_PREFIX
    By dbrewster in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 May 2006, 06:54 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
  •