If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / I Need to correct advanced search results spacing.

I Need to correct advanced search results spacing.

Locked

Started by member on 25 Apr 2008, 6:15 PM · Views: 922

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Apr 2008, 6:15 PM
#1
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Post #1 by member

I am using the column_layout_grid_for_product_listing and column_divider_pro.

My products are set up as category (all styles) ->sub category (all available colors in one style) -> single product.

When the sub category (all available colors of the style) is shown in this order, picture then title and then price in that order the spacing and order are the way I want.

The problem is the advanced search results (which use the same templates) (3 columns per row) are shown in this order, Picture, price, big empty space where the item title would be (except I have it as display none in the css) and then the description.

I would like it to be description (which is the same as my title) and then price but I can't see where to change the order.

I found out that if I add .listingDescription {margin-top: -5em; margin-bottom: 3em;} to the css, it closes the big empty space (it is still price, then desc -- but I can live with that.)

BUT if I make the above change to the css, then the sub category (all available colors of the style) page ends up with the title on top of the picture.

This line in product_listing php is causing the problem:

<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>';

I don't have a live url yet, I am using a local server.

Is the confusing enough?

Can anyone with more experience give me any pointers? Thanks!

25 Apr 2008, 7:59 PM
#2
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Post #2 by member

I was not real clear, the problem is the large space in the search results. There is no clear end of one product and start of the next because it has similar spaces between price and the description.

And the same amount between the description for 1 product and the picture for the next, no clear definition of what belongs with which picture.

Sorry!

25 Apr 2008, 10:17 PM
#3
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Post #3 by member

how could I do an inline css for this page? tpl_advanced_search_result_default.php

Would that work?