Is there easy way to remove product images?

  • Posts: 130
  • Thank you received: 6
2 years 11 months ago #340297

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 3.10.8
-- PHP version -- : 7.4.28

Hello,

Just wanted to see if there is any way possible to make sure images are deleted when a product is removed/deleted? I am noticing that even though products get deleted the images are still on the server. Is there a option to make sure product images are also removed when products are removed? Right now I am having to go into ftp and find each image and remove from server.

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
2 years 11 months ago #340306

Hi,

There is no option to not delete the images associated with a product when a product is deleted.
However, there is one case where HikaShop won't delete the image: It's if the image is used by another product.
So maybe that's why you're thinking it's not working ?

The following user(s) said Thank You: dklbwf

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
2 years 11 months ago #340320

Thanks for response Nicolas. Not using images with other products at all. I'll continue manually deleting

Please Log in or Create an account to join the conversation.

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
2 years 11 months ago #340322

Hi,

If you're a developer and you really want to make sure HikaShop is deleting the images, you can look at the deleteFiles function in the file administrator/components/com_hikashop/classes/file.php

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 6
2 years 11 months ago #340332

Thanks a bunch!

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum
loading