You are here:  » Search Results Box View


Search Results Box View

Submitted by paullas on Sat, 2013-04-06 12:32 in

hi David.

Can i ask how to get the search results in box View like this:

IMAGE
TITLE
PRICE
MORE INFORMATION

4 in a row and 3 rows.

Thanks

Paul

Submitted by support on Sun, 2013-04-07 08:41

Hello Paul,

Sure - to start with, copy the default Featured Products Before / Each / After templates as the Search Results Before / Each / After templates.

That will give you the block style layout, and then to have 4 results per row, add to the end of the new Search Results / Each template:

%IF_EVERY4%
</tr><tr>
%ENDIF_EVERY2%

Finally, to get 4 rows exactly, change the plugin setting value for $config_resultsPerPage (wp-admin > Settings > PriceTapestry.org) to 12.

Cheers,
David.
--
PriceTapestry.com

Submitted by paullas on Sun, 2013-04-07 10:58

hi david

i tried the above but as you can see here {link saved} it isnt right?

any ideas whats happened.

thanks

paul

Submitted by support on Mon, 2013-04-08 07:11

Hi Paul,

Ah sorry about that - the reviews code isn't used by the search results HTML generation, so the output you are seeing will be being generated by the following code in your new Search Results / Each template (wp-admin > Settings > PriceTapestry.org)

%IF_USEINTERACTION%
  <small>
  %IF_REVIEW_COUNT%
    %RATING% <a href='%REVIEW_URL%'>%REVIEW_COUNT% Reviews</a>
  %ELSE_REVIEW_COUNT%
    <a href='%REVIEW_URL%'>Review This Product</a>
  %ENDIF_REVIEW_COUNT%
  <br />
  </small>
%ENDIF_USEINTERACTION%

If you deleted the above code from the template, the results will then display as expected (although I notice your $config_resultsPerPage is still set to 10 so the last row is not full). However, if you wanted to add support for replacement out of the reviews links in the search results HTML, just let me know and I'll describe the changes for that...

Cheers,
David.
--
PriceTapestry.com