Announcement

Collapse
No announcement yet.

Possible to have check field accept letters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Possible to have check field accept letters



    ------=_NextPart_000_006F_01C4F6FC.66CC40F0
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable

    Hi,

    We converted the check.mv file to be a purchase_order.mv file so =
    customers can enter a po# for payment. Some customers use letters in =
    their PO's and when they do, it returns an error since the check.mv file =
    requires all numbers for validation. Is there a section of code within =
    the check.mv file we can delete that will allow for any data entry so =
    it's not restricted to #'s only?

    Thanks in advance.
    kris
    iSeattle.com
    ------=_NextPart_000_006F_01C4F6FC.66CC40F0--


    #2
    Possible to have check field accept letters



    Yes, in the function:

    PaymentModule_Payment_Validate

    Change:
    <MvASSIGN NAME = "g.Check_Number" VALUE = "{ ltrim( rtrim( g.Check_Number ) ) }">
    <MvIF EXPR = "{ ( len( g.Check_Number ) EQ 0 ) OR ( ( g.Check_Number FMT '0#' ) NE
    g.Check_Number ) }">
    <MvASSIGN NAME = "l.valid" VALUE = 0>
    <MvASSIGN NAME = "g.Check_Number_Invalid" VALUE = 1>
    </MvIF>


    To
    <MvASSIGN NAME = "g.Check_Number" VALUE = "{ ltrim( rtrim( g.Check_Number ) ) }">
    <MvIF EXPR = "{ ( len( g.Check_Number ) EQ 0 ) }">
    <MvASSIGN NAME = "l.valid" VALUE = 0>
    <MvASSIGN NAME = "g.Check_Number_Invalid" VALUE = 1>
    </MvIF>



    -Bruce
    ......................................
    PHOSPHOR Media
    Featuring: StoreMan - A smarter way to manage Miva Merchant(tm) Store Content.
    Download a hassle-free demo today
    <A HREF ="http://www.phosphormedia.com/go.mv?ID=listsm">http://www.phosphormedia.com/go.mv?ID=listsm</A>
    ......................................




    > -----Original Message-----
    > From: [email protected]
    > [mailto:[email protected]]On Behalf Of Kayo Media
    > Sent: Monday, January 10, 2005 10:09 AM
    > To: [email protected]
    > Subject: [mrc] Possible to have check field accept letters
    >
    >
    > Hi,
    >
    > We converted the check.mv file to be a purchase_order.mv file so customers can
    > enter a po# for payment. Some customers use letters in their PO's and when
    > they do, it returns an error since the check.mv file requires all numbers for
    > validation. Is there a section of code within the check.mv file we can delete
    > that will allow for any data entry so it's not restricted to #'s only?
    >
    > Thanks in advance.
    > kris
    > iSeattle.com
    > --
    > No virus found in this incoming message.
    > Checked by AVG Anti-Virus.
    > Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 1/10/05
    >
    --
    No virus found in this outgoing message.
    Checked by AVG Anti-Virus.
    Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 1/10/05


    Comment


      #3
      Possible to have check field accept letters



      Why not just spend the $20 for an actual purchase order payment module
      which will accept letters to begin with?

      A.

      At 01/10/2005, you wrote:
      >Hi,
      >
      >We converted the check.mv file to be a purchase_order.mv file so customers
      >can enter a po# for payment. Some customers use letters in their PO's and
      >when they do, it returns an error since the check.mv file requires all
      >numbers for validation. Is there a section of code within the check.mv
      >file we can delete that will allow for any data entry so it's not
      >restricted to #'s only?
      >
      >Thanks in advance.
      >kris
      >iSeattle.com

      First Man Media
      <A HREF ="http://www.firstmanmedia.com">http://www.firstmanmedia.com</A>
      Custom designs incorporating Flash
      Specializing in Miva Merchant E-commerce


      Comment

      Working...
      X