Popular tags' section on the home page's rigt column does not show all of product tags in table Nop

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
Popular tags' section on the home page's rigt column does not show all of product tags in table Nop_ProductTag in Nopcommerce 1.8

In the tabel, there are 16 tags, however on the home page, the system just shows 15, it miss gift tag. I do not know if it is a bug or not. Does system setup to only show 15 tags on the screen? If this is the case, how to change it?
Hace 13 años
Yes 15 is the limit.

See PopularTags.ascx.cs BindData()

protected void BindData()
        {
            //get all tags
            int maxItems = 15;
            var productTags = ProductManager.GetAllProductTags(0, string.Empty);
            List<ProductTag> cloudItems = new List<ProductTag>();
            for (int i = 0; i < productTags.Count; i++)
            {
                ProductTag productTag = productTags[i];
                if (i < maxItems)
                {
                    cloudItems.Add(productTag);
                }
            }


I'm not sure what would happen if you increased that number.  My guess is that the Font Weights/Sizes may be the reason for the limit.  You could always try to change it to 16 and see what happens.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.