Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    100
    Plugin Contributions
    0

    Default Relocate the "Credit Card Decline..." Message for better visibility

    Using Version 1.3.8a with my own custom template and overrides

    I'm pretty Zen Savvy now and I searched every possible phrase in the forums, but I cannot find an answer. When a credit card is declined, the page returns to the Step 2 page, but because the statement "Your credit card was declined..." is so small and at the very top of the page, it's just not being seen.

    So, I really want to do one of two things.

    1) IDEALLY, I'd love for this DIV (if it is one) to appear somewhere in the middle of the page or perhaps right above the credit card fields. Can I do it? What file and line of code would I move or alter?

    2) If that's not possible, how can I change this DIV to use a bigger, bolder font with a red or yellow background so it can't be missed. Again, can I do it? What file and line of code would I move or alter?

    Thanks in advance for your help!

  2. #2
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Relocate the "Credit Card Decline..." Message for better visibility

    If you're using an old payment module built using pre-v1.3.8a methodology, then your payment-error messages are being displayed by this block of code in your tpl_header.php template file:
    Code:
      if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
      echo htmlspecialchars(urldecode($_GET['error_message']));
      }
    However, newer up-to-date modules and templates display the payment-error messages in the middle section of the page, as you were asking for, using this block of code in tpl_checkout_payment_default.php:
    Code:
    <?php if ($messageStack->size('checkout_payment') > 0) echo $messageStack->output('checkout_payment'); ?>
    .

    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
    Aug 2008
    Location
    Southern California
    Posts
    100
    Plugin Contributions
    0

    Default Re: Relocate the "Credit Card Decline..." Message for better visibility

    Do any of you Zen Guys ever get any sleep? lol That worked! Thank you! Unfortunately, my module uses the older tpl_header, so it's esthetically not what I want, but it's fixed! I slapped a DIV tag around it, made the font big and bold, and made the background yellow. Customers can't miss it!

    By the way — I bought the Zen Cart book and it's so worth it! Keep up the great work.

    Thank you!

  4. #4
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Relocate the "Credit Card Decline..." Message for better visibility

    Sleep? Who's got time for sleep?
    .

    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.

 

 

Similar Threads

  1. Pay by invoice ("bill me later"/""store credit account")
    By swguy in forum Addon Payment Modules
    Replies: 56
    Last Post: 6 Apr 2011, 12:41 AM
  2. Credit Card Module disabled, yet order placed with "Credit Card"
    By retrobec in forum Built-in Shipping and Payment Modules
    Replies: 17
    Last Post: 2 Apr 2010, 03:22 AM
  3. How does the generic credit card module "verify" card numbers?
    By LRS in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 4 Dec 2008, 04:07 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
  •