Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

limit number of columns in new_products.php


Recommended Posts

Hi there,

 

Does anybody know how to limit the number of columns in new_products.php? I want to display only 2 columns per row instead of the standard 3 columns, because other wise my shop is getting to wide.

 

I've searched the complete admin-section for it, but I can't find anything where I can change the number of columns, only how much items to display.

 

Kind regards,

 

MarcusDesign

Link to comment
Share on other sites

  • 2 months later...
Hi there,

 

Does anybody know how to limit the number of columns in new_products.php? I want to display only 2 columns per row instead of the standard 3 columns, because other wise my shop is getting to wide.

 

I've searched the complete admin-section for it, but I can't find anything where I can change the number of columns, only how much items to display.

 

Kind regards,

 

MarcusDesign

 

Hi, try the following:

 

in this file: catalog/includes/modules/new_products.php at about line 36 change the number "2" here to however many columns you want.

$col ++;

if ($col > 2) {

$col = 0;

$row ++;

}

}

 

1 = 1 column = 2 products per row

2 = 2 columns = 3 products per row

 

hope this helps

 

regards

 

Mark

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...