delaen Posted September 25, 2002 Posted September 25, 2002 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.
Mark Evans Posted September 25, 2002 Posted September 25, 2002 (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)
delaen Posted September 25, 2002 Author Posted September 25, 2002 (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.
delaen Posted September 25, 2002 Author Posted September 25, 2002 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
Paul_C Posted September 25, 2002 Posted September 25, 2002 hehehe... This is a fun one to play with. Check out my Description in Product Listing Hack and see the areas I changed there. This should help you find the flow of info that's being passed around. Hope this helps! "It's a damn poor mind that can only think of one way to spell a word." -- Andrew Jackson
delaen Posted September 26, 2002 Author Posted September 26, 2002 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 :)
delaen Posted September 26, 2002 Author Posted September 26, 2002 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.
Ian Posted September 26, 2002 Posted September 26, 2002 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.
delaen Posted September 26, 2002 Author Posted September 26, 2002 Well, that was pretty easy. You rock :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.