Jump to content
Sign in to follow this  
uvh

Removing Credit Card Valid From and Card Issue Number from checkout_confirmation.php

Recommended Posts

Hello,

 

I would like to remove the fields Card Valid From Date and Card Issue Number from my checkout_confirmation.php. I am using Paypal Pro and Express as my sole checkout methods. I only ship in the US.

 

I am pretty familiar with editing pages, fields and even the database related to oscommerce, but these fields I'm not quite sure if I should edit. My initial feeling is that these fields come from the database ($confirmation array in checkout_confirmation.php).

 

Does anybody know: can I get rid of these fields safely? If so, what is the best way.

 

Thanks!

Share this post


Link to post
Share on other sites

Maestro and Solo cards (MasterCard's debit card in UK and possibly other parts or Europe) were not desired on my site. I cleaned up the look of the page by removing the Credit Card Valid From and Card Issue Number from the PayPal Direct module. To do this I commented out the code at about line 35 & 106 in catalog/inculdes/modules/payment/paypal_direct.php

 

Changed this:

      $this->cc_types = array('VISA' => 'Visa',
                             'MASTERCARD' => 'MasterCard',
                             'DISCOVER' => 'Discover Card',
                             'AMEX' => 'American Express',
                             'SWITCH' => 'Maestro',
                             'SOLO' => 'Solo');
   }

 

To this:

$this->cc_types = array('VISA' => 'Visa',
                             'MASTERCARD' => 'MasterCard',
                             'DISCOVER' => 'Discover Card',
                             'AMEX' => 'American Express');
                       //    'SWITCH' => 'Maestro',
                       //    'SOLO' => 'Solo');   **commented out, removed "," after AmEx and then added ");" **
   }

 

 

Changed this:

                                              array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM,
                                                   'field' => tep_draw_pull_down_menu('cc_starts_month', $months_array) . ' ' . 

tep_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . ' ' . MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM_INFO),
                                             array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_EXPIRES,
                                                   'field' => tep_draw_pull_down_menu('cc_expires_month', $months_array) . ' ' . 

tep_draw_pull_down_menu('cc_expires_year', $year_expires_array)),
                                             array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_CVC,
                                                   'field' => tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"')),
                                             array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_ISSUE_NUMBER,
                                                   'field' => tep_draw_input_field('cc_issue_nh-dns', '', 'size="3" maxlength="2"') . ' ' . 

MODULE_PAYMENT_PAYPAL_DIRECT_CARD_ISSUE_NUMBER_INFO)));

     return $confirmation;
   }

 

TO THIS:

                                  //  array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM,
                                  //        'field' => tep_draw_pull_down_menu('cc_starts_month', $months_array) . ' ' . 

tep_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . ' ' . MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM_INFO),
                                    array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_EXPIRES,
                                          'field' => tep_draw_pull_down_menu('cc_expires_month', $months_array) . ' ' . 

tep_draw_pull_down_menu('cc_expires_year', $year_expires_array)),
                                    array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_CVC,
                                          'field' => tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"')));
                           //       array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_ISSUE_NUMBER,
                           //               'field' => tep_draw_input_field('cc_issue_nh-dns', '', 'size="3" maxlength="2"') . ' ' . 

MODULE_PAYMENT_PAYPAL_DIRECT_CARD_ISSUE_NUMBER_INFO));
     }

 

This change works on my site and I hope others will also find it useful!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×