Option to delete files when deleting files for downloading

  • Posts: 257
  • Thank you received: 2
  • Hikashop Business
11 months 2 weeks ago #297620

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11

In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.

Is it possible to implement an identical option for product download files?

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

  • Posts: 66586
  • Thank you received: 9792
  • MODERATOR
11 months 2 weeks ago #297621

Hi,

That same option already affects the files of the products the same way it affects the images.
So what you're talking about should already be there.
Moreover, the delete function for the files and the images uses the exact same function called deleteFiles in the file administrator/components/com_hikashop/classes/file.php
So since it already works for the images, I don't see why it wouldn't work for the files.
Note that I'm talking about the files that you can upload in the "Images & file" area of the products. This doesn't apply for images and files uploaded through custom fields.

The following user(s) said Thank You: jameswadsworth

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

  • Posts: 257
  • Thank you received: 2
  • Hikashop Business
11 months 1 week ago #297757

Hi Nicolas,

it was not clear that it worked too for files as the configuration is under images and also the entry in the change log did not explicitly state files.

All clear now though. Thanks

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

  • Posts: 66586
  • Thank you received: 9792
  • MODERATOR
11 months 1 week ago #297770

Hi,

Yes, at first, it wasn't meant for the files as well as it's less of a problem than images. The fact that it also works for the files is a by product of the modification because both files and images uses the same code.
I found out about it when checking the code in order to answer you :)

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

Time to create page: 0.055 seconds
Powered by Kunena Forum