Forums / Built-in Shipping and Payment Modules / text depending on payment option choosen

text depending on payment option choosen

Locked

Views: 820

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 Sep 2009, 8:37 PM
#1
mutester avatar

mutester

New Zenner

Join Date:
May 2009
Location:
Bogota, Colombia
Posts:
28
Plugin Contributions:
0

text depending on payment option choosen

I am trying to put in a text on the checkout_confirmation page that shows up depending if you decide to pay by credit card or cash. Something in the order of: "NOTE: you will be take to https://www.domain.com to make your payment"

So far it is not working. I tried the following;

<?php if ($_SESSION['payment_method_code'] == 'cod') {
     echo TEXT_CONTINUE_CHECKOUT_PROCEDURE_ONE;
	 } 
        else    {
   echo TEXT_CONTINUE_CHECKOUT_PROCEDURE_TWO; 
  } 

Anyone that can help me out with this? Been searching&trying for a loooong time...

Tienda Virtual de relojes innovadores / Online store for innovative watches:

                                                                  [WWW.MUNDOUNIK.COM](http://www.mundounik.com)
25 Sep 2009, 2:51 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: text depending on payment option choosen

To test what you are looking for on Shipping and Payment, you can add this to your template to see what you have:

<?php
echo 'Payment Method: ' . $_SESSION['payment'] . ' Shipping Method: ' . $_SESSION['shipping']['id'] . '<br>';
?>

Note: the different call to these session variables for the selected modules ...

Adding that code to the top of the checkout_templates and the shopping_cart template can help you see when they are set or not set based on navigation ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Sep 2009, 4:52 PM
#3
mutester avatar

mutester

New Zenner

Join Date:
May 2009
Location:
Bogota, Colombia
Posts:
28
Plugin Contributions:
0

Re: text depending on payment option choosen

great that helped me a lot!!! Thanks so much!!

turns out I made a mistake in the code, should have been;

<?php if ($_SESSION['payment'] == 'cod') {
     echo TEXT_CONTINUE_CHECKOUT_PROCEDURE_ONE;
	 } 
        else    {
     echo TEXT_CONTINUE_CHECKOUT_PROCEDURE_TWO; 
  } 
?>

Just placed this code in the checkout_confirmation page and now it shows up in the bottom before clicking confirm order button...great use!

Thanks!!:clap:

Tienda Virtual de relojes innovadores / Online store for innovative watches:

                                                                  [WWW.MUNDOUNIK.COM](http://www.mundounik.com)
26 Sep 2009, 3:57 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: text depending on payment option choosen

You are most welcome ... glad that was able to help you out ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!