Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove categories image


Junny

Recommended Posts

Make a transparent.gif and name it same as the categorie gif

 

HTH

The_Bear

 

What's the transparent.gif

 

Please teaching already a little concretely?

 

ex: catalog/default.php

 

code:

<kkkkkkkkkkkkkk>

 

right before add

hhhhhhhhhhhhhhhhh

 

Like this:!:

Link to comment
Share on other sites

Hi,

 

Remove this code in all of your pages in the catalog folder:

 

<?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

Link to comment
Share on other sites

Isn't it a little safer to do this:

 

import in your database with phpmyadmin or whatever you prefer

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Display Catalog Images ON/OFF', 'CONFIG_CATALOG_CATEGORY_IMAGES', 'true', 'Would you like to get an email when a visitor uses Send To A Friend ?', 1, 800, '2003-03-15 12:20:07', '2003-03-15 12:20:07', NULL, 'tep_cfg_select_option(array('true', 'false'),');

this will make an admin function in configuration > mystore

 

and then change the files in ./catalog/

 

find this:

<?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

replace with:

<?php

if (CONFIG_CATALOG_CATEGORY_IMAGES == 'true')

{

echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);

} else {}

?>

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

:whaasup:

 

already a copy/paste fault of mine in the above code :(

 

Wrong code :

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Display Catalog Images ON/OFF', 'CONFIG_CATALOG_CATEGORY_IMAGES', 'true', 'Would you like to get an email when a visitor uses Send To A Friend ?', 1, 800, '2003-03-15 12:20:07', '2003-03-15 12:20:07', NULL, 'tep_cfg_select_option(array('true', 'false'),');

 

new code:

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Display Catalog Images ON/OFF', 'CONFIG_CATALOG_CATEGORY_IMAGES', 'true', 'This will eliminate the display from category images', 1, 800, '2003-03-15 12:20:07', '2003-03-15 12:20:07', NULL, 'tep_cfg_select_option(array('true', 'false'),');

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Are these Tips for remove categories header image, aren't you?

 

I want to hide catalogs thumbneil(icons or categories image.gif).

 

How can I do this?

 

Thanks for some Tips, modom and Druide. :D

Link to comment
Share on other sites

  • 4 weeks later...

Hey Druide,

 

Thanks for the code and for the mini-contribution!

 

and then change the files in ./catalog/

 

I thought I found the right place to change this but I must not have because I insert the changes but the images are still there.

 

I modified in "default.php" the following lines:

 

<tr>

           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

           <td class="pageHeading" align="right">

   <?php 

  	 /* echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); */

  	 if (CONFIG_CATALOG_CATEGORY_IMAGES == 'true') 

  	 { 

     echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); 

  	 } else {} 

   ?> 

	 </td>

         </tr>

 

Is default.php the correct file?

 

thanks!

 

Doug

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...