Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Check/Money Order module--show name/address on checkout success page?

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

Views: 1,811

Results 1 to 7 of 7
12 Apr 2012, 4:04 AM
#1
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

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?

12 Apr 2012, 5:35 PM
#2
ajeh avatar

ajeh

Oba-san

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

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 ...

<?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!]
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!

12 Apr 2012, 6:26 PM
#3
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

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!

12 Apr 2012, 6:31 PM
#4
ajeh avatar

ajeh

Oba-san

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

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

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

12 Apr 2012, 6:47 PM
#5
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

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

Ok I formatted it like this:

<!-- 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?

12 Apr 2012, 6:52 PM
#6
ajeh avatar

ajeh

Oba-san

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

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!]
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!

13 Apr 2012, 5:45 AM
#7
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

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

Thanks! That was easy enough :)