Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Guest

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!

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...
  • 1 month later...
  • 2 months later...

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!

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.

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