Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Location
    Bogota, Colombia
    Posts
    29
    Plugin Contributions
    0

    Default 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 www.domain.com to make your payment"

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

    Code:
    <?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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:
    Code:
    <?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: v1.5.5]
    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!

  3. #3
    Join Date
    May 2009
    Location
    Bogota, Colombia
    Posts
    29
    Plugin Contributions
    0

    Default 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;

    Code:
    <?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!!
    Tienda Virtual de relojes innovadores / Online store for innovative watches:

    WWW.MUNDOUNIK.COM

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: text depending on payment option choosen

    You are most welcome ... glad that was able to help you out ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. How to edit shipping option TEXT on payment page
    By kevinmc3 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 Oct 2010, 12:20 AM
  2. Attribute: Require 2nd option if 1st choosen
    By Arlette in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 19 Jun 2010, 07:43 AM
  3. Payment module allowed depending on shipping option?
    By bondee in forum General Questions
    Replies: 0
    Last Post: 25 Oct 2007, 11:46 PM
  4. How to you make price dependent on the Option Value choosen
    By ehtraveler in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 18 Feb 2007, 11:31 AM
  5. Limiting Shipping Options Depending on Payment Option selected
    By zigzak in forum Addon Shipping Modules
    Replies: 0
    Last Post: 17 Sep 2006, 06:01 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