Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Card Dashes


twistedindustries.com

Recommended Posts

Posted

nm i got it and for anyone that wants to know here is the solution:

 

in /catalog/admin/orders.php,

 

Search on the word "cc_number".

 

You will see:

 

<td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td>

<td class="main"><?php $order->info['cc_number']; </td>

</tr>

 

Change to:

 

<td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td>

<td class="main"><?php

 

//py: code to format cc_number with spaces

$cc_p1=substr($order->info['cc_number'],0,4);

$cc_p2=substr($order->info['cc_number'],4,4);

$cc_p3=substr($order->info['cc_number'],8,4);

$cc_p4=substr($order->info['cc_number'],12,4);

echo $cc_p1 . '-' . $cc_p2 . '-' . $cc_p3 . '-' . $cc_p4; ?></td>

</tr>

Posted
nm i got it and for anyone that wants to know here is the solution:

 

in /catalog/admin/orders.php,

 

Search on the word "cc_number".

 

You will see:

 

<td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td>

<td class="main"><?php $order->info['cc_number']; </td>

</tr>

 

Change to:

 

<td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td>

<td class="main"><?php

 

//py: code to format cc_number with spaces

$cc_p1=substr($order->info['cc_number'],0,4);

$cc_p2=substr($order->info['cc_number'],4,4);

$cc_p3=substr($order->info['cc_number'],8,4);

$cc_p4=substr($order->info['cc_number'],12,4);

echo $cc_p1 . '-' . $cc_p2 . '-' . $cc_p3 . '-' . $cc_p4; ?></td>

</tr>

 

Solution works a treat! Thanks very much :thumbsup:

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...