Drop Down Attribute Position Question

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I have added a few product variant attributes to a product, all is fine apart from when I use a dropdown box, the dopdown box is placed on a new line, if I use a text box this is place on the same line, I think it would look nicer if the dropdown was positioned the same as the text box, I have been told by a friend it is probably CSS,  does anyone know how I can fix this.

thanks

Steve
13 years ago
Hi,

No, it can be fixed by editing the CSS. You should change a rendering of product attributes control. Look at the ProductAttributes.ascx.cs line 78.


                        bool addBreak = true;
                        switch (attribute.AttributeControlType)
                        {
                            case AttributeControlTypeEnum.TextBox:
                                {
                                    addBreak = false;
                                }
                                break;
                            default:
                                break;
                        }


change it like that:


                        bool addBreak = true;
                        switch (attribute.AttributeControlType)
                        {
                            case AttributeControlTypeEnum.TextBox:
                            case AttributeControlTypeEnum.DropdownList:
                                {
                                    addBreak = false;
                                }
                                break;
                            default:
                                break;
                        }
13 years ago
Perfect, thak you very much

Steve
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.