Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Checkout Success message based on payment method / order status?

    Edit: Ah, found something to read about this...

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Checkout Success message based on payment method / order status?

    Quote Originally Posted by hairydog View Post
    Edit: Ah, found something to read about this...
    Please update the thread with links associated when if/get around to validating that they helped (assuming that it is Internet reachable). :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Checkout Success message based on payment method / order status?

    As ever, searching for the subject failed, but as soon as I posted a request for help, at the bottom of the page were similar requests, including this one:

    https://www.zen-cart.com/showthread....Payment-Method

    The only problem is that I can't get it to work. The message isn't appearing.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Checkout Success message based on payment method / order status?

    So, you would need to try a purchase from "start" to finish on each attempt to get the text to appear as the expectation is that once the code has executed on the checkout_success page, the information related to that purchase is supposed to be cleared and no longer available to display (which can be problematic if trying to capture the result pushed to the source code and not the screen because some source code viewers reload the page which no longer has the data available.)

    So, ideally to get help resolving your current issue of it not working, would need to provide more information: what was changed, what was added, what was removed, what is the actual result (error? Empty text) how such results were confirmed, etc...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Checkout Success message based on payment method / order status?

    Sadly, it's worse than that. I'm not getting the "default" payment_instructions_message either. I can put in

    <div id="checkoutSuccessMessage"><?php echo $payment_instructions_message; ?><!-- test --></div>

    into the file and then I get

    <div id="checkoutSuccessMessage"><!-- test --></div>

    in the resulting page source

  6. #6
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Checkout Success message based on payment method / order status?

    I basically did exactly what was suggested, but there is one ambiguous entry in the instructions at
    https://www.zen-cart.com/showthread....647#post425647

    It isn't clear which file boxes 2 and 3 of step 2 refer to.

    I may have tried the wrong places: I put the entries into
    includes/modules/checkout_process.php
    and into
    includes/modules/pages/checkout_success/header_php.php
    but neither worked.

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

    Default Re: Checkout Success message based on payment method / order status?

    In v1.5.5:
    if your payment module sets a value into $_SESSION['payment_method_messages']
    then on checkout_success you can echo it out via $additional_payment_messages
    .

    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.

  8. #8
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Checkout Success message based on payment method / order status?

    I also want this to work on 1.3.9 though there is finally a plan to move to 1.5.5d

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

    Default Re: Checkout Success message based on payment method / order status?

    v1.3.9 has code in the tpl_checkout_success_default.php template to output whatever is in $_SESSION['payment_method_messages'], so you can just have your Payment module put a message into that variable, according to whatever your custom needs are.

    In v1.5.5 it was tidied up a bit so that the message is cleaned (removed from memory) after the success page is displayed, and the output moved to a different variable. But the concept is the same: just have the payment module put its message there, and it will display on checkout-success.
    .

    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.

 

 

Similar Threads

  1. shipping method based on payment method?
    By psr racing in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Apr 2011, 01:25 PM
  2. checkout success message
    By shresthashree in forum General Questions
    Replies: 3
    Last Post: 25 Oct 2010, 07:52 PM
  3. In Admin/Payment/PayPal Express Checkout what should order status be?
    By spterry in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 9 Mar 2010, 01:20 AM
  4. Customizing Checkout Success Page Note based on Payment Method?
    By dcmall in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 18 Aug 2009, 07:06 PM
  5. Customizing Checkout Success Page Note based on Product Purchased
    By redknights11 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Mar 2009, 07:26 AM

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