If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Changing the style of the search results

Changing the style of the search results

Locked

Started by neit on 1 Mar 2010, 9:41 AM · Views: 688

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Mar 2010, 9:41 AM
#1
neit avatar

neit

Zen Follower

Join Date:
Feb 2010
Posts:
140
Plugin Contributions:
0

Changing the style of the search results

I am looking to change the way the search results are returned.
I would like to get the full production description listed in the style
I want and remove the product title if its possible..

1 Mar 2010, 9:49 AM
#2
neit avatar

neit

Zen Follower

Join Date:
Feb 2010
Posts:
140
Plugin Contributions:
0

Re: Changing the style of the search results

I found out where to increase the description lenght and remove the Display Product Name but this seems to also remove the description which I need t keep.

1 Mar 2010, 10:57 AM
#3
neit avatar

neit

Zen Follower

Join Date:
Feb 2010
Posts:
140
Plugin Contributions:
0

Re: Changing the style of the search results

I found where to edit the file.
I edited product_listing.php at around line 100 at $lc_text

1 Mar 2010, 11:03 AM
#4
neit avatar

neit

Zen Follower

Join Date:
Feb 2010
Posts:
140
Plugin Contributions:
0

Re: Changing the style of the search results

The code also cleans out html tags from the description:

The code also cleans out html tags from the description:
zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) .

Can this be edited to display the description using my own
style. I am looking to use a table format only 2 to 3 rows
with about 6 headings

1 Mar 2010, 11:19 AM
#5
neit avatar

neit

Zen Follower

Join Date:
Feb 2010
Posts:
140
Plugin Contributions:
0

Re: Changing the style of the search results

I have changed it to

$lc_text = '<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>' ;

as a test and it appears to work as I require