You are here:  » Grid and List View search/category results


Grid and List View search/category results

Submitted by mikecdprice on Mon, 2011-03-28 21:11 in

Hello,

How would add a Grid and List view icons to the right to show the correct template if clicked on. Would I need two installations sharing the same PT database or is there another way? It is just nice to scroll to read details or browse like a visual shopper also.

How could this be done?

Thank you

Submitted by support on Tue, 2011-03-29 08:06

Hi Mike,

I've done this mod for a few users - if you would like to email me your search.php and html/searchresults.php i'll add merge the grid view version of search results and add a link to switch...

Cheers,
David.
--
PriceTapestry.com

Submitted by apoc on Sun, 2011-04-10 14:15

I would like a similar mod. Can we have the brands, merchants, categories and featured products to display in fixed width.

So for example the featured products would start a new line every 3 listings

The categories also seem to display in a rather long list. Can this also be broken up into columns, along with brands and merchants

thanks, TPH

Submitted by support on Mon, 2011-04-11 08:31

Hello TPH,

Sure - there is already a column feature for the A-Z lists built in. In html/atoz.php you can change the number of columns at line 3:

  $columns = 1;

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by apoc on Mon, 2011-04-11 13:27

Easy as that, fantastic. Where will I find out about the other features this file offers?

Thanks, TPH

Submitted by support on Tue, 2011-04-12 11:36

Hi TPH,

Number of columns is the only configurable parameter in the grid version of the serach results HTML module...

Cheers,
David.
--
PriceTapestry.com

Submitted by apoc on Thu, 2011-04-14 19:53

Hi David,

Do I also send you these two pages for you to apply the switch or is it published somewhere?

Thanks, TPH

Submitted by support on Fri, 2011-04-15 08:57

Hi,

I've posted the alternative versions to the downloads page for distributions 12/10B and 13/03A...

Cheers,
David.
--
PriceTapestry.com

Submitted by mikecdprice on Mon, 2013-07-29 18:29

Hello David,

Is it possible that if someone clicks on grid view or list view then all searches new in addition to pagination, search filters would still go to the selected preference for the user to browse. I noticed it defaults 'list view'

Thank you,
Michael

Submitted by support on Tue, 2013-07-30 08:38

Hi Michael,

You could persist the view by setting a cookie. In search.php look for the following code around line 12:

  $view = (isset($_GET["view"])?$_GET["view"]:"");

...and REPLACE with:

  $view = (isset($_GET["view"])?$_GET["view"]:
          (isset($_COOKIE["view"])?$_COOKIE["view"]:"")
          );
  setcookie("view",$view);

Cheers,
David.
--
PriceTapestry.com

Submitted by mikecdprice on Tue, 2013-07-30 16:30

Wonderful, Thank you

;)

Submitted by stonecold111 on Fri, 2013-08-16 10:44

Hi,
Is it applicable to the wordpress plugin?
I can't find this setting for the merchant list page.

Submitted by support on Fri, 2013-08-16 10:51

Hi,

The above applies to standalone Price Tapestry. I know i've already suggested changes so if you'd like to email me your latest version of pto_search.php I'll add similar code for the plugin for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by erv on Tue, 2015-03-31 09:52

Hi David,
I'm currently moving my existing PT site (V 13) to the new responsive layout, which so far is easier than i expected. I used the Grid-Version of the search results (as described above), especially for related products, and really liked it, is there a responsive version available somewhere?

thanks
erv

Submitted by support on Tue, 2015-03-31 10:48

Hello erv,

Sure - I have made a Grid / List version of the ResponsiveHTML version of html/searchresults.php, based on the Featured Products layout for grid view.

I know you have been using the script for a couple of years so in case your email address is no longer current if you could email me a copy of the associated top level search.php that you are using, I'll double check that it's setting the "view" parameter in the way expected and then I'll forward the new version to you...

Cheers,
David.
--
PriceTapestry.com

Submitted by Leo on Tue, 2015-03-31 12:37

Hi David,

Was searching for the same.
Can you send me the new grid version to?
Thanks!
Leo

Submitted by support on Tue, 2015-03-31 12:45

On its way!

Cheers,
David.
--
PriceTapestry.com