Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Description text length on listings?

Product Description text length on listings?

Locked

Views: 6,896

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
30 Sep 2008, 6:39 PM
#1
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Product Description text length on listings?

Where (which file) can I modify to increase the length of text that is displayed in the products description?

My store is a catalog only (no sales) and I display the product images with descriptions. I had a developer modify the display so that only the product listing displays. No link to an individual product so the description needs to be available in the listing.

Thanks

1 Oct 2008, 6:46 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Product Description text length on listings?

ADMIN>>>CONFIGURATION>>>PRODUCT LISTING>>>

Display Product Description

1 Oct 2008, 5:50 PM
#3
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Product Description text length on listings?

I set the length to 5000 but it does not increase the length of the product description text that appears next to the image of the product. Check this page as an example - http://prestonribbons.com/catalog/index.php?main_page=index&cPath=2_42

There must be another css or admin setting - can you help?

Thanks

1 Oct 2008, 6:45 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Description text length on listings?

Your custom template has altered the standard product listing, and presumably has hardcoded the description length. We would have to see the original php files to diagnose this.

3 Oct 2008, 1:21 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Product Description text length on listings?

Glenn is usually right on these issues. But you can test his theory yourself by switching to CLASSIC template. (You can easily change back to WALLET later).

ADMIN>>>TOOLS>>>TEMPLATE SELECTION

3 Oct 2008, 7:44 PM
#6
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Product Description text length on listings?

Many thanks. I found that reloading the custom template files cured the problem.

16 Oct 2008, 7:49 PM
#7
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Product Description text length on listings?

Hi guys, I'm facing a similar problem, I can't show my whole products description as I set the length to 5000 and still a part of the product description is missing, I don't know what to do !:dontgetit

16 Oct 2008, 8:01 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Description text length on listings?

A link to your site please?
We can't possibly tell what customization has prevented full-length descriptions without seeing it.

16 Oct 2008, 8:15 PM
#10
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Product Description text length on listings?

OK, I think I fixed it by using the tag <pre></pre>:clap: thanks any way..

16 Oct 2008, 8:16 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Description text length on listings?

It looks like a Template Monster template. They are notorious for hard-coding things that are supposed to be switchable in admin.

<link rel="stylesheet" type="text/css" href="includes/templates/12541/css/stylesheet.css" />

Unfortunately they also sometimes put code in differently-named files than the standard. Look in
/includes/templates/12541/templates/tpl_product_info_display.php and see what is in the code block with id="productDescription".

16 Oct 2008, 8:22 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Description text length on listings?

So it wasn't that the description was being truncated, but your HTML formatting was being discarded. I saw the text running together with no tabs or line breaks.

The display now has a problem of running into the right sidebox (in 1024x768 anyway), so you ought to look at that code and fix whatever they did. Try comparing that section with the /template_default/ version of the file.

16 Oct 2008, 8:32 PM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Description text length on listings?

On a closer look, it appears that you had no HTML formatting to begin with. Typing into the description box with tabs and enter keys will do nothing for you, because HTML ignores those. I think the <pre> may be the cause of the text offsetting beyond the column edge. Correct HTML will probably make it display better.

16 Oct 2008, 8:33 PM
#14
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Product Description text length on listings?

I really don't see anything wrong with the layout ! what do you mean by running into the right sidebox (in 1024x768) because I set my screen to that resolution and I made a printscreen for the product and it looks perfect for me!

16 Oct 2008, 8:47 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Description text length on listings?

You're probably looking in IE. In Firefox, the description starts right below the "JVC GR DVL355 " Digital camera " for Sale ", and the first 9 lines of it are offset to the right. The rest is below the image and in the correct position. I couldn't make my computer save a screenshot.

16 Oct 2008, 9:45 PM
#16
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Product Description text length on listings?

OK, I checked it in Opera and IE, the layout in both was OK, in Firefox you were right, the layout wasn't so cute as in Opera and IE, now how to solve this problem?

20 Oct 2008, 8:38 PM
#17
credenscel avatar

credenscel

New Zenner

Join Date:
Aug 2008
Posts:
44
Plugin Contributions:
0

Re: Product Description text length on listings?

i am using the darkness template and was having issues with the products description cutting off at 64 characters.
i solved it by going to myphp admin, found Products_description click "products name", for value set it at a bigger number (i put 5000 just to be safe)

20 Oct 2008, 10:18 PM
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Description text length on listings?

There should be no need to go into phpMyAdmin for this.
Zen Cart admin > Configuration > Product Listing > Display Product Description -->set to 5000

21 Oct 2008, 6:49 AM
#19
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Product Description text length on listings?

OK gjh42, but how to fix that in Firefox though ?

21 Oct 2008, 6:54 AM
#20
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Product Description text length on listings?

gjh42:

On a closer look, it appears that you had no HTML formatting to begin with. Typing into the description box with tabs and enter keys will do nothing for you, because HTML ignores those. I think the <pre> may be the cause of the text offsetting beyond the column edge. Correct HTML will probably make it display better.

Should I follow what you mentioned here ?:blush: