Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Location
    UK
    Posts
    265
    Plugin Contributions
    0

    Default Attributes selection advice required please

    Hi there

    i need some quick advice on this matter.

    I have created my name for my attribute - COLOUR and i have added the values - colours (red, green, yellow etc).

    What i am trying to do is let the customer choose ONE colour only. At the moment they can tick on all the colours if they wanted to do so.

    I want the customer to ONLY have one choice of colour.

    How can i do that please ?

    Last question..... if i was to have Radio Buttons set up so the customer can see all the colour options - can i have each radio button set to a colour that it states? ie the circle will be red for the option red etc

    Thank you

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,366
    Plugin Contributions
    87

    Default Re: Attributes selection advice required please

    For the first question, you'll need to set the base product's configuration to allow only 1 (regardless of attribute) variant of the product to be placed into the cart.

    Product Qty Minimum: 1
    Product Qty Maximum: 1
    Product Qty Units: 1
    Product Qty Min/Unit Mix: Yes

    For the radio-button coloring, that's certainly possible with site-specific styling. Each radio button is created with an HTML id attribute similar to
    Code:
    id="attrib-x-y"
    where x is the options_id value associated with "Colour" and y is the options_values_id associated with the color value, e.g. "Blue". Note, though, that styling radio-buttons' colors will require a bit of 'work' within your template's CSS; try Googling "css apply color to radio button" for additional information.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,103
    Plugin Contributions
    11

    Default Re: Attributes selection advice required please

    If I might suggest. When dealing with colors, if the item can be shown with a different color, I use it as a dropdown and make sure the Please Select is added with Display Only and Default. Just easier to do with dropdown and doesn't take up a lot of real estate if you have 20 colors. Plus, the Display Only causes them to make a choice.

    A simple example can be found at https://enightlights.com/index.php?m...roducts_id=254. Please note that the swapping process used here is a commercial product that we have a license to use.

    There is a mod at https://www.zen-cart.com/downloads.p...=699&styleid=2 but I am not fully aware of its capabilities.

  4. #4
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Attributes selection advice required please

    Quote Originally Posted by dbltoe View Post
    If I might suggest. When dealing with colors, if the item can be shown with a different color, I use it as a dropdown and make sure the Please Select is added with Display Only and Default. Just easier to do with dropdown and doesn't take up a lot of real estate if you have 20 colors. Plus, the Display Only causes them to make a choice.

    A simple example can be found at https://enightlights.com/index.php?m...roducts_id=254. Please note that the swapping process used here is a commercial product that we have a license to use.

    There is a mod at https://www.zen-cart.com/downloads.p...=699&styleid=2 but I am not fully aware of its capabilities.
    Nice... I used modified radio with the above mod modified for my site.. https://www.cowboygeek.com/cbgshop/i...roducts_id=117
    In this case, the image is worth more then words...
    Dave
    Always forward thinking... Lost my mind!

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,103
    Plugin Contributions
    11

    Default Re: Attributes selection advice required please

    Sometimes there's just too much for the radios. https://spicewoodfood.com/index.php?...products_id=46

    Still trying to work the image changes on this one. Would be nice to wind up with the twelve picked bottles in the image.

    No hill for a stepper, right?

  6. #6
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Attributes selection advice required please

    Quote Originally Posted by dbltoe View Post
    Sometimes there's just too much for the radios. https://spicewoodfood.com/index.php?...products_id=46

    Still trying to work the image changes on this one. Would be nice to wind up with the twelve picked bottles in the image.

    No hill for a stepper, right?
    I'll see my heart doc next week... they keep tell me to stop climbing hills..

    Check boxes can be CSS into anything... I use them as click-on click-off buttons. Images would work too. Pules they are easy to control like 18 check boxes that only 12 can be selected at a time. Once 12 are checked, you have to uncheck one to check another. The product image would be the hard part... maybe 12 images of empty bottles replaced with attribute image as checked! With mine, I had to modify a function to chase the attribute image down-line into admin and user account order history.

    @amebb Hopefully you're getting some ideas... only one radio can be selected in a group. You can use a color dot image to replace the radio and use css to change it when selected.. I do that with some of my products. You should be able to change the color of the radio button using css, but there's more control with images... It well take some custom coding, but anything is possible. Drop-downs are only one selected at a time with the first one as the default or none. With code that can change to multiple selections. All the info on modifying form input and how forms work is online if that's what you like to do, or if you not found it, attribute doc's
    Dave
    Always forward thinking... Lost my mind!

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,660
    Plugin Contributions
    11

    Default Re: Attributes selection advice required please

    Quote Originally Posted by dbltoe View Post
    Sometimes there's just too much for the radios. https://spicewoodfood.com/index.php?...products_id=46

    Still trying to work the image changes on this one. Would be nice to wind up with the twelve picked bottles in the image.

    No hill for a stepper, right?
    i will refrain from commenting with 1 minor exception. on the footer, there is a section of code:

    Code:
    <div id="siteinfoLegal" class="legalCopyright">Copyright © 2020 <a href="https://spicewoodfood.com/index.php?main_page=index&amp;zenid=7501h4cfkqadhqkes5054fe145" target="_blank">The Spicewood Food Company</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a><br>Customized by <a href="http://jeandret.com/demo" target="_blank">JEANDRET</a>&nbsp;&nbsp;Hosted by <a href="http://myzencarthost.com" target="_blank">JEANDRET</a></div>
    when i go to this link:

    http://jeandret.com/demo

    i get a mysql connect error.

    personally, i would fix that... that's just me... fixing the link or fixing the connection... whichever.... just MO.

    best.
    author of square Webpay. called the savior by the chief bottle washer...
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    available for hire.

 

 

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. Product Listing Advice Required: attributes or no?
    By dutchy in forum General Questions
    Replies: 2
    Last Post: 23 May 2011, 03:51 PM
  3. Advice Required before Upgrade from 1.3.8a to 1.3.9
    By limelites in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 18 Jul 2010, 05:47 PM
  4. 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

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