Zen Cart Logo
Forums / Basic Configuration / Product Names Being Truncated to 15 Characters

Product Names Being Truncated to 15 Characters

Locked

Views: 3,348

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
11 Jul 2007, 1:04 AM
#1
myfootsmells avatar

myfootsmells

New Zenner

Join Date:
Jul 2007
Posts:
17
Plugin Contributions:
0

Product Names Being Truncated to 15 Characters

When I click on the Categories and it displays my products, the product names are truncated to 15 characters but when I click the product the product name will appear correctly.

Is there an option to change this setting?

11 Jul 2007, 1:38 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Names Being Truncated to 15 Characters

Do you have an add-on or a template that is doing this?

11 Jul 2007, 5:16 AM
#3
myfootsmells avatar

myfootsmells

New Zenner

Join Date:
Jul 2007
Posts:
17
Plugin Contributions:
0

Re: Product Names Being Truncated to 15 Characters

Ajeh:

Do you have an add-on or a template that is doing this?

it very well might be my template doing this. how would i start troubleshooting?

11 Jul 2007, 5:31 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Product Names Being Truncated to 15 Characters

Did your template come from Tempate Monster? Do you have a "Details" button instead of an add to cart or more info button?
If so, I'm 99 44/100ths percent sure that the template has hard-coded a truncation of the product name, using custom TM constants, variables and functions. It may or may not be in /includes/modules/your_template/product_listing.php.

12 Jul 2007, 4:40 AM
#5
myfootsmells avatar

myfootsmells

New Zenner

Join Date:
Jul 2007
Posts:
17
Plugin Contributions:
0

Re: Product Names Being Truncated to 15 Characters

gjh42:

Did your template come from Tempate Monster? Do you have a "Details" button instead of an add to cart or more info button?
If so, I'm 99 44/100ths percent sure that the template has hard-coded a truncation of the product name, using custom TM constants, variables and functions. It may or may not be in /includes/modules/your_template/product_listing.php.

Found it it was hard coded in. Thanks

27 Jan 2009, 2:42 PM
#6
simondale123 avatar

simondale123

New Zenner

Join Date:
Jun 2008
Posts:
60
Plugin Contributions:
0

Re: Product Names Being Truncated to 15 Characters

I know this is an old thread but it helped me and I thought the following might help someone else:

I found the same problem in my template (from Template Monster). Mine was limited to 40 chars. I found the offending code in /includes/modules/your_template/common/tpl_tmfuncs.php in the function tm_head()

The code was:

<div class="title2_txt">'.substr($text,0,40).'<br>

I changed this to 75 but the admin interface only allows you to enter 64 chars so you'll never reach that.

27 Jan 2009, 7:46 PM
#7
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Product Names Being Truncated to 15 Characters

You have to make a change in phpmyadmin:

http://www.zen-cart.com/forum/showthread.php?t=114971