Forums / Setting Up Categories, Products, Attributes / Product Listing and Product Description formating

Product Listing and Product Description formating

Views: 814

Results 1 to 4 of 4
12 Sep 2012, 3:42 AM
#1
iqart avatar

iqart

New Zenner

Join Date:
May 2012
Location:
Melbourne, Australia
Posts:
6
Plugin Contributions:
0

Product Listing and Product Description formating

I am hoping someone can help me with this one.

I have TinyMCE installed in my zencart v1.5.0 and I have it selected as the text editor for my Categories/Products.

I am using AV product grid at the moment but the following problem was also there before I changed to this layout.

With the general product listing my product description does not react to the formatting applied to it but when you click on the image/product to get the full description the formatting is applied. The screen shots below should give you the idea. Basically in the listing on the left there is no space between the word 'genuine' and 'card'
Attachment 11122 Attachment 11121

I have set the 'Display Product Description' , under Configuration, to 2000 to allow for the markups but it hasn't seemed to change anything

Any ideas?

12 Sep 2012, 4:56 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Product Listing and Product Description formating

The stock product listing disables HTML in the description, so your formatting will be ignored. The mod you are using apparently also does this. There is a simple coding fix to allow HTML in the listing description; search the forum for zen_clean_html. You will need to adapt it to the code in your mod file.

12 Sep 2012, 5:47 AM
#3
iqart avatar

iqart

New Zenner

Join Date:
May 2012
Location:
Melbourne, Australia
Posts:
6
Plugin Contributions:
0

Re: Product Listing and Product Description formating

Thanks for that.
I saw that post and tried copying and pasting the code that was there but it made no difference.

This is what mine currently has. Not really sure where to go from here or what to change.
Any advice would be appreciated

   ```php

           case 'PRODUCT_LIST_NAME':
    $lc_align = '';
    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id'] > 0) ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
    break;
12 Sep 2012, 3:10 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Product Listing and Product Description formating

In the part of that line which has php zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing comment out the zen_clean_html like /zen_clean_html/ ```php
zen_trunc_string(/zen_clean_html/(stripslashes(zen_get_products_description($listing