Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    199
    Plugin Contributions
    0

    Default Customizing checkout success page

    I developed 5 payment modules, now I'm working on financing/loan module very similar to a payment module in its logic (it works like a payment gateway).

    Main difference is in the response received by the 'gateway'. It's not only OK / KO, there's a third status, let's say 'almost ok'.

    For KO status I redirect to checkout_payment as usual, for the other 2 status, I redirect to checkout_process as usual, but I would like to bring a message to the checkout success page, depending on the status (OK or almost OK).

    I know how to add a message for the KO status (adding error message to the url), but I think I cannot use same code.

    So how to proceed?

    I suppose I should start adding my message to $get_append in my module:

    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PROCESS, $get_append, 'SSL', true, false));

    But how to retrieve it in checkout success page?

    Maybe a 'cleaner' way could be using this?

    $zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_SUCCESS');

    And creating a query which retrieves the response status (I store it, with other info, in a new table)?

    The problem is that I haven't understood yet how notifyer system works...
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Customizing checkout success page

    The problem is that I haven't understood yet how notifyer system works...
    Then get to it!

    http://www.zen-cart.com/wiki/index.p..._API_Overrides
    and
    http://www.zen-cart.com/wiki/index.p...on_-_Templates
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  3. #3
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    199
    Plugin Contributions
    0

    Default Re: Customizing checkout success page

    Hmmm... ok, I didn't want to put a query in a tpl file (the only one I may override, since header of checkout success isn't overridable), but it's the easiest way.
    Now I'll try.
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

 

 

Similar Threads

  1. Checkout Success Page?
    By Coffinwear in forum General Questions
    Replies: 4
    Last Post: 21 Dec 2009, 04:00 PM
  2. 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
  3. 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