Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2016
    Posts
    14
    Plugin Contributions
    0

    Default Repeated - Thank You! We Appreciate...

    For some reason I have a 'Thanks You! We Appreciate your Business!' notification showing twice, one below the other. I just noticed this after installing/configuring and testing Paypal express.

    I would like to remove the second one which includes an inline order#. (highlighted in attached image)

    Where can I do this please?

    Thanks
    Attached Images Attached Images  

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

    Default Re: Repeated - Thank You! We Appreciate...

    The checkout-success displays the order details by pulling in the order-history via the same template that displays account history order details. And both output the page heading, hence the duplication.

    A fix is to display that 2nd line only when not on the checkout-success page, like this:

    In your tpl_account_history_info_default.php file, you'll see this on line 20:
    Code:
    <h2 id="orderHistoryDetailedOrder"><?php echo HEADING_TITLE . ORDER_HEADING_DIVIDER . sprintf(HEADING_ORDER_NUMBER, $_GET['order_id']); ?></h2>
    Wrap some conditional code around it to make it only display if the page is NOT checkout_success, like this:
    Code:
    <?php if ($current_page != FILENAME_CHECKOUT_SUCCESS) { ?>
    <h2 id="orderHistoryDetailedOrder"><?php echo HEADING_TITLE . ORDER_HEADING_DIVIDER . sprintf(HEADING_ORDER_NUMBER, $_GET['order_id']); ?></h2>
    <?php } ?>
    
    .

    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
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Repeated - Thank You! We Appreciate...

    Or, as an alternate solution, you could simply create a .CSS file for your checkout_success page that "hides" that second heading. Create the file /includes/templates/YOUR_TEMPLATE/css/checkout_success.css (where YOUR_TEMPLATE is the folder name for your current template) containing:
    Code:
    #orderHistoryDetailedOrder { display: none; }
    Last edited by lat9; 3 May 2016 at 06:26 PM. Reason: Correct misspelling

  4. #4
    Join Date
    Mar 2016
    Posts
    14
    Plugin Contributions
    0

    Default Re: Repeated - Thank You! We Appreciate...

    Both great replies. Thanks a lot for your help

 

 

Similar Threads

  1. v151 Thank You!
    By DigiBooks in forum General Questions
    Replies: 8
    Last Post: 25 May 2014, 05:37 AM
  2. Thank You! We Appreciate your Business! - Duplicate
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Sep 2009, 08:19 PM
  3. How do you add text to last Thank You page after purchase complete?
    By catangirl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Sep 2007, 10:25 PM
  4. Thank You
    By larryhyman in forum General Questions
    Replies: 1
    Last Post: 16 May 2007, 10:18 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