Post by bello » Thu Dec 04, 2008 4:39 pm

in every category i obligatoy must select a picture, nu problem for one category, but if i have under one category 12 subcategories
where i must select i picture for every category my entire page will be with pictures of categories , wat can i do just to appear above product just the word links or just the link path to the prew menu  ???

Newbie

Posts

Joined
Mon Dec 01, 2008 12:05 am

Post by jty » Thu Dec 04, 2008 5:16 pm

You can delete the display of the categories in the .tpl file (the template file)
catalog/template/default/content/category.tpl

Try removing this part

Code: Select all

<?php if ($categories) { ?>
<?php foreach ($categories as $category) { ?>
<div class="categories">
  <?php if ($category['thumb'] != NULL) { ?>
    <a href="<?php echo $category['href']; ?>">
    <img src="<?php echo $category['thumb']; ?>" title="<?php echo $category['name']; ?>" alt="<?php echo $category['name']; ?>">
    </a><br>
  <?php } ?> 
  <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
</div>
<?php } ?>
<?php } ?>
Make a back-up first incase something goes wrong or it's not what you want to do

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by motumba » Thu Dec 04, 2008 7:01 pm

Or alternatively create an blank gif file 5x5 pixel, call it something like none.gif, upload it the your server and choose this for every item you want no picture displayed for (might not suit your layout though)

New member

Posts

Joined
Sat Nov 08, 2008 9:30 pm

Post by bello » Thu Dec 04, 2008 10:46 pm

- thanks jty, it works
- motumba , i tried but the dimension of the picture will remain 100x100 pix, configured in the admin->configuration->setting->image, thanks anyway

Newbie

Posts

Joined
Mon Dec 01, 2008 12:05 am

Post by Qphoria » Thu Dec 04, 2008 11:11 pm

If i may:

edit the admin/template/default/content/category.tpl file

FIND:

Code: Select all

<?php foreach ($images as $image) { ?>
ABOVE, ADD:

Code: Select all

<option value="" selected></option>
That is your solution

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 5 guests