Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    197
    Plugin Contributions
    1

    Default Editing checkout_payment.php

    Hi, I would like to add specific instructions to buyers on my https://vapenow.com/index.php?main_p...eckout_payment page right above the credit card option. I believe the code I need to edit is in /www/includes/languages/english/custom/checkout_payment.php, and the code is below, I am just not sure where to edit.

    PHP Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: no_account v.9b 09 March 2007
     */
    if($_SESSION['COWOA']) $COWOA=TRUE;

    define('NAVBAR_TITLE_1''Checkout');
    define('NAVBAR_TITLE_2''Payment Method');

    if(
    $COWOA)
    define('HEADING_TITLE''Step 3 of 5 - Payment Information');
    else
    define('HEADING_TITLE''Step 2 of 3 - Payment Information');

    define('TABLE_HEADING_BILLING_ADDRESS''Billing Address');
    define('TEXT_SELECTED_BILLING_DESTINATION''Your billing address is shown to the left. The billing address should match the address on your credit card statement. You can change the billing address by clicking the <em>Change Address</em> button.');
    define('TITLE_BILLING_ADDRESS''Billing Address:');

    define('TABLE_HEADING_PAYMENT_METHOD''Payment Method');
    define('TEXT_SELECT_PAYMENT_METHOD''Please select a payment method for this order.');
    define('TITLE_PLEASE_SELECT''Please Select');
    define('TEXT_ENTER_PAYMENT_INFORMATION''');
    define('TABLE_HEADING_COMMENTS''Special Instructions or Order Comments');

    define('TITLE_NO_PAYMENT_OPTIONS_AVAILABLE''Not Available At This Time');
    define('TEXT_NO_PAYMENT_OPTIONS_AVAILABLE','<span class="alert">Sorry, we are not accepting payments from your region at this time.</span><br />Please contact us for alternate arrangements.');

    if(
    $COWOA)
    define('TITLE_CONTINUE_CHECKOUT_PROCEDURE''<strong>Continue to Step 4</strong>');
    else
    define('TITLE_CONTINUE_CHECKOUT_PROCEDURE''<strong>Continue to Step 3</strong>');

    define('TEXT_CONTINUE_CHECKOUT_PROCEDURE''- to confirm your order.');

    define('TABLE_HEADING_CONDITIONS''<span class="termsconditions">Terms and Conditions</span>');
    define('TEXT_CONDITIONS_DESCRIPTION''<span class="termsdescription">Please acknowledge the terms and conditions bound to this order by ticking the following box. The terms and conditions can be read <a href="' zen_href_link(FILENAME_CONDITIONS'''SSL') . '"><span class="pseudolink">here</span></a>.');
    define('TEXT_CONDITIONS_CONFIRM''<span class="termsiagree">I have read and agreed to the terms and conditions bound to this order.</span>');

    define('TEXT_CHECKOUT_AMOUNT_DUE''Total Amount Due: ');
    define('TEXT_YOUR_TOTAL','Your Total');
    ?>
    Thanks,

    Nate

  2. #2
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Default Re: Editing checkout_payment.php

    Hi Nate,

    1. If you haven't already, duplicate /includes/templates/tpl_checkout_payment_default.php and put it into /includes/templates/YOUR_TEMPLATE/

    2. Open /includes/templates/YOUR_TEMPLATE/tpl_checkout_payment_default.php in your text editor, go to around line 133 and find this block of code :

    Code:
    <p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
    Add one line right below it, so it now looks like this :

    Code:
    <p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
    <p><?php echo TEXT_MY_PAYMENT_INSTRUCTIONS; ?></p>
    3. Again, if you haven't already, duplicate /includes/languages/YOUR_LANGUAGE/checkout_payment.php and put it into /includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE

    4. Open /includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/checkout_payment.php in your text editor, add this line of code :

    Code:
    define('TEXT_MY_PAYMENT_INSTRUCTIONS', 'blah blah blah');
    you can put it anywhere, but preferably around line line 21, right below :

    Code:
    define('TEXT_SELECT_PAYMENT_METHOD', 'Please select a payment method for this order.');
    so that it'll be easier to find later on.

    That's it, hope it helps !

    Shirley :)

  3. #3
    Join Date
    Aug 2006
    Posts
    197
    Plugin Contributions
    1

    Default Re: Editing checkout_payment.php

    Thanks for your help. I figured it out! :)

  4. #4
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Editing checkout_payment.php

    Quote Originally Posted by shirster View Post
    Hi Nate,

    1. If you haven't already, duplicate /includes/templates/tpl_checkout_payment_default.php and put it into /includes/templates/YOUR_TEMPLATE/

    2. Open /includes/templates/YOUR_TEMPLATE/tpl_checkout_payment_default.php in your text editor, go to around line 133 and find this block of code :

    Code:
    <p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
    Add one line right below it, so it now looks like this :

    Code:
    <p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
    <p><?php echo TEXT_MY_PAYMENT_INSTRUCTIONS; ?></p>
    3. Again, if you haven't already, duplicate /includes/languages/YOUR_LANGUAGE/checkout_payment.php and put it into /includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE

    4. Open /includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/checkout_payment.php in your text editor, add this line of code :

    Code:
    define('TEXT_MY_PAYMENT_INSTRUCTIONS', 'blah blah blah');
    you can put it anywhere, but preferably around line line 21, right below :

    Code:
    define('TEXT_SELECT_PAYMENT_METHOD', 'Please select a payment method for this order.');
    so that it'll be easier to find later on.

    That's it, hope it helps !

    Shirley :)
    I checked and double checked my steps here and can't get the instructions show. :-(

    I'm also trying to get Internetsecure verified on NiagaraIceWineShop.com

    Any ideas?

  5. #5
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Editing checkout_payment.php

    Quote Originally Posted by shirster View Post
    Hi Nate,

    1. If you haven't already, duplicate /includes/templates/tpl_checkout_payment_default.php and put it into /includes/templates/YOUR_TEMPLATE/

    2. Open /includes/templates/YOUR_TEMPLATE/tpl_checkout_payment_default.php in your text editor, go to around line 133 and find this block of code :

    Code:
    <p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
    Add one line right below it, so it now looks like this :

    Code:
    <p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
    <p><?php echo TEXT_MY_PAYMENT_INSTRUCTIONS; ?></p>
    3. Again, if you haven't already, duplicate /includes/languages/YOUR_LANGUAGE/checkout_payment.php and put it into /includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE

    4. Open /includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/checkout_payment.php in your text editor, add this line of code :

    Code:
    define('TEXT_MY_PAYMENT_INSTRUCTIONS', 'blah blah blah');
    you can put it anywhere, but preferably around line line 21, right below :

    Code:
    define('TEXT_SELECT_PAYMENT_METHOD', 'Please select a payment method for this order.');
    so that it'll be easier to find later on.

    That's it, hope it helps !

    Shirley :)
    I was able to get this to work.
    I used Dreamweaver to put in the links for the two links by putting the following in the checkout_payment.php file in my CUSTOM override folder:

    Code:
    define('TEXT_MY_PAYMENT_INSTRUCTIONS', '<b>By providing this information you agree to Elavons Privacy Policy and Terms of Use Privacy Policy: <a href="http://www.internetsecure.com/privacy.html" target="_blank">http://www.internetsecure.com/privacy.html</a> <br>Terms of Use:<br> <a href="http://www.internetsecure.com/termsofuse.html" target="_blank">http://www.internetsecure.com/termsofuse.html</a><b>');
    Mine is one line 23 so it's above "Please select payment....."
    One problem down, now to show the currency on the checkout page.

  6. #6
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Editing checkout_payment.php

    Is there a way to show the selected currency on the checkout page?

    The InternetSecure organization is very sticky as to how it wants things to look and currently this is the only thing I'm missing from the checkout page.

    Instead of showing that the card will be charged $300, they want it to include the selected currency at the time of the checkout.

    In our case, as US$ is the only installed currency, it should show something to the effect of US$300.

    How do I change this so it will show the selected currency in case we ever decide to change to other currencies it will put in the correct tag?

  7. #7
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Editing checkout_payment.php

    Quote Originally Posted by Rob905 View Post
    Is there a way to show the selected currency on the checkout page?

    The InternetSecure organization is very sticky as to how it wants things to look and currently this is the only thing I'm missing from the checkout page.

    Instead of showing that the card will be charged $300, they want it to include the selected currency at the time of the checkout.

    In our case, as US$ is the only installed currency, it should show something to the effect of US$300.

    How do I change this so it will show the selected currency in case we ever decide to change to other currencies it will put in the correct tag?
    This issue was resolved simply by editing the US currency module from the Admin and putting US$ as the left symbol instead of just $

    Thanks to the person that suggested that.

 

 

Similar Threads

  1. Location of /index.php?main_page=checkout_payment
    By pwithers in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jun 2012, 12:47 AM
  2. checkout_payment.php
    By mikestaps in forum General Questions
    Replies: 4
    Last Post: 15 Oct 2010, 05:03 PM
  3. adding text to checkout_payment.php
    By bettsaj in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 15 Mar 2010, 06:00 PM
  4. problems with index.php?main_page=checkout_payment
    By bullet in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Mar 2010, 03:33 PM

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