Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Index Products listing


njtermite

Recommended Posts

Hello,

Is there any easy way to get the products out of the table, so that I can create my own custom layout for the product listings?

 

Example would be…

http://demo.oscommerce.com/index.php?cPath=1_4

 

and change the format to something like this… (but inserting the php code to get the data)

<table border="1" width="100%">
 <tr>
<td width="20%"> image</td>
<td width="20%">product type
  <p>hardware</p>
  <p>Manufacture</p>
  <p>[make] make_info</p>
  <p>[model] model_info</td>
<td width="20%">description
  <p>description_content</td>
<td width="20%">additional options
  <p>options_content</td>
<td width="20%">sale price
  <p>$xxs_sale_ price</p>
</td>
<td width="20%">add to cart</td>
 </tr>
</table>

 

Any pointers?

Thanks,

Mark

Link to comment
Share on other sites

Turn off the new product of the month

 

 

In catalog/index.php comment out (put // in front)

 

CODE

 

//include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);

 

 

that line is at 2 places, around line 121 and 313

 

Then in catalog/includes/yourlanguage/index.php where it says define text you can add your custom content.

Link to comment
Share on other sites

Turn off the new product of the month

In catalog/index.php comment out (put // in front)

 

CODE

 

//include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);

that line is at 2 places, around line 121 and 313

 

Then in catalog/includes/yourlanguage/index.php where it says define text you can add your custom content.

 

 

Hi Lola,

I think you misunderstood what I was trying to do. I’m trying to change the format of when the products are listed; example would be the graphic cards in the default install.

 

Thanks,

Mark

Link to comment
Share on other sites

Hi Lola,

I has nothing to do with the new products.

 

I'm trying to change the layout of the products instead of them showing up in columns when you click on a category.

 

What I meant by graphic cards in default install… would be this link here…

http://demo.oscommerce.com/index.php?cPath=1_4

Trying to show an example how the products are displaying in columns (which I don’t want)

 

Thanks,

Mark

Link to comment
Share on other sites

The file you will need to change is catalog/includes/modules/product_listing.php

here is a contribution that makes changes. you might get an idea how to change it like you want by looking at the code

http://www.oscommerce.com/community/contributions,112/

do a search in contributions for "listing" and you will get more ways to change it

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

Archived

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

×
×
  • Create New...