Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Picture Missing


Zeoman321

Recommended Posts

The 'no picture' you get for "Let's See" is for a category in your catalog that does not have a picture associated with it. I am still looking for how to "turn off" the blank image there and in other areas. If I find anything, I'll post back.

Link to comment
Share on other sites

  • 3 weeks later...

This is a problem--I just don't want the missing image boxes, but when I turn off the "image required" option in admin, no images show up at all, though they are there.

 

Any clues on this? I'm working with a heavily modified November snapshot.

 

--Kevin

Link to comment
Share on other sites

  • 4 weeks later...
OK,

 

Go to your Admin panel, then Configuration, then Images. The last option is Image Required. Change to No and you're set.

 

I have set this option but it don't work. When i not load up an image i have a broken Image Symbol.

I hope you can understand me.

The German board is only a promotionboard :-)

Link to comment
Share on other sites

Display Category Name

 

 

This changes the category heading name to the name of the category itself in the main text section.

 

Ex: click on a store category and the heading in the text area will say category for all the category listings. This allows the name of each category to be displayed in the main text area only if the category has other categories underneath it. If a category just has products in it this will not work.

 

In catalog/default.php change the following:

 

 

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

To:

 

<td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($cPath); ?></td>

 

You only change the first 3 occurances of this code.

 

In catalog/includes/functions/general.php put:

 

////

// WebMakers.com Added: Find a Categories Name

// TABLES: categories_description

function tep_get_categories_name($who_am_i) {

global $languages_id;

$the_categories_name_query= tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id= '" . $who_am_i . "' and language_id= '" . $languages_id . "'");

 

$the_categories_name = tep_db_fetch_array($the_categories_name_query);

return $the_categories_name['categories_name'];

}

You will still see the text "Categories" so you can remove just the text here:

 

catalog/includes/languages/english/default.php

 

define('HEADING_TITLE', 'Let's See What We Have Here');

define('HEADING_TITLE', 'Categories');

To:

 

define('HEADING_TITLE', '');

define('HEADING_TITLE', '');

This will make each category have the heading name of that category and each sub-category under a category have the same heading name as the category it is under.

 

If you want each sub-category to show it's own name then change:

 

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

To:

 

<td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($current_category_id); ?></td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...