You must be logged in to post


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Storefront: show categories, specify display order

UserPost

12:20 pm
September 24, 2009


dhuckabay

Member

posts 8

1

When I use the grid storefront page, I would like to also display the category tree and be able to specify the order in which the products appear in the grid. Is this possible?

1:51 pm
September 24, 2009


Market Admin

Admin

posts 4756

2

If you edit the "frontdoor.php" file, you will see a line that says:

<?php /* get_sidebar(); */ ?>

Change this line to:

<?php  get_sidebar();  ?>

And save the file.

Then, open up "functions.php" for editing.

Find around line #60 where it says:

#content .products .widgetcase { width: <?php echo $mkt_options['mkt_STYLE_WIDTH_PRODUCTS']-25; ?>px; } 
#content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']; ?>px; }
// The following is if widget sidebar is enabled 
//#content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']-$mkt_options['mkt_STYLE_WIDTH_PRODUCTS']; ?>px; }

Change the last three lines to this:

#content .products .widgetcase { width: <?php echo $mkt_options['mkt_STYLE_WIDTH_PRODUCTS']-25; ?>px; } 
//#content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']; ?>px; }
/* The following is if widget sidebar is enabled */
#content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']-$mkt_options['mkt_STYLE_WIDTH_PRODUCTS']; ?>px; }

Save the file, and I think that'll complete the sidebar change.

As far as ordering the products, the order is controlled in "frontdoor.php" on line #34.  "orderby" and "order" are the two settings.  You can change them to different things if you want.  You'll need to reference the support area of WordPress.org for what the values can be.

10:54 am
September 25, 2009


dhuckabay

Member

posts 8

3

Thanks for the reply. I found an easy way to order the products, both in the New Additions area and the Store page: Just manipulate the published date.

10:58 am
September 25, 2009


dhuckabay

Member

posts 8

4

BTW – the fix you gave does show the categories on the storefront page – but it deletes the items.

What I was lookign for was a way to show the categories to the right of the product thumbnails.

11:07 am
September 25, 2009


dhuckabay

Member

posts 8

5

Ok I left out the 2nd step (duh).

Did both edits, but the page looked better before. Thanks again for your help.

1:06 pm
September 25, 2009


Market Admin

Admin

posts 4756

6

You're welcome.



 

Market takes e-commerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.