Forums / Templates, Stylesheets, Page Layout / truncated product descriptions in new product listings

truncated product descriptions in new product listings

Started by discoverytdi on 29 Jan 2012, 12:16 PM · Views: 1,450

Results 1 to 16 of 16
29 Jan 2012, 12:16 PM
#1
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

truncated product descriptions in new product listings

Notice that my product descriptions are truncated on the new products listings I know that some of the descriptions are rather long but they need to be tried altering through admin but no change is there any way to resolve this.
Thanks
Peter
http://www.rvsolarsystems.co.uk/index.php?main_page=

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 1:22 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

admin/Configuration/New Listing/Display Product Description ... enter number of characters you need.

Rob

Breakfast: the most important donut of the day.

29 Jan 2012, 1:28 PM
#3
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

rstevenson:

admin/Configuration/New Listing/Display Product Description ... enter number of characters you need.

Rob

already tried that set it to 1000 no change got a feeling it's hard coded somewhere just can't find where :frusty:

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 1:53 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: truncated product descriptions in new product listings

According to OO Writer's word count, they are truncating at 1000 characters. If you need them longer, try 1500 or 2000.

29 Jan 2012, 1:54 PM
#5
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

blonde alert meant product name not description

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 6:33 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,131
Plugin Contributions:
56

Re: truncated product descriptions in new product listings

discoverytdi:

blonde alert meant product name not description

The length of the product names is specified in the database, so you'll need to use your phpMyAdmin (or cPanel interface) to change those. There's a good description here.

29 Jan 2012, 6:55 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: truncated product descriptions in new product listings

NOTE: be careful ...

Are you wanting to actually truncate the database field? Or are you wanting to truncate the display of the database field? :unsure:

Sounds like this one is to truncate the display not the content of the database field ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Jan 2012, 8:36 PM
#8
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

lat9:

The length of the product names is specified in the database, so you'll need to use your phpMyAdmin (or cPanel interface) to change those. There's a good description here.

I'd done that when I first installed zencart think it's hard coded somewhere

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 8:40 PM
#9
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

Ajeh:

NOTE: be careful ...

Are you wanting to actually truncate the database field? Or are you wanting to truncate the display of the database field? :unsure:

Sounds like this one is to truncate the display not the content of the database field ...
the product names are only truncated in certain places like the new products January
Think I'll give up on this it's obviously something to do with the template as whatever I alter has no effect and if I carry on I'll mess something up.

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 9:08 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: truncated product descriptions in new product listings

An example of a product name that has been truncated, including what you want it to read would help.

29 Jan 2012, 9:16 PM
#11
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

stevesh:

An example of a product name that has been truncated, including what you want it to read would help.

If you look at the main page in the new products for January any description over about 38 characters long it being truncated by periods ...
http://www.rvsolarsystems.co.uk/
you may have to refresh the page to find an example

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 11:33 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: truncated product descriptions in new product listings

That's how your template designer designed the template. It would be most efficient to contact them for help fixing it to suit your needs specifically.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Jan 2012, 11:53 PM
#13
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

DrByte:

That's how your template designer designed the template. It would be most efficient to contact them for help fixing it to suit your needs specifically.
Thought so I can live with it just being picky

What ever your doing remember to KISS ( Keep It Simple Stupid )

30 Jan 2012, 12:45 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: truncated product descriptions in new product listings

You might be able to compare their custom version of /includes/modules/YOUR_TEMPLATE/new_products.php against the original /includes/modules/new_products.php file, to see what they've changed. They might have added calls to zen_trunc_string() or might have simply used less efficient substr() instead.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Jan 2012, 1:31 AM
#15
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: truncated product descriptions in new product listings

DrByte:

You might be able to compare their custom version of /includes/modules/YOUR_TEMPLATE/new_products.php against the original /includes/modules/new_products.php file, to see what they've changed. They might have added calls to zen_trunc_string() or might have simply used less efficient substr() instead.

that did it
substr($new_products->fields['products_name'], 0, 40) . (strlen($new_products->fields['products_name']) > 40 ? "..." : "") . '</a></div>
just increased the figures in red. or is there a better way of coding it cheers again

What ever your doing remember to KISS ( Keep It Simple Stupid )

30 Jan 2012, 1:47 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: truncated product descriptions in new product listings

That'll do.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.