Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make items display across not down


jaycom

Recommended Posts

Posted

Hello all,

 

I have a small problem.

 

A client has requested that I make their products display with the pictures only, no other text. I have done this, but they all go one underneath eachother instead of left-right then drop when the row is full (she would only like 3 per row however).

 

Can anyone please explain how to do this or provide a modified file doing this?

 

The site is at http://paulinenicholbridalveils.com/shop/index.php?cPath=157 so you can see the problem first hand.

 

Thank you in advance.

 

Jaycom

Posted
Hello all,

 

I have a small problem.

 

A client has requested that I make their products display with the pictures only, no other text. I have done this, but they all go one underneath eachother instead of left-right then drop when the row is full (she would only like 3 per row however).

 

Can anyone please explain how to do this or provide a modified file doing this?

 

The site is at http://paulinenicholbridalveils.com/shop/index.php?cPath=157 so you can see the problem first hand.

 

Thank you in advance.

 

Jaycom

 

this is happening because your code is generating a table 'row' for each product. you have:

 

tr

td ...product image 1 .. /td

/tr

tr

td ...product image 2 .. /td

/tr

 

and you want

tr

td ... product image 1.. /td

td ... product image 2.. /td

/tr

 

take another look at your original code. it probably had some logic to determine when to end the row (output the /tr tag) after every third product and that code is no longer there.

Posted
this is happening because your code is generating a table 'row' for each product. you have:

 

tr

td ...product image 1 .. /td

/tr

tr

td ...product image 2 .. /td

/tr

 

and you want

tr

td ... product image 1.. /td

td ... product image 2.. /td

/tr

 

take another look at your original code. it probably had some logic to determine when to end the row (output the /tr tag) after every third product and that code is no longer there.

 

Which file is this code going to be in? I spent hours looking for something like this and I couldn't find anything so any help as to the direction I should be looking in is appreciated.

Posted
Which file is this code going to be in? I spent hours looking for something like this and I couldn't find anything so any help as to the direction I should be looking in is appreciated.

 

i think it'll be in includes/modules/product_listing.php. have you modified this as part of the work you are doing? it'd most likely be in one of the files you've already modified.

Posted

you should be able to correct this problem from the admin control panel by editing the number of products per row. In your case the setting is probably on 1. This is much easier to do than trying to manipulate the code. B)

Archived

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

×
×
  • Create New...