A A A

Please consider registering
guest

Log In Register

Login form protected by Login LockDown.


Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




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

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Storefront: show categories, specify display order
September 24, 2009
12:20 pm
Member
Forum Posts: 8
Member Since:
June 20, 2009
Offline

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?

September 24, 2009
1:51 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

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.

September 25, 2009
10:54 am
Member
Forum Posts: 8
Member Since:
June 20, 2009
Offline

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.

September 25, 2009
10:58 am
Member
Forum Posts: 8
Member Since:
June 20, 2009
Offline

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.

September 25, 2009
11:07 am
Member
Forum Posts: 8
Member Since:
June 20, 2009
Offline

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

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

September 25, 2009
1:06 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

You're welcome.

Forum Timezone: UTC 0

Most Users Ever Online: 40

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

icy1: 2371

wreed06: 175

laurie390: 168

StitchTek Services, LLC: 144

boutiqueelliette: 130

yiorgos: 127

Member Stats:

Guest Posters: 428

Members: 2252

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 2983

Posts: 16042

Moderators: Market Admin (5051)

Administrators: Market Admin (5051)

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