Zen Cart Logo
Forums / Managing Customers and Orders / Show 2 different order confirmations - depending on payment method

Show 2 different order confirmations - depending on payment method

Locked

Views: 1,218

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
30 Jul 2009, 11:02 PM
#1
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Show 2 different order confirmations - depending on payment method

Hi!

I have two different payment methods.
Bank Transfer and PayPal IPN.

Is there a way I can show one special order confirmation for customer who choose PayPal, and another special confirmation for the ones who use bank transfer?

Which variables should I look for or use?

31 Jul 2009, 3:38 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Show 2 different order confirmations - depending on payment method

Can you explain more about "why" you want to do this, and more about what specific differences you want in each type of confirmation?

31 Jul 2009, 11:20 PM
#3
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Show 2 different order confirmations - depending on payment method

Sure - I would like this because when people order with the bank transfer-option, I would like to tell them more about the payment info, and that we ship the order as soon as we have recieved their payment.

This is not something I want to use space on if the customer already has paid using paypal - then I would instead inform them that the order will be sent out today.

To avoid misunderstandings, and unhappy customers, I don't want to explain both scenarios like I do now. People tend to read only the first line they come across - then close the browser, and then call / send emails and ask about the same thing I explained above :)

Do you know a way?

31 Jul 2009, 11:32 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Show 2 different order confirmations - depending on payment method

Are you referring to what information is shown in the browser, or the content that is sent in the email?

And if you're referring to the browser, are you meaning the checkout_confirmation screen, or the checkout_success screen?

1 Aug 2009, 10:08 AM
#5
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Show 2 different order confirmations - depending on payment method

Oh, sorry..

I'm thinking about what the customers sees in their browser. The checkout_success screen, where the customer get a notice that we have recieved their order.

(Where I also would like to give the customers a summary of what products that were ordered, and the total price)

1 Aug 2009, 3:24 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Show 2 different order confirmations - depending on payment method

By the time the customer gets to the checkout-success page, all the order information has been saved and closed. Only the order number remains (along with some meta info useful for affiliate processing if used). If you want to reload all the order information to display again, including determining which payment module was used to handle the order so you can display alternating messages, you'll have to re-query the database to pull up all that order information, and then work on displaying the output in the desired format.

You'll have to work with at least the following files which control what happens on that page:
/includes/modules/pages/checkout_success/header_php.php
/includes/languages/english/YOUR_TEMPLATE/checkout_success.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_success_default.php
etc