From 2a31f82cda1fb57b56e11d3292738d71180d79e7 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 8 Dec 2014 14:01:15 -0500 Subject: [PATCH] Invoice accepts letters, phone/comp-name/invoice not reqrd --- includes/payment-display.php | 28 ++++++++++++++-------------- includes/payment-function.php | 7 ++++--- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/includes/payment-display.php b/includes/payment-display.php index 58e469e..22c4d84 100755 --- a/includes/payment-display.php +++ b/includes/payment-display.php @@ -112,7 +112,7 @@ function glm_payment_form() { - Organization* + Organization @@ -448,7 +448,7 @@ function glm_payment_form() { - Phone* + Phone @@ -474,9 +474,9 @@ function glm_payment_form() { - Invoice Number* + Invoice Number - + @@ -1107,16 +1107,16 @@ function glm_payment_form() { // form.country.focus(); // return; // } - if (form.invoice_num.value == "") { - alert("Please enter an invoice number"); - form.invoice_num.focus(); - return; - } - if (form.phone.value == "") { - alert("Please enter your phone"); - form.phone.focus(); - return; - } +// if (form.invoice_num.value == "") { +// alert("Please enter an invoice number"); +// form.invoice_num.focus(); +// return; +// } +// if (form.phone.value == "") { +// alert("Please enter your phone"); +// form.phone.focus(); +// return; +// } if (form.email.value == '') { alert("Please enter your email"); diff --git a/includes/payment-function.php b/includes/payment-function.php index 75d35ab..c3f6b96 100755 --- a/includes/payment-function.php +++ b/includes/payment-function.php @@ -81,9 +81,10 @@ function authorizepayment($METHOD_TO_USE,$REQUEST,$address1='',$city='',$state=' } function checkInvoice($invoice_num) { - if (!preg_match("/^[0-9]{5}$/", $invoice_num)) { - return false; - } + // invoices requested to also allow text as of 8 Dec '14 +// if (!preg_match("/^[0-9]{5}$/", $invoice_num)) { +// return false; +// } return true; } -- 2.17.1