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?
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
?>
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!
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:
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?
Re: Check/Money Order module--show name/address on checkout success page?
Then instead, enter your own information that you want to display ...
Re: Check/Money Order module--show name/address on checkout success page?
Thanks! That was easy enough :)