Forums / Templates, Stylesheets, Page Layout / Changing the product description lengh from 15 characters?

Changing the product description lengh from 15 characters?

Locked

Views: 1,962

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
2 May 2007, 8:02 AM
#1
dan_ballan avatar

dan_ballan

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Changing the product description lengh from 15 characters?

**I would like to increase the description character lengh from 15 to possibly around 25-30 characters. Is this possible? Is this something that needs to be changed in the stylesheet.css? Thanks Daniel
**

2 May 2007, 11:15 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Changing the product description lengh from 15 characters?

The default is 150 characters...

Set this in admin > Configuration > Product Listing > Display Product Description.

2 May 2007, 1:47 PM
#3
dan_ballan avatar

dan_ballan

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

Thanks for your reply Glenn. I am actually meaning the product listing description which is only 15 characters. I cannot find anywhere to change this in the "Configuration" settings. Sorry i was unclear. Thanks Daniel

2 May 2007, 6:48 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Changing the product description lengh from 15 characters?

Where does this product listing description appear? I need to know what it is before I can give good advice.

3 May 2007, 2:53 AM
#5
dan_ballan avatar

dan_ballan

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

It appears on the main screen of each sales page. This refer to what the product is called. We have products which require more than 15 characters which just get cut off when trying to view them. When actually creating the item it allows us to put the whole name except when viewing them its a different story.
Thanks again

3 May 2007, 3:01 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Changing the product description lengh from 15 characters?

I'm still not sure what you mean. I have product names that are 40-50+ characters long, and nothing at all that gets limited to 15 or so characters.

We really need a link to a page where this is happening, or if you can't do that, a screenshot.

4 May 2007, 3:19 AM
#7
dan_ballan avatar

dan_ballan

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

Sorry Glenn, my must be using the wrong wording of what i am talking about.
I appreciate you talking the time to help. Screenshot is attached which should be more clear. Thanks

4 May 2007, 8:21 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Changing the product description lengh from 15 characters?

Now I see what you're talking about. Unfortunately, there is little I can do to help in this case, because you have a third-party template that is apparently set up with fixed sizes, not a standard Zen Cart display. Nobody here knows how it is coded.

If we could see the cart in operation, it might be easier to locate the code that is limiting the display.

8 May 2007, 11:40 AM
#9
dan_ballan avatar

dan_ballan

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

Hi Glenn,
The link is www.field-hockey-equipment.com/fhe/zen. Sorry for the delay and thanks again for taking the time to help me out.
Regards,
Daniel

8 May 2007, 5:16 PM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Changing the product description lengh from 15 characters?

This is decidedly strange.
Aside from being rather inefficient in places (like a whole div for main cell padding around a div for main cell border...) and using a lot of spacer.gif images where margins would do the job cleaner & easier, there is nothing I can see in the HTML output or the stylesheet that would be limiting the product name width.

There must be something in the PHP code overlaying the standard ZC code that is cutting the display. Does the display always cut exact characters, or is there sometimes a fractional character visible? If there was a pixel width limitation, there would be occasional cutoffs.

I think this may be a relic of the original tabled layout of the template. It may have been necessary to limit the text so it couldn't push the tables out of their designed sizes. The template looks like a tabled design converted by rote to divs, with all the complications tables require left in.

Somewhere in your template files there will most likely be an operation that takes the product name and truncates it to 15 or whatever characters. I have seen a similar thing in another template where someone was unnecessarily limited in normal function. You might best take the problem to your source and ask them to fix it. If they won't, enough searching will eventually reveal the culprit.

12 May 2007, 4:59 AM
#11
dan_ballan avatar

dan_ballan

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

Glenn, thanks for your help, i really appreciate it. I will contact Monster Templates and see if they can figure it out. Cheers, Daniel

5 Jul 2007, 12:33 AM
#12
jessiebags avatar

jessiebags

New Zenner

Join Date:
May 2007
Location:
Tulsa, OK
Posts:
15
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

Hey Dan .. I am having the same issue, if you found the resolution would you please share?? Thanks so much! :) I have been searching for the source of this override for EVER and I can't find it ....grrrr....:frusty:

-Much Love, Jessica :)
-My Blog - MYSPACE - [email protected]
-Make a small loan, Make a big difference - Kiva.org

12 Jul 2007, 6:55 PM
#13
callan avatar

callan

New Zenner

Join Date:
Nov 2005
Posts:
18
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

As I -apparently- bought the same template, I am also curious about the solution from the 15 character limit. Template Monster is currently working on my template issues, but if you know how to solve I can do it myself.

Thanks,

Callan.

15 Jul 2007, 9:13 PM
#14
jessiebags avatar

jessiebags

New Zenner

Join Date:
May 2007
Location:
Tulsa, OK
Posts:
15
Plugin Contributions:
0

Re: Changing the product description lengh from 15 characters?

Okay everyone ... Template monster got back with me, and offered the following fix:

to increase the length of products' descriptions find the following on the line #58 in theme006\common\tpl_tmfuncs.php:

substr($desc,0,20)

and increase 20 - that is the length

HOWEVER, for me personally "substr($desc,0,20)" was actually on line #17 and #59 and I had to change it in both places for it work.

I also added the following to line #17 and #59, (additional code in red) so that the product description would link to the product and it also adds "click for more" at the end of the mini description:

<span class="main_text"><a href="'.$href.'">'.substr($desc,0,100).'...click for more</span><br>'.zen_image(DIR_WS_TEMPLATE.'images/spacer.gif', '', '1px', '9px').'<br>

If you still have trouble let me know, I might be able to help. :lamo:

-Much Love, Jessica :)
-My Blog - MYSPACE - [email protected]
-Make a small loan, Make a big difference - Kiva.org