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 21 to 24 of 24
This thread is locked. New replies are disabled.
21 Oct 2008, 2:18 PM
#21
gjh42 avatar

gjh42

Black Belt

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

Product Description text length on listings?

It would certainly be a good start. If there is still a problem, we'll have to figure it out from there, but standard HTML works for most people.

12 Nov 2008, 10:57 PM
#22
coffee_granules avatar

coffee_granules

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: Product Description text length on listings?

I encountered a bad problem with the text length that has been a regular problem for me in a number of cart areas.

The problem is that the settings in admin are not being applied and changes to the database are not working, eg: set the text length field to 0 (ie: turn it off) and nothing happens - the change is completely ignored.

If this is affecting your full product listings page you can kill the product description by amending the tpl_modules_products_all_listing.php file.

Open the file and find the following:

      if (PRODUCT_ALL_LIST_DESCRIPTION > '0') {
        $disp_text = zen_get_products_description($products_all->fields['products_id']);
        $disp_text = zen_clean_html($disp_text);

...and amend it to:

      if (PRODUCT_ALL_LIST_DESCRIPTION > '0') {
        $disp_text = zen_get_products_description($products_all->fields['products_id']);
        $disp_text = zen_clean_html();

Don't forget that the amended file should be uploaded to your custom_template (overides) folder.

12 Nov 2008, 11:28 PM
#23
coffee_granules avatar

coffee_granules

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: Product Description text length on listings?

:oops: sorry... that change does not work unless you have corrupted code in your product_listing.php file...

...in which case you need to sort out your product_listing.php file, not amend the template file... :smile:

19 Aug 2009, 1:45 AM
#24
fxn2 avatar

fxn2

New Zenner

Join Date:
May 2009
Posts:
6
Plugin Contributions:
0

Re: Product Description text length on listings?

I also encountered the same issues when I tried to enter a longer descriptions into the product descriptions. It took me a couple of hours to figure out what is going on. This is what I did and it worked for me:

  1. In order to change the length of the description so that your long product description does not get truncated, change your product_description type to "longtext" in the your DB definition. If you use php go to myphp admin and under product_description there should also be a field called product description and change the type.

  2. What is being discussed in regards to changing the value of ADMIN>>>CONFIGURATION>>>PRODUCT LISTING>>> woks for defining the length of the product description underneath a category (#1 above lengthen the actual product description).