Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    32
    Plugin Contributions
    0

    Default Problem with required fields in attributes

    Hi,
    I'm using zencart 1.38 and I have attributes set up on my site:
    http://www.lookingglassgiftmirrors.c...t-mirror-3-p-3


    My problem is as follows (bear with me please!).
    I have a choice with 2 radio buttons and they must choose from either a standard verse or a custom verse. The radio buttons are required fields and they work correctly. However if you choose Standard verse I need your Name1, name 2 and date etc. I've set them required text fields and again that works ok.

    But if you decide you want a Custom verse I don't want the Name1, name2, date etc fields to be required as you must now fill in the Custom box, but I can't figure how to do a if/else in this situation.

    I'd appreciate if anyone has come accross this problem and foudn a solution.
    Regards,
    Breda.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Problem with required fields in attributes

    It sounds like you're talking about 'dependent attributes', where the availability of some attributes depend on the selection of another.

    You can't do that in the current version of Zencart.

    It would, as I understand it, be a very complex programming job. That said, if someone were to create a working mod that did that, he/she could make a lot of money selling it to Zenners.

  3. #3
    Join Date
    May 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Problem with required fields in attributes

    I was about to reply to this but then glanced at your site to see you seem to have solved the problem!

    For the benefit of others it would be useful if you posted the solution

  4. #4
    Join Date
    Dec 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Problem with required fields in attributes

    Hi,
    Sorry no problem is not resolved, the required tab was not set on the Name1, Name2 etc on this product for testing purposes. I have it set on it again.
    Does anyone know if the latest verison of Zen cart have Dependent attributes? I'm happy to pay for a contribution if one exists.
    Regards,
    Breda

  5. #5
    Join Date
    Dec 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Problem with required fields in attributes

    I'm wondering if the Attribute Cross Validation would solve this, has anyone used it to solve a problem like this one?
    Regards
    Breda

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with required fields in attributes

    From reading the description, that mod would get the end result of requiring or excluding certain attribute combinations, but it would not change the attribute display at all. All of the attributes would be shown all the time.

    It is written for v1.3.8, so might have to be brought up to date if any of its files have changed in v1.3.9e.

  7. #7
    Join Date
    Dec 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Problem with required fields in attributes

    Hi Glenn,
    Yes I think you are right, I think I need to create a unique Radio Button for each product and then tie the Attributes to that button that are required. Painfull but I thinkit's the only way,
    Regards
    Breda

 

 

Similar Threads

  1. v150 Red asterisk on required attributes & issue with required attribute
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Feb 2013, 03:18 AM
  2. v138a Problems with customers not filling required fields and yet able to register
    By icecold in forum Managing Customers and Orders
    Replies: 4
    Last Post: 3 Jun 2012, 04:55 PM
  3. Problem with Required attributes after moving attributes to product listing page
    By bigmo337 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Jun 2010, 12:03 AM
  4. Marking required text attribute fields with an * or (required)?
    By fepb in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Mar 2007, 07:54 AM
  5. problem with orders?? vs required attributes not being enforced
    By BlushFashions in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 5 Nov 2006, 06:35 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