leveera Posted February 23, 2007 Share Posted February 23, 2007 Hello, I just successfully installed clear 2.2M2. Please advice how to delete a small default pictures, icons directly under header - My Account l Cart Contents l They are different depends of the page. For "Catalog" the picture is "What's new here", for "Cart Contents" the picture is "What's in my cart" Any advice very appreciated Sergei Link to comment Share on other sites More sharing options...
Iggy Posted February 23, 2007 Share Posted February 23, 2007 Hello, I just successfully installed clear 2.2M2. Please advice how to delete a small default pictures, icons directly under header - My Account l Cart Contents l They are different depends of the page. For "Catalog" the picture is "What's new here", for "Cart Contents" the picture is "What's in my cart" Any advice very appreciated Sergei For any page you don't want them to appear just comment them out like this <td class="pageHeading" align="right"><?php // echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Guest Posted February 23, 2007 Share Posted February 23, 2007 Hello, I just successfully installed clear 2.2M2. Please advice how to delete a small default pictures, icons directly under header - My Account l Cart Contents l They are different depends of the page. For "Catalog" the picture is "What's new here", for "Cart Contents" the picture is "What's in my cart" Any advice very appreciated Sergei Sergei: Look in- catalog/includes -for the "header.php" file and open it with your server's built-in editor. If your server doesn't have an editor for you to use, you can download a good one to "evaluate" at http://www.download.com Once you have the header.php open locally or on your server, scroll down and find this section: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> You only need the first <td> in the table: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> You can delete the other two: <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> That will remove the little icons in the header (at the top right). From that point you can alter: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> replacing 'oscommerce.gif' and 'osCommerce' with whatever image you want for the header and whatever you want to call the image, such as "MyStore" making sure to inclose the image and the description with single quote marks (' ') as in the original. If you are editing locally, just upload the edited version to the catalog/includes directory, and if it asks you to replace or overwrite, click OK, and you're done. Should do the trick. :D Frank Link to comment Share on other sites More sharing options...
leveera Posted February 26, 2007 Author Share Posted February 26, 2007 Thanks Iggy and Frank for advice! Actually I solved trick by a different way: Go to Admin -> Configuration -> images, then set both Heading Images width/height (from 57 & 40) to 1. Ken Meanwhile it seems for me that solution by Iggy is also applyable. I only have a problem to find appropriate PHP files to edit. It is not icons in header.php! They are bellow the header. Any suggestions? Sergei Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.