Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    144
    Plugin Contributions
    0

    Default why can't I make a radio button mandatory?

    I have read a few threads about this and tried everything and just cannot get ths to work.

    I have a product that comes in several different variations and only need to select one.

    Currently I have one option name and 6 option values in the form of radio buttons.

    The problem is a customer can hit 'add to cart' without making a selection, so then we have no
    idea what they want.

    I can make one of the options mandatory but then that could be worse because if they
    don't pay attention to the selection we will end up shipping them the wrong version.

    All I need is a setting so that at least one option has to be selected before they can
    add to cart.

    I thought that's what the red 'required' button did but apparently not.

    Nothing I do with the yes/no settings on those buttons will get what I need.

    How can I do this ? One would think it should be very simple.

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

    Default Re: why can't I make a radio button mandatory?

    Add a 7th Option Value for:
    Pick one
    what do you want
    make a selection
    Pick the right size
    Pick the right color
    etc. etc.

    Set it as Default YES, Display Only YES and Sort Order 0 ...

    Now, they have to pick a valid choice and cannot pick the default choice ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    144
    Plugin Contributions
    0

    Default Re: why can't I make a radio button mandatory?

    Cool ! It works :)

    Many Thanks,
    Sheryl

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

    Default Re: why can't I make a radio button mandatory?

    Thanks for the update 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: v1.5.5]
    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!

  5. #5
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: why can't I make a radio button mandatory?

    hi, i have tried this and it didnt work, i susspect it is something i have done wrong tho...

    makes no diff when 'required' isselected

    what am i doing wrong?

  6. #6
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: why can't I make a radio button mandatory?

    image for post above
    Attached Images Attached Images  

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

    Default Re: why can't I make a radio button mandatory?

    From the image it looks right but I cannot see anything beyond that from just an image ...

    If you switch to the Classic Template, does it work?

    If you are using SEO/rewrites turn those off ... does it work?

    Do you have some other add ons?
    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: v1.5.5]
    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!

  8. #8
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: why can't I make a radio button mandatory?

    Hi Ajeh,

    thanks for replying, i have a handful of mods, inc the SSU mod. i turned that off and reverted to the default template. still the same...




    however i played and noticed that it only doesnt work when a customer is loged in. but works when viewing the site in guest mode..(not logged in)

    i guess i might have broken files... which folders/files should i replace with a clean download ... so i can test & report back

  9. #9
    Join Date
    Sep 2009
    Location
    California
    Posts
    148
    Plugin Contributions
    0

    Default Re: why can't I make a radio button mandatory?

    Nice answer Ajeh, but I have a quick question to that effect... I'm not a SQL maven, you wouldn't happen to have a quickie to update all the attributes for an option to default (radio button) we have a choice of three, and none - and I like the none having to be the default but didn't know about the 'default', just read it here and we have 100+ products.

    Something like 'where attrib = 'venting' and value='none' set default' or ?

    Just curious.

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

    Default Re: why can't I make a radio button mandatory?

    You need to find the options_id and options_values_id in the products_attributes table for the Attribute for None ...

    Backup your database ...

    Code:
    UPDATE products_attributes SET attributes_default = 1 WHERE options_id = XX and options_values_id = YY;
    where XX is the options_id and YY is the options_values_id ...
    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: v1.5.5]
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Make required radio button when product is free
    By Loubyloo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Feb 2015, 07:23 PM
  2. Can I make Fax number mandatory?
    By yalus in forum Managing Customers and Orders
    Replies: 7
    Last Post: 20 Aug 2010, 02:55 AM
  3. How to Make Selection of Radio Button Required?
    By AnitaB in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 30 Mar 2009, 05:28 PM
  4. how do i make radio button 'on' as default for downloadable option
    By what44 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Dec 2007, 04:37 PM
  5. Make new radio button
    By slabadoo in forum General Questions
    Replies: 0
    Last Post: 12 Apr 2007, 10:01 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR