Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

productListing


sopretty

Recommended Posts

Posted

When I look at the source code of both the category pages and in the shopping cart, the same class appears - class="productListing". It shows up as <table class="productListing" border="0" cellpadding="2" cellspacing="0" width="100%">

 

Where does this class come from? The only place I actually see it is in the stylesheet but I can't for the life of me find it anywhere in any other osCommerce file. How does this class seemingly magically appear?

 

I need to know because I have given it a background colour and border in the stylesheet that looks great for the table that shows the items in your cart (in shopping_cart.php) but is not what I want for the table around my product listings in the category pages (index.php?cPath=22). This productListing class somehow appears for both and I would like to change one of them to a different class. Any idea how to do this?

 

Thanks! :o)

Posted

Oops! This is probably not the most appropriate forum to post this in. I would delete it an move it to another category but I don't see a delete option... sorry!

Posted

Hi, I am still unable to figure out how to change one of these .productListings to a different class. Anyone have any ideas on how to do this or where this class originates? Thank you! :)

Posted

Open the includes/classes/boxes.php file and do a search. It's located there.

 

Chin

Posted
Open the includes/classes/boxes.php file and do a search. It's located there.

 

Chin

 

There it is, thank you!

 

Ok, the Windows XP search function officially sucks. I just did another search, actually cutting and pasting class="productListing" straight from the boxes.php into an all files and folders search and it still said this didn't exist!

 

Thanks so much, Chin, for pointing me in the right direction. :)

Posted

The search function in Windows (XP and other versions) look for file and folder names, not coding in that file. Since class="productListing' is a section of code, Windows Search couldnt' find it.

 

To locate classes in a file that you aren't sure of the file name, do a View Source and see where that class pops up. Since "productListing" shows in the HTML code in the boxes areas, it would be in the boxes.php file. class="pageHeading" shows up in most all pages where it shows index.php in the address bar, so it's mainly on that page.

 

Basically, just search the file contents, give up on Windows Search.

Posted
The search function in Windows (XP and other versions) look for file and folder names, not coding in that file. Since class="productListing' is a section of code, Windows Search couldnt' find it.

Ahh, I thought it searched the contents, too. Shows what I know... you know, very little. ;) It's too bad, that would be handy feature. Thanks so much for taking the time to explain this to me.

 

I used NoteTab's search function after you posted this morning and it found it (should have tried this the other day obviously). I went into a folder, opened all the files in there at once and searched all the open ones at once. A tiny bit of work but at least it was effective.

Archived

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

×
×
  • Create New...