I've seen many questions regarding this, and many offered solutions, but not one that helps solve my specific question.
Running OpenCart 1.4.9.3. I have uploaded a category image that pops up in the products page. I'd like to delete the category image, but can't find the proper solution. Other posts have been close, but no cigar.
Here's a link that's illustrative:
http://lindalannon.com/store/index.php? ... ry&path=35
Most posts with suggested fixes lead me to: catalog\view\theme\default\template\product\category.tpl and suggest changes to source code. However, I have not found any suggested code resembling mine.
Any help is very much appreciated.
Mark
Running OpenCart 1.4.9.3. I have uploaded a category image that pops up in the products page. I'd like to delete the category image, but can't find the proper solution. Other posts have been close, but no cigar.
Here's a link that's illustrative:
http://lindalannon.com/store/index.php? ... ry&path=35
Most posts with suggested fixes lead me to: catalog\view\theme\default\template\product\category.tpl and suggest changes to source code. However, I have not found any suggested code resembling mine.
Any help is very much appreciated.
Mark
catalog/view/theme/YOURTHEME/template/product/category.tpl
Around line 14 find:
Remove line, save and reload page.
If your category file looks different, could be wise to paste all the code here so we can see.
Around line 14 find:
Code: Select all
<td><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></td>
If your category file looks different, could be wise to paste all the code here so we can see.
Thanks SXGuy!
That did the trick! Taking your suggestion, here is the first 25 lines or so of code. The code you had me delete was exactly where you said it would be. If there is a need, I can post the entire code for "Catagory".
Once again, thats for the help!
Amended code:
That did the trick! Taking your suggestion, here is the first 25 lines or so of code. The code you had me delete was exactly where you said it would be. If there is a need, I can post the entire code for "Catagory".
Once again, thats for the help!
Amended code:
Code: Select all
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
<div class="top">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<h1><?php echo $heading_title; ?></h1>
</div>
</div>
<div class="middle">
<table style="padding-bottom:10px;">
<tr>
<?php if ($thumb) { ?>
<?php } ?>
<?php if ($description) { ?>
<td><?php echo $description; ?></td>
<?php } ?>
</tr>
</table>
<?php if (!$categories && !$products) { ?>
<div class="content"><?php echo $text_error; ?></div>
<?php } ?>
<?php if ($categories) { ?>
<table class="list">
<?php for ($i = 0; $i < sizeof($categories); $i = $i + 4) { ?>
<tr>
<?php for ($j = $i; $j < ($i + 4); $j++) { ?>
Last edited by sabine1 on Tue Feb 15, 2011 2:32 am, edited 1 time in total.
you can go ahead and also remove these lines as they are no longer needed
Code: Select all
<?php if ($thumb) { ?>
<?php } ?>
Hi sorry to ask so late - I am wanting to know how to have no image show if not uploaded instead of the no_image.jpg - would prefer to have text saying no image available but if you do an image with text in the product page where there are no images it looks distorted.
Thanks a bundle.
Thanks a bundle.
For anyone else who is trying to do this and can't find the right code, here's another piece you may need to look for in catalog/view/theme/template/YOUR TEMPLATE/product/category.tpl to accomplish this change. The code above, like the OP's issue, was not the code in my file.
If your file has the code below:
Replace it with this to comment it out:
If your file has the code below:
Code: Select all
<tr>
<?php for ($j = $i; $j < ($i + 4); $j++) { ?>
<td width="25%"><?php if (isset($categories[$j])) { ?>
<a href="<?php echo $categories[$j]['href']; ?>"><img src="<?php echo $categories[$j]['thumb']; ?>" title="<?php echo $categories[$j]['name']; ?>" alt="<?php echo $categories[$j]['name']; ?>" style="margin-bottom: 3px;" /></a><br />
<a href="<?php echo $categories[$j]['href']; ?>"><?php echo $categories[$j]['name']; ?></a>
<?php } ?></td>
<?php } ?>
</tr>
Code: Select all
<!--<tr>
<?php for ($j = $i; $j < ($i + 4); $j++) { ?>
<td width="25%"><?php if (isset($categories[$j])) { ?>
<a href="<?php echo $categories[$j]['href']; ?>"><img src="<?php echo $categories[$j]['thumb']; ?>" title="<?php echo $categories[$j]['name']; ?>" alt="<?php echo $categories[$j]['name']; ?>" style="margin-bottom: 3px;" /></a><br />
<a href="<?php echo $categories[$j]['href']; ?>"><?php echo $categories[$j]['name']; ?></a>
<?php } ?></td>
<?php } ?>
</tr>-->
I also need to remove categories image, but sorry why so complicate procedure to just remove an image?!? Is it not possible to make it easier just adding a "Remove Image" button close the image field?
My website runs on OC 1.5.1, is it possible remove category images easier than work with code?
Thanks for helping, best.
My website runs on OC 1.5.1, is it possible remove category images easier than work with code?
Thanks for helping, best.
its hardly a major code change its simply enclosing the code with a comment out bracket.dragon17 wrote:I also need to remove categories image, but sorry why so complicate procedure to just remove an image?!? Is it not possible to make it easier just adding a "Remove Image" button close the image field?
My website runs on OC 1.5.1, is it possible remove category images easier than work with code?
Thanks for helping, best.
I use 1.4.9. OC and uploaded a category pic for a category for which I don't need a pic. What's the way to remove it? I'm paranoid with touching my coding as it's a running store but if somebody provides a step by step advice I'll follow!
Thank you!
Thank you!
Who is online
Users browsing this forum: No registered users and 7 guests