Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Aug 2009
    Location
    Highlands Ranch, Colorado
    Posts
    84
    Plugin Contributions
    0

    Default Re: Getting the default attribute radio button checked

    I'm having this problem with a Zen Cart site I just made:
    http://herdoos.com/shop/index.php?ma...products_id=91

    Even though I have the first radio button set as the default in the attributes controller, its not selected on the page. When someone adds the item to the cart without making a color selection its added to the cart with a price of zero.

    How do I fix this? I have another site almost ready to go live, with the same issue.
    _ _ _ _ _ _ _
    DebiWebi
    http://www.tejadadesign.com

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

    Default Re: Getting the default attribute radio button checked

    First, you have set up the Option Name as a Checkbox vs a Radiobutton ...

    From what I am looking at, however, you may want the checkbox as I believe you are trying to get the customer to pick 6 colors ...

    If that is the case, then you should have checkboxes ...

    Now, are each of the colors $9.95 or are the 6 colors $9.95?

    If each color is $9.95, for $9.95 * 6 = $57.90, then you should keep the price on the Attributes ...

    But if you are trying to do 6 colors for $9.95, then you should:

    1 remove the prices from the Attributes

    2 edit the Product and mark it as Priced by Attribute: NO

    3 set the Product Price to 9.95

    But, if you are trying to pick 1 color to make a 6 pack of 1 color for $9.95, then you would want to switch to Radiobutton on the Option Name ... and then do the 3 steps above ...

    To force a Default select, then add another Option Value such as:
    Which Color?
    Default YES
    Display Only YES

    which forces the customer to make a real 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!]
    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. #13
    Join Date
    Aug 2009
    Location
    Highlands Ranch, Colorado
    Posts
    84
    Plugin Contributions
    0

    Default Re: Getting the default attribute radio button checked

    Thanks for your detailed response!

    The reason I used checkboxes was so a customer could choose a variety of packs (they come 6 same-color items per pack) rather than just adding one color to their cart via a dropdown or radiobutton. The packs are $9.95 each, so I have to price the attributes so if someone were to pick a red pack, white pack and blue pack they'd get charged for 3 packs.

    I tried forcing a default select like you said below (sounds like a great trick!) but unless someone were to uncheck that box when they add their items to the cart it causes an error message in the cart saying an invalid selection was made.

    It would be really nice if, when someone didn't choose a color and clicked add to cart, a popup would come up saying "you haven't chosen a color" or something like that.
    _ _ _ _ _ _ _
    DebiWebi
    http://www.tejadadesign.com

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

    Default Re: Getting the default attribute radio button checked

    Note that if you don't set the product to maximum 1, a customer might want to order 3 different packs, select 3 colors and enter qty: 3, thus ordering 9 packs. If you do set max 1, a customer who wants 2 red packs and 1 blue pack will not be able to order that combination.

    You may be best off with radiobuttons so a customer only adds one color (in whatever quantity they want) at a time. They can then go back and order some of another color. A bit longer, but allows clarity and flexibility in ordering. You don't want to confuse the customer! :)

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v139h Attribute radio buttons not checked on product listing pages.
    By swdstudios in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Jan 2015, 12:46 AM
  2. Priority as the default radio button?
    By Eridian in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 13 Jun 2011, 01:41 AM
  3. radio button checked when shouldn't be
    By domsmom in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 5 Jun 2009, 04:51 PM
  4. HOW TO? radio button checked or won't proceed through checkout?
    By blackpig in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Dec 2008, 09:24 PM
  5. how the radio button for credit card payment should be default selection???
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 7 Nov 2007, 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