Results 1 to 10 of 10

Hybrid View

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

    Default Re: Radio Buttons/unlimited quantity

    You would need to alter the module for the attributes.php ...

    However, the reason this was done when a Dropdown contained only one value is that it gets obnoxious to click Dropdowns that have no choices ...

    The code does automatically switch back to Dropdown as soon as there is more the one option value ...

    This case statement would need to be turned off to allow the dropdown to processes as a dropdown regardless of how many option values there are:
    PHP Code:
                      case ($products_options->RecordCount() == 1):
                      if (
    $show_attributes_qty_prices_icon == 'true') {
                        
    $options_name[] = '<label class="switchedLabel ONE" for="' 'attrib-' $products_options_names->fields['products_options_id'] . '-' $products_options_value_id '">' ATTRIBUTES_QTY_PRICE_SYMBOL $products_options_names->fields['products_options_name'] . '</label>';
                      } else {
                        
    $options_name[] = $products_options_names->fields['products_options_name'];
                      }
                      
    $options_menu[] = zen_draw_radio_field('id[' $products_options_names->fields['products_options_id'] . ']'$products_options_value_id'selected''id="' 'attrib-' $products_options_names->fields['products_options_id'] . '-' $products_options_value_id '"') . '<label class="attribsRadioButton" for="' 'attrib-' $products_options_names->fields['products_options_id'] . '-' $products_options_value_id '">' $products_options_details '</label>' "\n";
                      
    $options_comment[] = $products_options_names->fields['products_options_comment'];
                      
    $options_comment_position[] = ($products_options_names->fields['products_options_comment_position'] == '1' '1' '0');
                      break; 
    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!

  2. #2
    Join Date
    Jun 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Radio Buttons/unlimited quantity

    Thanks Ajeh for direction on where to find this logic. Much appreciated! I will give it a shot.

    The current logic replacing the drop down with a radio button makes a lot of sense...I understand why it was put in as single-choice dropdowns are a bit annoying. However the feeling with the store owner I am working with is that they would like to keep the interaction consistent whether there is one size or more than one size available.

    Thanks to Ajeh and gjh42 for all the help!

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

    Default Re: Radio Buttons/unlimited quantity

    I wasn't sure where the logic was located. Since it is confined within the attributes module, there should be no overspill of effects.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Radio Buttons/unlimited quantity

    ( just thinking out loud, but if you only have one choice for size (as an example) why would you force your customer to make a choice at all? ... Very un-friendly to your customers )
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Unlimited Quantity??
    By timbreman in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 23 Jan 2014, 07:10 PM
  2. Unlimited products quantity
    By ampm11 in forum General Questions
    Replies: 7
    Last Post: 31 Dec 2010, 08:16 AM
  3. Unlimited quantity?
    By hawkeye in forum Setting Up Categories, Products, Attributes
    Replies: 18
    Last Post: 8 Dec 2010, 01:02 AM
  4. Unlimited Quantity
    By GaryDaSnail in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 7 May 2008, 12:31 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