Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2012
    Location
    New England
    Posts
    238
    Plugin Contributions
    0

    Default Check/Money Order module--show name/address on checkout success page?

    I did a test order using Check/Money Order as my payment method and I was confused to not see instructions on who to make the check out to and where to send it on the Checkout Success page. I had to get that info out of the email I got. I think that's not intuitive and will be confusing to my customers... how do I make the section that shows up in the email show up on the checkout success page, too? Anyone know?

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

    Default Re: Check/Money Order module--show name/address on checkout success page?

    You could add something like this to the:
    tpl_checkout_success_default.php

    using your templates and overrides ...
    Code:
    <?php
    // bof: add Payment info for Check/Money Order
      $chk_order = $db->Execute("SELECT payment_module_code FROM " . TABLE_ORDERS . " WHERE orders_id = " . $orders_id);
      if ($chk_order->fields['payment_module_code'] == 'moneyorder') {
    ?>
         <div>
    <?php
      include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . 'moneyorder.php');
    //  echo 'Please make your check or money order payable to:<br />' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br /><br />Mail your payment to:<br />' . nl2br(STORE_NAME_ADDRESS) . '<br /><br />' . 'Your order will not ship until we receive payment.';
      echo MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION;
    ?>
       </div>
    <?php
      }
    // bof: add Payment info for Check/Money Order
    ?>
    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
    Jan 2012
    Location
    New England
    Posts
    238
    Plugin Contributions
    0

    Default Re: Check/Money Order module--show name/address on checkout success page?

    Perfect! That worked exactly like I wanted! I am so grateful for this forum full of people who understand how to write code for ZC... because I'm a designer, NOT a programmer... I'd be so lost without you guys. Thanks!

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

    Default Re: Check/Money Order module--show name/address on checkout success page?

    Thanks for the update that this was able to work for you ...
    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!

  5. #5
    Join Date
    Jan 2012
    Location
    New England
    Posts
    238
    Plugin Contributions
    0

    Default Re: Check/Money Order module--show name/address on checkout success page?

    Ok I formatted it like this:

    Code:
    <!-- bof: add Payment info for Check/Money Order -->
    <?php
    
      $chk_order = $db->Execute("SELECT payment_module_code FROM " . TABLE_ORDERS . " WHERE orders_id = " . $orders_id);
      if ($chk_order->fields['payment_module_code'] == 'moneyorder') {
    ?>
         <div id="checkpayment">
    <?php
      include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . 'moneyorder.php');
    	echo '<span class="red_bold">Please make your check or money order payable to:</span><br /><br /><span class="payto">"' . MODULE_PAYMENT_MONEYORDER_PAYTO . '"</span><br /><br />Mail your payment to:<br /><br /><span class="checkaddress">' . nl2br(STORE_NAME_ADDRESS) . '</span><br /><br />' . '<strong><em>Your order will not ship until we receive payment.</em></strong><br />We will notify you by email when your payment has cleared.';
    ?>
       </div>
    <?php
      }
    
    ?>
    <!-- Eof: add Payment info for Check/Money Order -->
    But I'd like to have separate fields for store name, store address, and store phone number instead of "nl2br(STORE_NAME_ADDRESS)", because I'd like to format those differently (bold for store name, and then a space before the phone number and add the text "if you have questions, call" before the number...) Is that simple to do?

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

    Default Re: Check/Money Order module--show name/address on checkout success page?

    Then instead, enter your own information that you want to display ...
    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!

  7. #7
    Join Date
    Jan 2012
    Location
    New England
    Posts
    238
    Plugin Contributions
    0

    Default Re: Check/Money Order module--show name/address on checkout success page?

    Thanks! That was easy enough :)

 

 

Similar Threads

  1. Switch order of "Check/Money Order" & Paypal on Checkout Page
    By BrooklynArtist in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Feb 2011, 03:30 AM
  2. How to edite check/money order address
    By taogem in forum General Questions
    Replies: 2
    Last Post: 13 Aug 2008, 04:30 PM
  3. Money Order/Check Address
    By TheNerd25 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 5 Dec 2007, 06:29 AM
  4. Show order history on Checkout Success Page
    By justabadguy in forum General Questions
    Replies: 0
    Last Post: 26 Sep 2007, 07:20 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