Sorry Simon, there is another problem I'm having that you might be able to help me with.
I edited my (/includes/languages/english/modules/payment/dirbankaus.php) to include an image and help centre it as well.
The code I used was:
<div id="bankpayment">Bank Deposit/Internet Transfer:<br><strong>Payment details will be included in your order confirmation email.</strong></br><img src="images/bankpayment.jpg" alt="Bank Payment" /></div>
Now it displays well during the checkout, when using One Page Checkout and the regular zen checkout and the emails that get sent out, however checkout success page goes all funny, it goes black background and the bottom ezpage footer move all the way up.
When I change the code to the following:
Bank Deposit/Internet Transfer<div id="bankpayment"><img src="images/bankpayment.jpg" alt="" /></a></div>
The payment method displays correctly, althouh I cannot add the extra BOLD text.
I also added this to stylesheet.css... #bankpayment {text-align:center;}
Obviously I'm doing something wrong which is why it's ruining the checkout success page.
Here is 2 snapshots of the 1st code and the error it causes:
https://i.imgur.com/WHEXiqN.jpg
https://i.imgur.com/9GXD2gV.jpg
Here is 2 snapshots of the 2nd code which doesn't have an error (but I need to the extra line and make it bold but everytime I try it causes the above error.):
https://i.imgur.com/sNBHBx3.jpg
https://i.imgur.com/LbLIwdu.jpg
Just so you know, here is the full dirbankaus.php lines.
Code:
<?php
$id=$_SESSION['customer_id'];
$ln=$_SESSION['customer_last_name'];
define('EMAIL_TEXT_NO_DELIVERY',
'<p>No Delivery, see below:');
define('MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER',
"Please use the following details to transfer your total order value:\n\n" .
"\nAccount No.: " . MODULE_PAYMENT_DIRBANKAUS_ACCNUM .
"\nBSB Number: " . MODULE_PAYMENT_DIRBANKAUS_BSB .
"\nAccount Name: " . MODULE_PAYMENT_DIRBANKAUS_ACCNAM .
"\nBank Name: " . MODULE_PAYMENT_DIRBANKAUS_BANKNAM .
"\nSwift Code: " . MODULE_PAYMENT_DIRBANKAUS_SWIFT .
"\nReference: " . $ln ."-" . $id . "-%s" .
"\n\nSend Cheques/Money Orders To: " . MODULE_PAYMENT_DIRBANKAUS_ADDRESS .
"\nCheques/Money Orders Payable To: " . MODULE_PAYMENT_DIRBANKAUS_PAYABLE .
"\n\nThanks for your order which will ship immediately once we receive payment in the above account.\n");
define('MODULE_PAYMENT_DIRBANKAUS_HTML_EMAIL_FOOTER',
'<BR>Please use the following details to transfer your total order value:<br><pre>' .
"\nAccount No.: " . MODULE_PAYMENT_DIRBANKAUS_ACCNUM .
"\nBSB Number: " . MODULE_PAYMENT_DIRBANKAUS_BSB .
"\nAccount Name: " . MODULE_PAYMENT_DIRBANKAUS_ACCNAM .
"\nBank Name: " . MODULE_PAYMENT_DIRBANKAUS_BANKNAM .
"\nSwift Code: " . MODULE_PAYMENT_DIRBANKAUS_SWIFT .
"\nReference: " . $ln ."-" . $id . "-%s" .
"\n\nSend Cheques/Money Orders To: " . MODULE_PAYMENT_DIRBANKAUS_ADDRESS .
"\nCheques/Money Orders Payable To: " . MODULE_PAYMENT_DIRBANKAUS_PAYABLE .
'</pre><p>Thanks for your order which will ship immediately once we receive payment in the above account.');
define('MODULE_PAYMENT_DIRBANKAUS_TEXT_TITLE', '<div id="bankpayment">Bank Deposit/Internet Transfer:<br><strong>Payment details will be included in your order confirmation email.</strong></br><img src="images/bankpayment.jpg" alt="Bank Payment" /></div>');
define('MODULE_PAYMENT_DIRBANKAUS_TEXT_DESCRIPTION',
'<BR>Banking and Address details will be sent to your email once the order is confirmed.<br><pre>' .
'</pre><p>Thanks for your order which will ship immediately once we receive payment.');
?>
Bookmarks