Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Posts
    136
    Plugin Contributions
    0

    validation for attribute

    Hy zencartians

    this is my site:

    http://eshop.asiantrademark.com/inde...&products_id=2


    now i want to add validation for all the attribute field except (Business Name (if any):,Address(2):,City2).)..


    can any one help me how to do this.

    Dr. Byte you are most welcome..

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: validation for attribute

    The only validation currently available for attributes is "required" or "not required".
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2006
    Posts
    136
    Plugin Contributions
    0

    Default Re: validation for attribute

    thanks ..


    but can you please tell me how can i set up "required" - "not required"


    thanks

  4. #4
    Join Date
    Apr 2006
    Posts
    136
    Plugin Contributions
    0

    Default Re: validation for attribute

    ok i found "Required " - not Required att.

    its last option ..

  5. #5
    Join Date
    Apr 2006
    Posts
    136
    Plugin Contributions
    0

    Re: validation for attribute

    but one more problem

    this is work fine for only text boxes

    what to do for Radio and Dropdown box..


    http://eshop.asiantrademark.com/inde...&products_id=2


    vishal DOT comp AT yahoo DOT com


    Dr. Byte ur help is required urgeently

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: validation for attribute

    For Radiobuttons and Dropdowns ...

    Add an additional Option Value such as:

    Select from below
    Bank preference
    Pick one

    Set that to be Default, Display Only, Sort Order 0

    What this does is force the customer to make a valid selection and not accidentally pick one just by hitting Add to Cart ...

    It is a real help to stop shipping out 200 Small T-Shirts due to customer error when they should of been Medium or Large ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Apr 2006
    Posts
    136
    Plugin Contributions
    0

    Default Re: validation for attribute

    thanks linda

    my problme is solve

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: validation for attribute

    Thanks for the update ... and glad that this worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Attribute Cross-Validation
    By pizza392 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 25 Oct 2013, 11:47 AM
  2. user validation/approval for donations
    By keneso in forum General Questions
    Replies: 6
    Last Post: 23 Jun 2011, 02:50 PM
  3. Attribute Text Custom Validation
    By suntower in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Dec 2010, 06:07 AM
  4. Validation Errors for HTML
    By khopek in forum General Questions
    Replies: 2
    Last Post: 13 Feb 2008, 01:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg