Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can i move it


mohsen1

Recommended Posts

That's the whole point of the forum!

 

To the OP: You really need to optimize your images; about 7mb on that page.

I know that. However; when I made a reply to the previous post on this topic I was P.M.'d asking for help. I sent the answer but before I could get it to them The topic was re-posted.

here is the solution I came up with. Probable a better way but it works.

This is a contribution so it will not work on anything else

in catelog/includes/modules/new_products.php line 41

	if  ( ($col == 1 && $row == 0) || ($col == 1 && $row == 2)){

change to

	if  ( ($col == 1 && $row == 0) || ($col == 1 && $row == 2) || ($col == 1 && $row == 3)|| ($col == 1 && $row == 4)){

then in admin section -configuration- maximum values- new products modules change the value to a multiple of 4. 12 will give you 3 rows of 2 products each.

16 is 4 rows of 2 products each.

If you need to add more rows look at the code changes and you can see how I added the row numbers with more code for || ($col==1 && $row== next increment).

I don't know why it acts this way but it works.

I can't program but I can hack.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

I know that. However; when I made a reply to the previous post on this topic I was P.M.'d asking for help. I sent the answer but before I could get it to them The topic was re-posted.

here is the solution I came up with. Probable a better way but it works.

This is a contribution so it will not work on anything else

in catelog/includes/modules/new_products.php line 41

	if  ( ($col == 1 && $row == 0) || ($col == 1 && $row == 2)){

change to

	if  ( ($col == 1 && $row == 0) || ($col == 1 && $row == 2) || ($col == 1 && $row == 3)|| ($col == 1 && $row == 4)){

then in admin section -configuration- maximum values- new products modules change the value to a multiple of 4. 12 will give you 3 rows of 2 products each.

16 is 4 rows of 2 products each.

If you need to add more rows look at the code changes and you can see how I added the row numbers with more code for || ($col==1 && $row== next increment).

I don't know why it acts this way but it works.

I can't program but I can hack.

 

Thank you it works perfect

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...