Guest Posted January 2, 2003 Share Posted January 2, 2003 Hi, Can someone please tell me how to remove the style around the manufacturer box? http://www.blessedbaby.biz/catalog/ I am trying to move the search and manufacturer box to the top. I got the search box there without incident. The long search box on the right is the form for the manufacturer box and I would use that except that you cannot add manufacturers to the admin area and have it show up in that form. We need to be able to add manufacturers to the admin and have them show up in the manufacturer search box. Is there an easier way to move this manufacturer code elsewhere? Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2003 Share Posted January 2, 2003 anyone know how to do this? Link to comment Share on other sites More sharing options...
tresseh Posted January 3, 2003 Share Posted January 3, 2003 Melinda - in order to remove the style from the box, i'd recommend creating a new "box class" in catalog/includes/classes/boxes.php to something along the lines of: class plainBox extends tableBox { function plainBox($contents) { $this->table_data_parameters = 'class="plainBox"'; $this->tableBox($contents, true); } } Then in your stylesheet, define a new class called "plainBox" and assign the settings you want for your newly positioned manufacturers box. Then change your catalogincludesboxesmanufacturers.php so that the last line: new infoBox($info_box_contents); ?> </td> </tr> <!-- manufacturers_eof //--> Looks like this: new plainBox($info_box_contents); ?> </td> </tr> <!-- manufacturers_eof //--> Hopefully this helps you! Regards, Jay Regards, Jay. Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2003 Share Posted January 3, 2003 Jay, Can I email you these files to look at? I made the changes and I must have something wrong. www.blessedbaby.biz/catalog/ I have the manufacturers code in the header. Does that make a difference? Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2003 Share Posted January 3, 2003 IT WORKED! :wink: :D :lol: I had it in the wrong file :( Link to comment Share on other sites More sharing options...
tresseh Posted January 3, 2003 Share Posted January 3, 2003 :oha: Your welcome! :o Regards, Jay. Link to comment Share on other sites More sharing options...
Guest Posted January 5, 2003 Share Posted January 5, 2003 i have been attempting to do this as well (only adding the list in the footer) and I keep getting this error: Fatal error: Cannot instantiate non-existent class: plainbox in /gifts-bargains-more.com/httpdocs/catalog/includes/footer.php on line 64 (line 64 from footer: new plainBox($info_box_contents); ) i have checked and all files I changed say plainBox....the includes/classes/boxes.php says plainBox and looks just like the other classes...HELP please! :shock: Link to comment Share on other sites More sharing options...
CC Posted January 5, 2003 Share Posted January 5, 2003 I know it sounds sily but did you actually create the new class? I would imagine you did, as even if you hadnt you wouldnt get an error, you would just get no class whatsoever. If you have followed this above to the letter then there is no reason why it wont work. I did this and it has worked 100% with no problems. Only thing I would suggest is you go thru all the steps again and make sure you have done it correctly. CC. Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2003 Share Posted January 6, 2003 Ok, I went back and went through all the steps (I'm actually trying to modify the new_products.php box this time) Here is what I added at the bottom of catalog/includes/classes/boxes.php: class plainBox extends tableBox { function plainBox($contents) { $this->table_data_parameters = 'class="plainBox"'; $this->tableBox($contents, true); } } ?> This is what I added to stylesheet.css: .plainBox { background: #ffffff; } .plainBoxContents { background: #ffffff; font-family: Verdana, Arial, sans-serif; font-size: 8 px; } And finally, this is what I changed the bottom of new_products.php to: new plainBox($info_box_contents); ?> </td> </tr> I'm still getting the same error and I am completely stumped here... Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2003 Share Posted January 6, 2003 :oha: By George I think I got it! If you are using the Thema mod or one of Ian's Loaded Snapshots, make sure you update the thema_boxes.php files in the catalog/includes/classes/thema/numbered folders as well as the ones in the includes/classes or you will get the error I was getting. (Maybe, unless you're intelligent enough to figure it out in the first place LOL). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.