Sharon123 Posted July 11, 2003 Share Posted July 11, 2003 Hi all I searched but but cant find the answer. I have been following the wiki doc's and have successfully inserted my images into manufacturers and Catagories, however when I do the exact same for the shopping cart, I have errors. While I can interperet some code, some I cant. If you look at this code //----toolcazy's infoBoxHeading lesson to add images to the header------- class infoBoxHeadingCategories extends tableBox { function infoBoxHeadingCategories($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { $this->table_cellpadding = '0'; if ($left_corner == false) { $left_corner = tep_image(DIR_WS_IMAGES . ''); } else { $left_corner = tep_draw_separator(''); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeadingCategories"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="infoBoxHeadingCategories"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeadingCategories" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //----EOF ----toolcazy's infoBoxHeading lesson to add images to the header------- This is from the /catalog/includes/classes/boxes.php page My question is, what do I change the names to, for shopping cart? eg If I change all the names from Catergories to Manufacture then what is the name for shopping cart. I think its the two letter name that is stuffing me up. Or maybe its just getting late. Any help appreciated Sharon I know more than I did yesterday...If thats any help! Link to comment Share on other sites More sharing options...
Sharon123 Posted July 11, 2003 Author Share Posted July 11, 2003 Hi again This is the error that I recieve when I replace the word Catergories with Shopping Cart Parse error: parse error, unexpected T_STRING, expecting '{' in /www/virtual/crownk1w1/htdocs/catalog/includes/classes/boxes.php on line 223 I did exactly the same with the previous two and all worked! Sharon I know more than I did yesterday...If thats any help! Link to comment Share on other sites More sharing options...
Guest Posted July 11, 2003 Share Posted July 11, 2003 It would help if you could post the revised version of the code and mark which line is 223 (I'm guessing it's one of the lines you originally posted, if not please post context for it). Thanks, Matt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.