Phone # fix

This commit is contained in:
Mike Jolley 2011-09-28 09:35:51 +01:00
parent 7e163efe68
commit 56a14ab2d7
1 changed files with 5 additions and 4 deletions

View File

@ -130,13 +130,14 @@ class woocommerce_paypal extends woocommerce_payment_gateway {
$shipping_name = explode(' ', $order->shipping_method);
if (in_array($order->billing_country, array('US','CA'))) :
$order->billing_phone = str_replace(array('(', '-', ' ', ')'), '', $order->billing_phone);
$phone_args = array(
'night_phone_a' => substr($order->billing_phone,0,3),
'night_phone_b' => substr($order->billing_phone,0,3),
'night_phone_c' => substr($order->billing_phone,0,3),
'night_phone_b' => substr($order->billing_phone,3,3),
'night_phone_c' => substr($order->billing_phone,6,4),
'day_phone_a' => substr($order->billing_phone,0,3),
'day_phone_b' => substr($order->billing_phone,0,3),
'day_phone_c' => substr($order->billing_phone,0,3)
'day_phone_b' => substr($order->billing_phone,3,3),
'day_phone_c' => substr($order->billing_phone,6,4)
);
else :
$phone_args = array(