You are here:  » Brand Merchant and Category pages don't always finish

Support Forum



Brand Merchant and Category pages don't always finish

Submitted by bjbtexas on Mon, 2010-01-18 22:59 in

{link saved}

Randomly the Brand Merchant and Category pages don't always finish building.

What should I do to fix this issue?

Thanks,

Bobby

Submitted by support on Tue, 2010-01-19 10:32

Hello Bobby,

I checked out your site and reloaded each index page several times and it seemed to be all OK... How often are you seeing it not complete?

Cheers,
David.

Submitted by bjbtexas on Tue, 2010-01-19 22:25

Seems like every time to me. At first I was just thinking it was an overloaded cable broadband network, but it happens on a T1 line as well.

What is the most effective way to put side menus into the script? I've built it with tables and I figure I should go lighter on the content by taking the brand and merchant drop down boxes off the pages.

Try this one:
{link saved}

The right side menu never seems to finish for me.

Thanks,

Bobby

Submitted by support on Wed, 2010-01-20 10:34

Hello Bobby,

I can see the problem now - it is because your description fields contain HTML, but when the description field is cropped for display on the search results page; the HTML is being broken mid-tag, which is preventing the rest of the page from being displayed.

If you wish to keep HTML within your description fields (I am assuming that at some point you made a modification to permit HTML as it is stripped by default); then what I would recommend would be to add strip_tags() to the description field as it is displayed by the search results HMTL module.

To do this, look for the following code (or similar) around line 20 of html/searchresults.php:

<p><?php print substr($product["description"],0,250); ?></p>

...and REPLACE with:

<p><?php print substr(strip_tags($product["description"]),0,250); ?></p>

Hope this helps!

Cheers,
David.

Submitted by bjbtexas on Tue, 2010-01-26 22:47

That's it Thank You!

Bobby