Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Payment module - Visa & Mastercard pictures


Recommended Posts

I've tried to display some Visa MasterCard and Pay Pal images on the top of the payment method selection between the "Payment Method" and "Please select the preferred payment method to use on this order." text on the checkout_payment.php. I added some simple html tags into a payment module.php but when I finishing the payment it crashes. Basically it says that the displaying the tags is blocked because of the header or something similar(sse the blue).


How to display it even on another part of the page?

Any ideas?




function selection() {

global $order;


for ($i=1; $i<13; $i++) {

$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));



$today = getdate();

for ($i=$today['year']; $i < $today['year']+10; $i++) {

$expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));






<div style="text-align: center;">

<img src="images/visa_s.gif" border="0" alt="" width="33" height="21">

<img src="images/master_s.gif" border="0" alt="" width="33" height="21">

<img src="images/paypal_s.gif" border="0" alt="" width="56" height="21">





$selection = array('id' => $this->code, 'module' => $this->title,


'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']),


'field' => tep_draw_input_field('moneriseselectplus_cc_number')),


'field' => tep_draw_pull_down_menu('moneriseselectplus_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('moneriseselectplus_cc_expires_year', $expires_year))),

'moneris_order_id' => $this->moneris_order_id,

'moneris_response_variables' => $this->moneris_response_variables);


return $selection;


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...