Another thing you can do is to go into the Image Manager via a product and delete the image in there. What will happen, however, is that NO image will then appear for that category -- the image of the gray camera will not be restored.
After deleting the image from the Image Manager, when I go back into that category in Admin, I see the gray camera (though as I said, the gray camera does not appear in the cart). The fact that the gray camera can be seen in the category page is good, because you can then click it and insert another picture.
Clearly, this is a bug or a shortcoming of the program, but since you can replace the image (even after deleting it), I don't see it as a big problem. The only true problem is if you want to restore the image of that gray camera.
That doesn't actually solve the problem: as Purebeads mentioned, that deletes the image, but not the reference. If you check the database you can see the image reference is still set for the category, which means the image will just be not found.Xsecrets wrote:well you can use the image browser to actually delete the image from the server.
Purebeads, actually deleting the image reference and replacing the product image with the "no_image.jpg" gray camera aren't the same thing. Usually OpenCart displays the gray camera icon if an image is not set -- however, if there's already a reference there it won't even display anything because it can't find the image.
Additionally, if you use a conditional like "if there's an image then do something", that conditional will fail unless the reference is removed. So even if you managed to replace the image with the gray camera image, you'll still be displaying images that you don't want to.
As you've both mentioned, you can always replace the image with a different image. If you want to delete the image, though, there's no method to do that. What I think needs to be added is the ability to get rid of the reference, so that it will display the "no_image.jpg" image when there's not an image set.
I just copied the existing grey-camera placeholder image into the main images file. If I need to swap out an image for a placeholder, there it is. I went for the quick fix! ( Since I'm no MySQL genius )Purebeads wrote:You can always create your own version of the gray camera and use that...
Turning the gray camera into an image file isn't that difficult. You do a print screen, pull the print screen into your photo-editing program, crop off the excess, and save it as a GIF or PNG file.
Oh, it just occurred to me that the gray camera image is probably in the OpenCart zip file.
It's not a cart-breaking bug, but it's one that I think should be fixed (and would probably be easy to fix).Purebeads wrote:You can always create your own version of the gray camera and use that. It seems to me that as long as you have the ability to change images, deleting it altogether isn't that important.
I can provide some help with the second part
Русское коммьюнити разработчиков OpenCart - myopencart.ru
some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed
My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This
I need to remove a lot of images from the main root categories to stop them displaying in the category discription in the new v1.5 and cannot do it without edited the dasebase manually
This is something we need a hotfix for oh holy Open Cart devs <3 Me myself have no problem with this, if I were running the site myself - but some of the people Ive set up an opencart solution for, dont have the skill required to modify MySQL database.
Ofcourse, I can implement the GreyCamera picture into The Image Manager, but it shouldnt really be necessary. There should be a fix for this.
As I pointed out above, there's still problems with using the no_image.jpg image as a replacement. Hopefully Daniel will actually consider this a bug someday.Johnathan wrote:Additionally, if you use a conditional like "if there's an image then do something", that conditional will fail unless the reference is removed. So even if you managed to replace the image with the gray camera image, you'll still be displaying images that you don't want to.
This is really something I should be able to fix myself, I'll post the "temporary fix" if I get it done.
Code: Select all
Code: Select all
<img src="<?php echo $preview; ?>" alt="" id="preview" class="image" onclick="image_upload('image', 'preview');" />
Code: Select all
<input type="button" value="Remove Image" onclick="$('#image').val(''); $('#preview').attr('src', '<?php echo HTTP_IMAGE; ?>no_image.jpg');" />
Users browsing this forum: No registered users and 6 guests