Current User: Guest
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






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

theme questions – gridfront

UserPost

12:05 pm
February 2, 2009


dfobare

Guest

 
1

1) Can you manipulate the number of columns in a grid?

2) Does a grid have to have perfectly aligned rows? Is it possible to have grid spots of varying length inside a row?

3) Some grid spots I'd like to have a small banner in from an affiliate, others just plain text(seasonal tips, etc), while others I'd like to have text with an affilate link, etc. Possible? Anyone doing something like that?

12:09 am
February 5, 2009


dfobare

Guest

 
2

Anyone?

2:53 am
February 5, 2009


yiorgos

Member

posts 127

 
3

Hi dfobare!

You can probably do all the things you want as long as you can change the code. Some thing are more easy than others and some things might take too much effort.

I know for sure that you can change the number of columns in the grid because I did it. Regarding grid spots of varying length, I am not sure….you'ed probably need to fiddle a lot to do that.

About question 3, the storefront takes the photos you have specified for each product and creates the grid with thumbnails, so again I am not sure what you can do for that.

10:39 am
February 10, 2009


dfobare

Guest

 
4

Anyone?

1:59 pm
February 10, 2009


Market Admin

Admin

posts 4756

 
5

Since what you're asking falls into the "customization" category, I can't offer the code to everything you'll need to make it happen.   (Since we'd have to spend some time customizing a test installation in order to tell you what the code was)

But…  I can tell you that the file you're going to be working with to make the changes is "frontdoor.php".

At or around line #14 you can set the number of total products to show. 

$wp_query->query('category_name=products&showposts=24'.'&paged='.$paged);

Ideally, you'll want it to have that number set as a multiple of the # of columns you have.  The stock version shows 6 columns, so you'll see that the initial value is 24 (24 = 6 x 4).

At or around line #45, you can set the number of columns.  The line you're looking for is:

<?php if ($i % 6 == 0)

You'll change the "6" to however many columns you want.

Hopefully this helps.


Reply to Topic:
theme questions – gridfront

Guest Name (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
1 + 11
   



 

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