Forums / Basic Configuration / product name cut off in display

product name cut off in display

Locked

Views: 1,473

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
28 May 2008, 6:54 PM
#1
treewoman avatar

treewoman

New Zenner

Join Date:
Apr 2007
Posts:
26
Plugin Contributions:
0

product name cut off in display

I searched and searched but cannot find the answer here.

My product name is not shown in full. I removed the right column but the product name did not lengthen. Can someone please help?

I am using 1.3.8.

Here is an example:
http://wmmedicalsupply.biz/index.php?main_page=index&cPath=18_22

The product name should finish with shoulder pulley but it is cut off after the sho.

Thanks!

28 May 2008, 7:34 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: product name cut off in display

Template Monster strikes again!
There is a limit on product name length in the database, but it is 64 characters.
TM has seen fit to limit the display as you see.

They have also set a short cutoff of description length which ignores word divisions, unlike the standard ZC behavior of truncating to whole words.

28 May 2008, 7:37 PM
#3
treewoman avatar

treewoman

New Zenner

Join Date:
Apr 2007
Posts:
26
Plugin Contributions:
0

Re: product name cut off in display

So this means I can't do anything about it? Can I change the length anywhere? This looks horrible. My client is going to be angry if I cannot get this fixed.:no:

28 May 2008, 7:50 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: product name cut off in display

It should be fixable, but TM changes the code so much that we can't advise where to do it.

If you search in admin > Tools > Developers Toolkit for main_cell_h_text, you should find the file where this output is built. Post that file between ```
[php] and [/php]


It's really TM's problem, but they won't help fix it. Complain to them anyway... maybe eventually they will get tired of selling defective products.
28 May 2008, 8:06 PM
#5
treewoman avatar

treewoman

New Zenner

Join Date:
Apr 2007
Posts:
26
Plugin Contributions:
0

Re: product name cut off in display

I did attempt to contact them but obviously they just ignored me.

I searched and found these (I omitted the beginning names of these results for security reasons) -

includes/templates/delta-853/common/tpl_tmfuncs.php
Line #18 : <div class="main_cell_h_text">'.substr($name,0,20).'</div>

Line #67 : <div class="main_cell_h_text">'.substr($name,0,20).'</div>

includes/templates/delta-853/templates/tpl_specials_default.php
Line #110 : <div class="main_cell_h_text">'.substr($tm_name,0,20).'</div>

28 May 2008, 8:48 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: product name cut off in display

OK, looks like you've found the culprit.

The substr($name,0,20) is a PHP function that in this case uses only the first 20 characters of $name (starting at 0 - the beginning). Try changing the 20 and see what results you get.

29 May 2008, 1:50 AM
#7
treewoman avatar

treewoman

New Zenner

Join Date:
Apr 2007
Posts:
26
Plugin Contributions:
0

Re: product name cut off in display

YOU ARE THE BEST! I changed the 20's to 50's and the whole name displayed. Thank you, thank you, thank you!!