Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004
    Posts
    4
    Plugin Contributions
    0

    cart error Selecting only one option value among multiple options

    I'm using radios to display all my options and option values (shirt color and color sizes).

    I've arranged my options by shirt color and option values by size.

    The problem I'm running in to is that the radio groups obviously group by shirt color. This would allow someone to select one size from one color and another from size from another color.

    I'm thinking I may have to insert jscript to clear selected radio from one group when a radio is selected in another group. I've found a script that will do this for static groups (where group names are written into the script) but my shirt color options are dynamic.

    Any ideas?

    Attached is a screen of my template.
    Attached Images Attached Images  

  2. #2
    Join Date
    Sep 2004
    Posts
    4
    Plugin Contributions
    0

    Default Re: Selecting only one option value among multiple options

    I figured it out. I added the following into where the input tag is built (attributes.php) so that every input includes this:

    onClick="javascript:document.cart_quantity.reset();return checked=true"

    What is does is when a radio button is selected, it clears the form (all other radio buttons), then returns "checked=true". With out checked=true, selecting the radio button clears the one your clicking.

    This may create problems if you have other options in your form. My cart is vary basic when it comes to options, I'll always only have color and color sizes for all my products.

 

 

Similar Threads

  1. v155 Copy Option value from one Option name to another - Failing
    By Kcin in forum General Questions
    Replies: 7
    Last Post: 7 Aug 2016, 12:54 AM
  2. v151 From multiple Option Names and Attributes allow user to select one attribute only
    By tipada in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 27 Jan 2013, 03:10 AM
  3. selecting one attribute option
    By tcjay in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 17 Nov 2010, 04:19 PM
  4. How to add one option name and multiple option values at one time?
    By speedraceratl in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 24 Sep 2009, 05:08 AM
  5. Remove only certain Payment Options after selecting Shipping
    By RosscoB in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 17 Mar 2009, 04:24 PM

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