Hi, I have a top-level category page on my site where I need to add some custom images AFTER where the sub-category links and their associated pictures are.
The problem is, if I just edit the page in the backend, there doesn't seem to be a way where I can make these custom images appear after the sub-category linksm (because the code for including the sub-category links isn't shown in the page code)
Any ideas how I can get around this?
Many thanks
Well, I tried this in the product/category.tpl:
Don't know if this is right as this is a subcategory (&path=36_42) but either way it doesn't display the image. Any ideas?
It also spawned an error saying that $category variable doesn't exist...
Code: Select all
<?php if ($category==42){ ?>
<img src="image/newcategory.jpg" />
<?php } ?>
It also spawned an error saying that $category variable doesn't exist...
Sorry, didn't remember I had customized my cart. If you add this it shoud work:
to controller/product/category.php around line 44 or so. After these lines anyway
Code: Select all
$this->data['category'] = $category_id;
Code: Select all
$category_id = array_pop($parts);
} else {
$category_id = 0;
}
Who is online
Users browsing this forum: No registered users and 47 guests