Announcement

Collapse
No announcement yet.

Dropdown for components

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dropdown for components

    Hi,

    Can anybody advise me on if it is possible to have a dropdown rather than checkboxes for components.

    A bit of background...

    We've recently upgraded from v7 to v10. In v7 we didn't have the luxury of the options/attributes/permutations so had set up the component to link directly to a hidden product for stock control. We have thousands of products so to make the upgrade as easy as possible, we've stuck with that.

    However, because of this, it doesn't look like it's easy to do what we're after. We're looking at changing the way some of the products are structured, so we're going to end up with some very long lists of components, hence the need to do this.

    I am guessing that we could have an independant dropdown which ticked the appropriate checkbox using javascript (and then hide the checkboxes using CSS), but wondered if anyone knew if this was achieveable using built-in Actinic functionality.

    Example product page - http://www.woodhouseclothing.com/aca...0charcoal.html

    Cheers,
    Paul

    #2
    Permutations or attributes and choices are your only 2 ways to have drop down lists AFAIK.

    Comment


      #3
      You could create a customised Component List layout that generates a SELECT statement as Start of List. And an OPTION statement for each list item with the value being the name of the corresponding checkbox. Finally the </SELECT> for End of List. However You would need some JavaScript to change the name of the SELECT just before submission to its OPTION value) and change the submitted value to "on" in order to simulate a single checkbox being selected.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Thanks for your responses.

        I had a feeling it wouldn't be straightforward in v7+, but Norman's solution sounds workable, I did actually start down this path, but gave up, but will definitely revisit.

        Cheers.

        Comment

        Working...
        X