logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to forums.ablecommerce.com. Please use your AbleCommerce username and password to Login. Forums Registration.

Notification

Icon
Error

Options
Go to last post Go to first unread
ray22901031  
#1 Posted : Thursday, September 10, 2020 11:42:48 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 171

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
The catalog summary widget is limited with the amount of text it can show to the user. This widget does not automatically adjust to the amount of text beyond a given number of lines. But what it does, when there's too much text in this widget, it will interfere with the footer area below. Even though the contents of the widget are wrapped in a <div> tag, it still interferes with the contents below.

I am able to reproduce this on multiple websites using the default configuration, please notice the <hr> tag in the footer being forced to the right.

I hope this helps,
-Ray

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. Forums Registration.

shari  
#2 Posted : Thursday, September 10, 2020 2:31:43 PM(UTC)
shari

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 95

Was thanked: 10 time(s) in 10 post(s)
Can you please share a screenshot.

Thanks
ray22901031  
#3 Posted : Thursday, September 10, 2020 2:40:02 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 171

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Too-Much-Text.jpg (834kb) downloaded 5 time(s). Right-Amout-of-Text.jpg (749kb) downloaded 4 time(s).
shari  
#4 Posted : Thursday, September 10, 2020 2:51:49 PM(UTC)
shari

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 95

Was thanked: 10 time(s) in 10 post(s)
Do you have any inline styling added in your summary text or are there any generic classes being used in summary HTML.

This widget renders the Html as text so there are chances of some invalid Html or custom styles creating the mess.
ray22901031  
#5 Posted : Thursday, September 10, 2020 3:06:59 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 171

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Here's the external CSS property for that particular text in the summary widget:

.BoxSummaryPic { background-color: white; padding: 10px; color:#777; background-image: url(/Assets/ContentImages/ars_Information.png); font-size: .9em; background-size: 50px 50px; background-repeat: no-repeat; background-position: right bottom; }

Extremely important, this behavior only shows itself when you have enough text, usually after 11 lines, and the Widget starts to trim the text. If you keep the text under 11 lines, all is well.

Please note, the above CSS is not complicated, we should be able to manipulate or format the contents that is pleasing to the user. plaintext although gets trim, does not seem to produce the problem, but the code is in a <div> and this should not occur.

I hope this helps.
ray22901031  
#6 Posted : Thursday, September 10, 2020 10:08:35 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 171

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Hi Shari,

I have figured out what is going on and the problem is indeed the category summary widget. Because the wedge does not expand and truncates the text, the ending </div> tag is being removed, the code is no longer within a container and spreads below to the footer area.

If you do the same thing in an HTML snippet, there is no problem, because the HTML snippet can increase depending on the amount of text, because of this, the ending </div> does not get truncated, and the code stays within its container.

The solution would be to have the category summary widget increase in size so the closing </div> tag remains.

I hope this helps,
-Ray
shari  
#7 Posted : Friday, September 11, 2020 5:21:09 AM(UTC)
shari

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 95

Was thanked: 10 time(s) in 10 post(s)
I think this issue has already been discussed in this forum post.
https://www.ablecommerce...ngth-of-category-summary

The summary content is truncated after 1000 characters. I think this has caused the issue you are facing right now.

To fix, please follow these steps:

1- Open \Website\Areas\Admin\Controllers\CategoryController.cs
2- Search for the code
Code:
category.Summary = StringHelper.Truncate(categoryModel.Summary, 1000);

3- Replace it with
Code:
 category.Summary = categoryModel.Summary;

4- Compile the code.
5- You will have to again set the complete summary content from admin edit page.

Thanks
ray22901031  
#8 Posted : Friday, September 11, 2020 8:19:52 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 171

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Thank you for providing the code fix, can you give us an approximately when the next release might be out?

Many thanks to all,
-Ray
katie_able_support  
#9 Posted : Tuesday, September 15, 2020 3:46:57 PM(UTC)
katie_able_support

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, System
Joined: 10/29/2018(UTC)
Posts: 94

Thanks: 2 times
Was thanked: 6 time(s) in 5 post(s)
Hi Ray,

It should be ready within the next 2 weeks. We have a few new issues that we're discussing, but other than that, almost all issues have already been through final testing. We spend about a week with the build we intend to distribute, doing more testing with a focus on upgrades. If everything goes well, we should be on track for Sept. 30th.

Thanks for asking, and I hope you're doing well.

Katie
Thanks for your support!
Katie
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.