Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Just need a little help locating something


delaen

Recommended Posts

I want to change the way the products are displayed when you view a category. I was looking to change them to resemble the way products are displayed when you view new products. Where would I go about changing the layout of this? (I.E. On what page would I find the code to do so?)

 

For whatever reason, I can't seem to find this. I would greatly appreciate any help.

Link to comment
Share on other sites

(I.E. On what page would I find the code to do so?).

 

The category display is all done in default.php :)

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

(I.E. On what page would I find the code to do so?).

 

The category display is all done in default.php :)

 

I guess that makes sense...with that being the URL and all :)

 

That narrows it down a little bit. Thanks a lot.

Link to comment
Share on other sites

Wait, I guess I'm still lost anyway :P

 

So to change the layout in which the products are listed on the category page the only things I have to change are located in default.php?

 

You wouldn't be able to point me towards a point in the file where that comes would you? :D

Link to comment
Share on other sites

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Link to comment
Share on other sites

Yes, that did help me out a little bit, thank you :)

 

I managed to find the formatting part I was looking for in product_listing_col.php. And I have each individual product displaying the way I want. The only problem I still have left is finding where they are layed out in reference to each other.

 

I'm not sure exactly how to explain this, but right now it looks something like

 

product         product         product      

product         product         product

 

What I want is to find where I can change the table on the categories page to lay out like this

 

product



product



product

 

If that makes any sense :)

Link to comment
Share on other sites

Eh, I'm a dope :P

 

After screwing with it for a good 10 hours, it finally dawned on me that I started using Ian's "loaded" version, and the product listing is different from normal.

 

I got it to kind of look the way I wanted, but there were some extra <td>'s and <tr>'s thrown in there that were screwing it up. I guess I'll just have to stick with what I have, because I'm clueless :)

 

Thanks for your help anyway guys.

Link to comment
Share on other sites

By default oscommerce displays product listing in a single row format. However as you have my product listing in col's mod it don't :(

 

If you want to change back to the default method (one product per row)

then you need to edit application_top.php. and change

DEFINE('FILENAME_PRODUCT_LISTING', 'product_listing_col.php');

 

to

 

DEFINE('FILENAME_PRODUCT_LISTING', 'product_listing.php');

 

:thumbsup:

Trust me, I'm an Accountant.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...