Display products attributes - inline

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
This is simple, but i am puzzled.

I want to display the attributes inline.

like below

http://img860.imageshack.us/i/attribute.jpg/

I know it is in product attribute module productattributes.ascx.cs

Even though if i remove the * and <br/> in the created codes it is not working


  if (attribute.IsRequired)
                            attributeTitle.Text = "<span>*</span> ";

                        //text prompt / title
                        string textPrompt = string.Empty;
                        if (!string.IsNullOrEmpty(attribute.TextPrompt))
                            textPrompt = attribute.TextPrompt;
                        else
                            textPrompt = attribute.ProductAttribute.LocalizedName;

                        attributeTitle.Text += Server.HtmlEncode(textPrompt);
                        attributeTitle.Style.Add("font-weight", "bold");

                        //description
                        if (!string.IsNullOrEmpty(attribute.ProductAttribute.LocalizedDescription))
                            attributeTitle.Text += string.Format("<br/><span>{0}</span>", Server.HtmlEncode(attribute.ProductAttribute.LocalizedDescription));

                        bool addBreak = true;
                        switch (attribute.AttributeControlType)
                        {
                            case AttributeControlTypeEnum.TextBox:
                                {
                                    addBreak = false;
                                }
                                break;
                            default:
                                break;
                        }
                        if (addBreak)
                        {
                            attributeTitle.Text += "<br />";
                        }


Am i missing something here

thanks in advance
13 years ago
Eureka

Oops so silly , I wish someone had told this.

Do the necessary modifications in the ProductAttributes.ascx.cs file (i removed the star btw)

And recompile the whole nopcommerce project. Run the store viola....

you can use css to make it inline.


Hope this helps some one.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.