Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Front Page Rows


Syrsknight

Recommended Posts

Posted

Hi All,

I need alittle help with the collums and rows.. What I'm needing is the following:

 

When a visitor comes to the site instead of either 1 row of products or 3+, I need only 2 rows. This is in the middle of the index page of the site... I know that there is a way to make it show only a certain amount of rows of products I just can't remember how to do this. Any help would be greatly appreciated. Also, this is for a site that isn't heavily modified and is a new install. Thanks!

 

PS: The site is being developed at the following url and is a demo only:

My Site

 

I need the site to look as close to this site as possible. This is done with xcart (BTW)

 

main site

Posted

Not sure exactly what you want but lets try this.

In your admin section click on configuration then maximum values. You should see New Products Module. That determines how many products are to be displayed. The default is 3 products to a row. If you have 9 products and you set New Products Module to 9 then you will have 3 row to equal your 9 products.

 

To change how many products show in a row then you need to edit

catalog/includes/modules/new_products.php

Look for this section

	$col ++;
if ($col > 2) {
  $col = 0;
  $row ++;
}

See if ($col > 2)? That sets it to 3 products in a row. If you only want 2 then change that to a 1 like so

	$col ++;
if ($col > 1) {
  $col = 0;
  $row ++;
}

How ever many you want in a row set that number to one less than you want.

 

Hope that helps

Posted
Not sure exactly what you want but lets try this.

In your admin section click on configuration then maximum values. You should see New Products Module. That determines how many products are to be displayed. The default is 3 products to a row. If you have 9 products and you set New Products Module to 9 then you will have 3 row to equal your 9 products.

 

To change how many products show in a row then you need to edit

catalog/includes/modules/new_products.php

Look for this section

	$col ++;
if ($col > 2) {
  $col = 0;
  $row ++;
}

See if ($col > 2)? That sets it to 3 products in a row. If you only want 2 then change that to a 1 like so

	$col ++;
if ($col > 1) {
  $col = 0;
  $row ++;
}

How ever many you want in a row set that number to one less than you want.

 

Hope that helps

 

 

Hey Thanks!! I will try this now... I'll let ya know... Thanks again!

Posted

Hello,

I taken a look at the coding and found where you were talking about and it was already set the way that you had it in your coding.. any other idea's?

Thanks again for any help...

Posted

What is it you are trying to do?

Posted
What is it you are trying to do?

 

Take a look at EXAMPLE SITE

 

I'm trying to get my new site to look like this one. (click on example site). The cart on this site is using xcart and I'm trying to get an oscommerce site to look as close to the xcart layout as possible. I only want 2 products per line and only two columns per page.

Posted

You mean you want 2 rows and 2 columns with a total of no more than 4 pictures.

In your admin go to configuration then maximum values and set new products model to 4.

Are you sure you set your catalog/includes/modules/new_products.php correctly? Post that code so we can see it.

Posted
You mean you want 2 rows and 2 columns with a total of no more than 4 pictures.

In your admin go to configuration then maximum values and set new products model to 4.

Are you sure you set your catalog/includes/modules/new_products.php correctly? Post that code so we can see it.

 

 

Hi.

Yes I only want 2 products showing in 2 columns

 

Like this

product 1 product 2

product 1 product 2

 

Here is what the coding is showing:

CODE
$col ++;
if ($col > 2) {
  $col = 0;
  $row ++;
}

CODE
$col ++;
if ($col > 2) {
  $col = 0;
  $row ++;
}

Posted

You do only have that in there once right? To get only 2 pictures per row change to this

 

	if ($col > 1) {

 

You need to specify one less than you actualy want. You may also want to make one other mod in that same file.

Find a couple of lines above

 

	$info_box_contents[$row][$col] = array('align' => 'center',
									   'params' => 'class="smallText" width="33%" valign="top"',

 

Change widthe="33%" to width="50%"

Posted

Hi, I finally got it to look correctly.. thanks for the help... now I have only one more question.. I have searched the entire script for how to delete the borders that is around the various boxes.. that is without losing the format.. like I said please take a look at the example site above, just in case here is the url as well:

 

http://www.gbgemstones.com/xcart/home.php

 

I need the site that I'm working on... also who would I change the color of the catagories head text and the blue strip under the header image... Here you can take a look at the site that I'm working on:

 

http://www.carolanes.com/osc/index.php

 

if you would take a look at the site that I'm working on you can see what I'm talking about with the thin blue strip with the words "top" on the left site and then "my account, cart etc" on the right.. I need that taken off as well or atleast to match the header in color.. I can't find these things to change them... Any idea's?

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...