Jump to content

Recommended Posts

Hi everyone,

 

I need some help please to change the below code:

 

$selection = array('id' => $this->code,
		'module' => $this->title,
		'fields' => array(
		array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_ACCEPT,'field' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_TYPE),
		array(	'title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_OWNER,
				'field' => tep_draw_input_field('netpay_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])),
				   array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_NUMBER,
					 'field' => tep_draw_input_field('netpay_cc_number')),
				   array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_EXPIRES,
						 'field' => tep_draw_pull_down_menu('netpay_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('netpay_cc_expires_year', $expires_year)),
					array('title' => MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER,
						'field' => tep_draw_input_field('netpay_ccv_number'))));

	return $selection;

 

Now what I need to do is:

 

1. Add after this code: array( 'title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_OWNER,

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

 

That: "Cardholder government

issued id number" as a title, with input field

 

2. Add to the last line of code which is:

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER, 'field' => tep_draw_input_field            ('netpay_ccv_number')

A check box (if it checked the variable get 1 if it unchecked it get 0) with this text after "My card doesn't have security digits"

 

This is for now.. cause I do not want to mess it up, but if it will work I may add some code after it..

 

Thanks for any help I get from you !!

 

Best Regards,

Eli

Link to comment
https://forums.phpfreaks.com/topic/86888-need-help-please/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.